LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write telnet commands using visa write

Hello,

I am a novice in labview and i believe the question i am asking has not been asked before but if it has can you please be kind to just guide me to the discussion.
I am using Visa to communicate to the host pc from the remote pc via telnet. I have successfully managed to open a telnet connection but i cannot send the commands using the visa write. The command i am trying to send is poll. So i tried sending the command as 'poll\n' and 'poll\r' and 'poll\r\n' but to no avail. I receive no errors while sendind any of the command. The command is not sent to the local pc. I checked the connection via the test panel in the NI Max. when i send the 'poll\n' command there it works perfectly. I am attaching a screenshot of my code. Can anyone please help me out.

 

labview.PNG

0 Kudos
Message 1 of 4
(5,132 Views)

Right click your string control. Is it in '\ code' display mode or normal?

0 Kudos
Message 2 of 4
(4,829 Views)

I know this thread has been quiet for some time now, but I'd like to know if it worked, or if there was still any issue with the Termination Character.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 4
(4,332 Views)

The only real issue is you have to watch out for control/option characters.  My recent experience tells me this is really only an issue on first connection.  But after that, most Telnet are just simple ASCII commands ending with a CRLF.  YMMV.


GCentral
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 4 of 4
(4,322 Views)