Posted Tue, 25 Jun 2024 04:59:12 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik
Hello,
I have a question about Communication via subnet (masking) LAN network.
PC network 11.11.111.050 (11 = office)
DAQ6510 11.12.111.050 (12 = factory)

This should be an example, I would like to be able to control the device beyond my switch.
In a direct connection "LAN cable" on the device it is possible so far.

The Problem:
As soon as I assign the device in the DHCP, I can call it up in the browser and control it.
However, the previous program code is transferred incorrectly.
The device is registered via NI MAX under its fixed IP address at TCP Raw Socket: 5025 as domain "DAQ6510".
I would now like to control the device under the domain "DAQ6510".

The command is transmitted incorrectly.
ERROR 1135 
Parameter 1, Syntax error, missing comma after parameter
No additional information is available. Refer to the product documentation for more information or contact us at tek.com/keithley.

For example, the measurement DCV is started but not in the range 10V but 1000V.

The DCI current command is also not executed correctly here it is the 3A range instead of 100mA.
Is there a way to read out the received message on the DAQ6510 device?



Or I had read in other tasks that since 2024 there are now TSP scripts with which you can store a function locally, which can then be called via LAN.
If I have understood this correctly.

Many Thanks
Dominik
Posted Tue, 25 Jun 2024 05:03:34 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik
I program in LABVIEW 2019.
With the drivers from the website.

Keithley DAQ6510 Data Acquisition System - Instrument Driver - National Instruments (ni.com)


 
Posted Wed, 03 Jul 2024 19:23:32 GMT by C, Andrea
In event log on the instrument, try turning on command logging.
Sounds like a syntax error.
Video on command logging:  https://www.youtube.com/watch?v=cVU_C308EUc

Or try NI IO Trace to see what is happening on the bus.
Posted Thu, 04 Jul 2024 07:24:06 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik

Ok dear Andrea, I have now read part of the SCPI syntax and found "SCPI RAW" under LXI Port 5025. I was able to examine the command in more detail and correct the first commands via the NI IO Trace.

Default Message

SENS:FUNC "VOLTage";:SENS:VOLTage:RANG:AUTO OFF;:SENS:VOLTage:RANG 10.000000

Three parameter sets

SENS:FUNC "VOLTage";
:SENS:VOLTage:RANG:AUTO OFF;
:SENS:VOLTage:RANG 10.000000

----------------------------------------------------

Previously without function

SENS:FUNC "CURRent";:SENS:CURRent:RANG:AUTO OFF;:SENS:CURRent:RANG 0.100000
SENS:FUNC "VOLTage";:SENS:VOLTage:RANG:AUTO OFF;:SENS:VOLTage:RANG 10.000000

After function given

SENS:FUNC "CURRent";:SENS:CURRent:RANG:AUTO OFF;:SENS:CURRent:RANG 0.100000;
:SENS:FUNC "VOLTage";:SENS:VOLTage:RANG:AUTO OFF;:SENS:VOLTage:RANG 10.000000;

Error:
Note syntax after command ";" insert!

---------------------------------------------------------------
Now I'm devoting myself to the last task since there are also timing problems with the LXI, I have to make sure that the trigger function is controlled correctly.
This just ensures that if I don't send the commands manually in the NIO trace, the order of the message handler transmits the command to me as a "timeout" and communication is interrupted.

It is very important that TRAC MAKE and TRIG LOAD are initialized first.

----------------------------------------------------------------------------------------------------------

I will be happy to inform you about further steps.
Generally the commands are still compatible with USB Serial so here is a question.

Is it intentional that the syntax in the USB can do without the last ";"?

Posted Thu, 04 Jul 2024 07:44:16 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik
  2006, 07/04/2024 15:39:37.425059012, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:37.452449163, INFO,  2, 'SCPI: ' :READ?  ''
  2006, 07/04/2024 15:39:37.496552466, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/04/2024 15:39:37.498496936, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:37.510430981, INFO,  2, 'SCPI: ' :READ?  ''
  2006, 07/04/2024 15:39:37.532490284, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/04/2024 15:39:37.534254784, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:37.561355042, INFO,  2, 'SCPI: ' :READ?  ''
  2006, 07/04/2024 15:39:37.583574633, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/04/2024 15:39:37.585476481, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:37.612152148, INFO,  2, 'SCPI: ' :READ?  ''
  2006, 07/04/2024 15:39:37.634673678, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/04/2024 15:39:37.636630224, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:37.682212421, INFO,  2, 'SCPI: ' :READ?  ''
  2006, 07/04/2024 15:39:37.704161103, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/04/2024 15:39:37.706133739, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:47.737235587, INFO,  2, 'SCPI: ' :TRAC:ACT? "TrigBuff":TRAC:MAKE "TrigBuff", 100000, STANdard :TRAC:FILL:MODE CONTinuous ,"TrigBuff"
  1135, 07/04/2024 15:39:47.737316072, ERR ,  2, 'Parameter 1, Syntax error, missing comma after parameter'
  4909, 07/04/2024 15:39:47.737347951, ERR ,  2, 'Reading buffer not found within instrument'
  2006, 07/04/2024 15:39:47.737362451, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/04/2024 15:39:47.739378709, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:39:47.741285678, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2006, 07/04/2024 15:40:20.265066739, INFO,  2, 'SCPI: ' :TRAC:ACT? "TrigBuff":READ?  ''
  1135, 07/04/2024 15:40:20.265135769, ERR ,  2, 'Parameter 1, Syntax error, missing comma after parameter'
  2005, 07/04/2024 15:41:17.170621542, INFO,  2, 'TSP: 'eventlog.save("/usb1/eventlog")''

-----------------------------------------------------------------------------------
I think the command is not correct, it should be as follows.

:TRAC:MAKE "TrigBuff", 100000, STANdard;:TRAC:FILL:MODE CONTinuous ,"TrigBuff";
:TRIG:LOAD "LogicTrigger", 7, 7, 100000, 0,"TrigBuff";
:INIT;

here has arrived in error Dealer...
 
:TRAC:ACT? "TrigBuff":TRAC:MAKE "TrigBuff", 100000, STANdard
:TRAC:FILL:MODE CONTinuous ,"TrigBuff"
:TRAC:ACT? "TrigBuff":READ? 

-------------------------------------------------------------------------------------------------
Why does the device keep reading the error?
As soon as I have opened the VISA interface via my message merchant, it starts with it.

:SYST:ERR?" 
:READ?
 
Posted Thu, 04 Jul 2024 08:13:53 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik
The permanent read query comes from my application... Sorry!
Posted Fri, 05 Jul 2024 06:48:04 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik
LAN Device
---------------------
Number, Time, Severity, Node, Description
  2006, 07/05/2024 14:48:12.273238966, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:48:12.275070087, INFO,  2, 'SCPI: ' :SENS:FUNC "VOLTage" :SENS:VOLTage:RANG:AUTO OFF :SENS:VOLTage:RANG 10.000000 :SYST:ERR?''
  2006, 07/05/2024 14:48:42.823138906, INFO,  2, 'SCPI: ' :SENS:FUNC "VOLTage" :SENS:VOLTage:RANG:AUTO OFF :SENS:VOLTage:RANG 10.000000 :SYST:ERR?''
  2006, 07/05/2024 14:48:43.421683421, INFO,  2, 'SCPI: ' :SENS:FUNC "VOLTage" :SENS:VOLTage:RANG:AUTO OFF :SENS:VOLTage:RANG 10.000000 :SYST:ERR?''
  2006, 07/05/2024 14:48:48.220607466, INFO,  2, 'SCPI: ' :SENS:FUNC "CURRent" :SENS:CURRent:RANG:AUTO OFF :SENS:CURRent:RANG 0.100000 :SYST:ERR?''
  2006, 07/05/2024 14:48:48.821663421, INFO,  2, 'SCPI: ' :SENS:FUNC "CURRent" :SENS:CURRent:RANG:AUTO OFF :SENS:CURRent:RANG 0.100000 :SYST:ERR?''
  2005, 07/05/2024 14:48:59.288413360, INFO,  2, 'TSP: 'eventlog.save("/usb1/eventlog")''
  2224, 07/05/2024 14:48:59.288728496, ERR ,  2, 'USB flash device not present'
  2005, 07/05/2024 14:49:12.550195875, INFO,  2, 'TSP: 'eventlog.save("/usb1/eventlog")''
  2006, 07/05/2024 14:49:40.431952981, INFO,  2, 'SCPI: ' :TRAC:MAKE "TrigBuff", 100000, STANdard :TRAC:FILL:MODE CONTinuous ,"TrigBuff" ''
  2006, 07/05/2024 14:49:40.442574572, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:49:40.443810012, INFO,  2, 'SCPI: ' :SYST:ERR?''
  2005, 07/05/2024 14:50:05.591822996, INFO,  2, 'TSP: 'eventlog.save("/usb1/eventlog")''
USB Device
-------------------------------
Number, Time, Severity, Node, Description
  2006, 07/05/2024 14:44:31.011650178, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:44:31.011855254, INFO,  2, 'SCPI: ' ''
  2006, 07/05/2024 14:44:31.012124921, INFO,  2, 'SCPI: ':SENS:FUNC "VOLTage" :SENS:VOLTage:RANG:AUTO OFF :SENS:VOLTage:RANG 10.000000
  2006, 07/05/2024 14:44:31.012540390, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:44:31.012776466, INFO,  2, 'SCPI: ' ''
  2006, 07/05/2024 14:44:55.565333012, INFO,  2, 'SCPI: ':SENS:FUNC "VOLTage" :SENS:VOLTage:RANG:AUTO OFF :SENS:VOLTage:RANG 10.000000
  2006, 07/05/2024 14:44:55.565556921, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:44:55.565769906, INFO,  2, 'SCPI: ' ''
  2006, 07/05/2024 14:44:56.164294300, INFO,  2, 'SCPI: ':SENS:FUNC "VOLTage" :SENS:VOLTage:RANG:AUTO OFF :SENS:VOLTage:RANG 10.000000
  2006, 07/05/2024 14:44:56.164510769, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:44:56.164725330, INFO,  2, 'SCPI: ' ''
  2006, 07/05/2024 14:44:58.565265406, INFO,  2, 'SCPI: ':SENS:FUNC "CURRent" :SENS:CURRent:RANG:AUTO OFF :SENS:CURRent:RANG 0.100000
  2006, 07/05/2024 14:44:58.565800890, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:44:58.566026148, INFO,  2, 'SCPI: ' ''
  2006, 07/05/2024 14:44:59.164979224, INFO,  2, 'SCPI: ':SENS:FUNC "CURRent" :SENS:CURRent:RANG:AUTO OFF :SENS:CURRent:RANG 0.100000
  2006, 07/05/2024 14:44:59.165192754, INFO,  2, 'SCPI: ':SYST:ERR?''
  2006, 07/05/2024 14:44:59.165407466, INFO,  2, 'SCPI: ' ''
  2005, 07/05/2024 14:45:05.912471087, INFO,  2, 'TSP: 'eventlog.save("/usb1/eventlog")''
Posted Fri, 05 Jul 2024 06:57:53 GMT by Wertmann, Dominik Spezialist für Maschinensoftware und -elektronik
Observation:
The device performs the TRIG and the CURRent and VOLTage function changes in both cases (USB/LAN). But the error logs look different. I am not sure which syntax is correct here I thought parameters are marked between " " and functions via the : but there are also function parameters SENS:VOLTage: 10.000 what is the correct syntax to expect.
I wrote down both traces in the previous post.

In the USB Seriel case I can't record the Trigg Buff at all because it then changes from Trigg Buff to Idle by the software and then my reed loop comes back to spam the trace every 50ms. 
However, it does not seem to do this in the LAN device, where it switches to the container state instead of idle.
I think these are still programming errors in the main program that I need to understand better. But my main problem is which syntax is correct here and what should I expect.
I have read the SCPI RAW. Maybe someone can help me with a hint. Have a nice weekend already.

Translated with DeepL.com (free version)

You must be signed in to post in this forum.