LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

serial port: to use visa or not to use visa ?

please have a look at

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/64a339377b5502a886256d03005ba7a7?OpenDocument

is it recommendable to use this or visa serial port ?
Can someone explain the difference?
If I use visa, I have to install the visa driver separately - for the old technique no driver is necessary, is it ?
Message 1 of 5
(3,617 Views)
In LabVIEW7 the old serial VIs have been removed, the only option is to use VISA. So you could say that NI has answered the question for you; use VISA(!).

The old ones needed a driver, the driver was the 24KB file called serpdrv. If you included that tiny file in the same folder as the application everything would work fine. Some of us still use the old VIs, I for one moved them from my LV6 installation to LV7 and they still do the job.

VISA is nice, but requires VISA run-time engine to be installed. In LV7 the application builder allows you to just include support for the serial part of VISA and if you want to make the installer with the app builder these drivers are included almost transparently (the only thing you see of them is in the status window durin
g the installation; then you see National Instrument this...National Instrument that run across the screen). If you don't miss any of the functionality of VISA, use a third-party installer, want to save some MBs and don't like NI's name coming up during installation of your apps...you can stick to the old ones. It may become more and more difficult as time goes by though, now that NI does not support them anymore.
Message 2 of 5
(3,617 Views)
I agree with Mads.

I actually prefer using the VISA for serial communication. A lot easier and faster to setup.

The code is cleaner, too!

JLV
Message 3 of 5
(3,617 Views)
you said "In LV7 the application builder allows you to just include support for the serial part of VISA"

If you were able to tell how to do that in version 6.1 (if necessary manually) that would solve my problems ! 😉
Message 4 of 5
(3,617 Views)
My experience too has been to stick with the serial i/o rather than migrate to VISA. I spent several weeks trying to debug a migration of a fully functional legacy app, with no success -- and with lots of NI support.

I suspect that, at some point, I'll simply have to bite the bullet but....
Message 5 of 5
(3,617 Views)