06-05-2021 07:50 AM
Even though all my instruments are found by NI-MAX and their names populate the Select instrument dropdown list the WRITE action tells me the instrument addressed can not be found. What am I doing wrong ?
Connection is via Ethernet to a wireless access point on my network.
Other ways to send the command *IDN? like directly from NI-MAX work fine.
Solved! Go to Solution.
06-05-2021 11:41 PM - edited 06-05-2021 11:41 PM
Can you communicate with any other instruments (that don't have an X)?
06-06-2021 06:41 AM
I am not sure why you ask this question and what you mean by it "not having an X"
I can communicate via telnet to the 3 Siglents I have
I can communicate via NI-MAX to the 3 Siglents and the Rigol I have
I can communicate via Labview to the Rigol I have but not the 3 Siglents as they give an error on the write vi, not on the open or close vi icon
Rigol example via NI I/O Trace (difference of the metamagically auto generated code in BOLD)
7. VISA Open ("TCPIP0::192.168.1.75::inst0::INSTR", False, 0 (0x0), 0 (0x0), "TCPIP0::192.168.1.75::inst0::INSTR")
Process ID: 0x00000334 Thread ID: 0x00004814
Start Time: 13:20:52,3608 Call Duration 00:00:00.0904
Status: 0 (VI_SUCCESS)
8. VISA Write ("TCPIP0::192.168.1.75::inst0::INSTR", "*IDN?", 5 (0x5))
Process ID: 0x00000334 Thread ID: 0x00004814
Start Time: 13:20:52,4513 Call Duration 00:00:00.0070
Status: 0 (VI_SUCCESS)
9. VISA Read ("TCPIP0::192.168.1.75::inst0::INSTR", 100 (0x64), "Rigol Technologies,DSA815,DSA8A214301141,00.01.19.00.02.")
Process ID: 0x00000334 Thread ID: 0x00004814
Start Time: 13:20:52,4583 Call Duration 00:00:00.0029
Status: 0 (VI_SUCCESS)
10. VISA Close ("TCPIP0::192.168.1.75::inst0::INSTR")
Process ID: 0x00000334 Thread ID: 0x00004814
Start Time: 13:20:52,4612 Call Duration 00:00:00.0028
Status: 0 (VI_SUCCESS)
The not working Siglent example
13. VISA Open ("TCPIP0::192.168.1.36::inst0::INSTR", False, 0 (0x0), 0 (0x0), "TCPIP0::192.168.1.36::inst0::INSTR")
Process ID: 0x00000334 Thread ID: 0x00004814
Start Time: 13:23:40,7568 Call Duration 00:00:00.0113
Status: 0 (VI_SUCCESS)
> 14. VISA Write ("TCPIP0::192.168.1.36::inst0::INSTR", "*IDN?", 0 (0x0))
> Process ID: 0x00000334 Thread ID: 0x00004814
> Start Time: 13:23:40,7681 Call Duration 00:00:00.0006
> Status: 0xBFFF0011 (VI_ERROR_RSRC_NFOUND)
> because the line is printed in red <
15. VISA Close ("TCPIP0::192.168.1.36::inst0::INSTR")
Process ID: 0x00000334 Thread ID: 0x00004814
Start Time: 13:23:40,7688 Call Duration 00:00:00.0020
Status: 0 (VI_SUCCESS)
Although I do not change anything the viWRITE uses or responds with either a 5 or a 0
This is not under control of me as far as I can tell
06-06-2021 07:25 AM
Issue found (read the manual) ...
Programming Guide SDG_ProgrammingGuide_PG_E03B.pdf
page 71
6. Communicating with the device via TCP/IP is similar to USBTMC. But you need to
change VISA Write and VISA Read Function to Synchronous I/O. The LabVIEW
default is asynchronous I/O. Right-click the node and select Synchronous I/O
Mod>>Synchronous from the shortcut menu to write or read data synchronously
The Rigol can handle both asynchronous and synchronous over TCP/IP, the Siglent can only handle synchronous I/O over TCP/IP
06-06-2021 10:28 AM
TCP/IP for Siglent needs synchronous communication
06-06-2021 05:07 PM
Hey, sorry you had to find the solution on your own, but I'm glad you did.