06-20-2014 08:50 AM
Hi! how can I comunicate a serial port with IP? Instead of usin the "VISA SERIAL" I would need to comunicate with the device by IP. How could I find an example?
Thanks.
06-20-2014 09:25 AM
Sounds like you need to use TCP/IP instead of a serial port. VISA can communicate over TCP/IP as well. All you need to do is setup the VISA session to talk over the TCP/IP port instead of the serial port. Once that initialization is done, everything is the same.
06-20-2014 09:45 AM - edited 06-20-2014 09:46 AM
I understand what you mean, but do I have also to use the functions TCPIP Listen, Write and Read, with the VISA? the aim is to send commands to the device and read the answers.
06-20-2014 10:02 AM
You don't have to use any of the TCP/IP methods. VISA does everything for you. Just follow the Serial Write and Read example, just don't use the Configure Serial (and therefore remove all of its inputs except the VISA session). Select the VISA session that shows a TCP/IP address in it and you are ready to go.
06-20-2014 10:08 AM
06-20-2014 10:18 AM
That is just what I am doing. Here I show you the simplest example that I am using now. When I send the comand to one of the devices that is in serial port there is an error in the VISA READ: "(Hex 0xBFFF0011) insufficient location information of the device or resource is not present in the system". The device is conectec to the net. I cannot understand what is happening
06-20-2014 10:20 AM
Dennis_Knutson, I am learning and I do not know what you mean with VXI-11 and MAX.
06-20-2014 10:25 AM
What VISA Session did you select. If you are trying to talk to an instrument over TCP/IP, then you should see an IP Address in the VISA Session Name.
06-20-2014 10:36 AM
In the VISA RESOURCE NAME I select/write the IP of the device. Do you mean that?
When I select the IP of a device that is not in the serial port there is no problem when I send the comands, but when I select the IP of one of the devices that is on the serial port and I send the comand, appears the error.
06-20-2014 10:39 AM