08-13-2007 06:11 PM
08-14-2007 02:29 PM
Hey FlamingYawn,
Usually you can pass references as strings, and labVIEW will automatically coerce it to the correct datatype. Can you make a case structure for the COM string, and one for the TCP resource string?
Regards,
Nick D.
If that doesn't work, can you include a simple screenshot of how you're wiring the TCP resource into the VISA vi?
08-15-2007 12:36 PM
Hi Nick,
The problem is that VISA returns a VISA resource and the TCP Listener returns a TCP reference. These are two separate APIs. In order to use the same reference throughout my application, I need to use the same API, so I have the same reference type. But I don't see any way for VISA to create a listener. Can you find out if this is possible?
Thanks,
08-16-2007 04:07 PM
08-17-2007 11:18 AM
08-17-2007 11:48 AM
08-17-2007 12:22 PM
08-17-2007 12:33 PM
That I don't quite understand. If I have an Ethernet instrument, it will connect to that.
Even if this did work, you could not use the same VISA reference for the serial and the Ethernet connection. You would still have to open a reference to a serial connection, do the communication over the pc's serial port, close it, then open the tcp/ip connection, do the communication over the px' ethernnet port, and then close that. At best, you would be able to use only one api but i don't see how you can ever use the same reference for both serial and ethernet.
08-17-2007 12:43 PM
08-17-2007 12:46 PM