04-11-2014 10:40 AM
I'm trying to setup the communication for a custom made instrument programmed in LabVIEW. I would like my instrument to communcate with a PC over VISA like I do with my typical COTS equipment.
Does anyone know a good standard way I can set this up? The way agilent or a real company does?
I tried using VISA VIs in the instruments code, but I could never get a command from the instrument to the PC. Not sure if that's even possible since the PC isn't set up as a resource in MAX. I just used the know IP address and port and hoped it would work.
I also tried using the TCP VIs which did work, but the commands send between the instrument and PC have a lot of time between them. I didn't know if leaving a TCP connection open would work. Seemed like it would just timeout after x amount of time (1min?).
04-11-2014 11:33 AM
04-11-2014 03:33 PM - edited 04-11-2014 03:36 PM
The instrument is made in-house and uses an NI touch panel to run a LabVIEW .exe program. The touch panel is used interface to the user via the touch panel display or remotely through a PC. I'm just trying to have it talk to the PC in a similar way as a typical instrument does, so it's easy to use.
But really, you're correct the touch panel is a PC that is running XP embedded.
(Also I'm not too familiar with TCP/general comm protocol, so feel free to state the what seems like the obvious because I am learning as I go with this.)
Thanks for the reply!
04-11-2014 04:10 PM
04-11-2014 07:23 PM
I recommend using the Simple Messaging Reference Library. It is a really good library for simple communication between two computers. I have used it for several projects. It is also available on the LabVIEW Tools Network and VIPM.