Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Hello LabVIEW users,



I'm new the LabVIEW environment and I'm trying to develop a VI using LabVIEW6.0, which will (serially) send/receive some control commands (ie: help, reset, etc.) to/from one of our products. Hence, displaying of a bunch of data.

I'm also trying to retrieve this data, capture it to a file and/or a disk, and display it on a screen.

Thanks,
Gregg H. Hello LabVIEW users,

I'm new the LabVIEW environment and I'm trying to develop a VI using LabVIEW6.0, which will (serially) send/receive some control commands (ie: help, reset, etc.) to/from one of our (FPGA) products. Hence, displaying of a bunch of data (Boot information and Register information out of an FPGA). I'm also trying to retrieve this data, capture it to a f
ile and/or a disk, and display it on a screen.

I would also like to add some control buttons to the VI which sets-up a piece of test equipment (Logic A. or a Spec. A.) to run/monitor a group of tests associated with the retrieved data....I know this information may be quite generic, but any help with this would be greatly appreciated.

P.S. I've already downloaded the Serial Comm. VI's and started using them as a baseline.

Thanks Again,
Gregg H.
0 Kudos
Message 1 of 3
(4,787 Views)
There are a number of example programs available that read/write serially, as well as write to a file. From LabVIEW 6.0, you can go to the Help menu, select Examples, and from the window that pops up choose "I/O Interfaces -> Serial Communication." Look at the three serial examples for help with serial communication programming.

National Instruments also has hundreds of examples available for download from its website. From www.ni.com/support/ you can search through example programs for "serial file" to find an example that reads from the serial port and writes to a file.

If you are interested, National Instruments also offers customer education to help you get up to speed programming in LabVIEW. The site at www.ni.com/custed/ provides detailed information abo
ut the courses available.
Message 2 of 3
(4,787 Views)
I'm also a new LabView (7.0) user, and am working on a very similar application - reading/writing to a serial port to control devices for which there are no existing drivers.

One thing I found very helpful was to use Hyperterminal to output test characters from your (a) PC. Hook up a serial cable from one of your COM outputs to your LabView device (in my case, a PXI dual port serial card). Then you can set up little VI's to do simple things like just read in and display characters that you type on the keyboard.

One tool I found useful was the Type Cast function (All Functions/Advanced/Data Manipulation). This allows you to create an arbitrary non-ASCII byte to output to the serial port. I spent a lot of time experimenting/testing before I found this hidden fu
nction (however, there may be an easy way to do it that I just missed).

Good luck
0 Kudos
Message 3 of 3
(4,786 Views)