06-02-2016 10:42 AM
Due to our remote test controllers running Windows XP, and the instrument being controlled has no Win7 drivers, I am writing x86 code on an XP machine.
I am attempting to control an instument using TCPIP/Socket
Outgoing commands work. But, I am getting a timeout when reading or query.
Telnet works as does NI-MAX
I am writing in VS2005 using visa.NS message based (mbsession)
mbsession.TerminationCharacterEnabled = true;
mbsession.TerminationCharacter = 13;
Have tried both orders...
NI-VISA 5.3
Thanks
06-03-2016
04:25 PM
- last edited on
01-09-2024
05:24 PM
by
migration-bot
I found this documentation about termination characters in NI-VISA: https://www.ni.com/en/support/documentation/supplemental/06/termination-characters-in-ni-visa.html
It uses LabVIEW but the underlying ideas should still be the same. I don't see any problem with the code you've presented below. Are you sure that you're sending out a termination character or that it's the right one? You could try reading the data being sent through the and see if you even see if the termination character even gets sent.
06-10-2016 05:48 AM
Have verified that the return message contains the correct termination characters.
Finally gave up on visa.NS for TCP/IP (Not enough documentation for beginners!) and I am using TCP/IP sockets instead.