LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP communication

Hello

 

first time posting here, thank you in advance for help. and sorry for lack of knowledge 

newDeveloper_0-1767786485872.png

 

i keep getting timeout when building simple VISA VI. Open, write, read, close. regardless of command. trying "*IDN?"

device is setup in NI MAX, connected and in NI MAX query works great for "*IDN?"

 

with Trace i noticed 1 identifier is missing in my VI and present in MAX.

i dont know what is this "identifier" and how to set it, or if it even is the reason. pls help

 

picture of trace, first session is MAX, second VI, third is MAX again to confirm "identifier" is different for every session.

ignore the red in IMAX, enable term char fixes this, but we still get read and i wanted to keep trace data to relevant only.

 

X = (0x097128B8)

identifier X is given in ParseRsrc , in both MAX and VI

identifier X seems to bet set at OPEN in max, i can't find set for it in VI VISA opan

in MAX identifier X is also used for write/read and not on VI VISA write/read (gets slightly altered)

is the identifier set already in device under name (TS2000)? if so why i get request time out 

 

newDeveloper_1-1767786528618.png

 

 

0 Kudos
Message 1 of 3
(164 Views)

I suspect you need a Carriage Return added to your command string. The Carriage Return acts as the termination character, telling your instrument that the whole command has come in and it can act on it.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(126 Views)

Have you set "TS2000" to be an alias for something in NI-MAX?  If so, can you show us the screenshot of where it's configured?

 

I would expect it to be something like "TCPIP0::127.0.0.1::35555::SOCKET" when it's not an alias, based on the other debug screenshots.

 

Also, did you check to see if you have a Windows firewall enabled?  It could be that you've got it up and NI-MAX has it set to pass but LabVIEW is set to block.

0 Kudos
Message 3 of 3
(91 Views)