Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read data from a PC port using LabVIEW

Hello,

 

I have a microboard that can output an array of voltages. Using assembly language (software), I can send these values to my PC's COM Port.

 

Questions:

 

1. How can I read these values using LabVIEW?

2. If I can, how can I separate these values in separate columns after acquiring this data? 

3. Do I need additional software other than LV e.g. NI Serial or NI VISA to do this?

 

Thanks.

 

0 Kudos
Message 1 of 3
(3,245 Views)

@PSerial wrote:

Hello,

 

I have a microboard that can output an array of voltages. Using assembly language (software), I can send these values to my PC's COM Port.

 

Questions:

 

1. How can I read these values using LabVIEW? you read these with a VISA read function after you configure the resource settinggs, COM port# Baud rate data bits....

2. If I can, how can I separate these values in separate columns after acquiring this data? VISA Read returns a string of data. Scan from string ( hopefully ther are delimiters from the device to seperate the data elements) will convert them to any type of data you need

3. Do I need additional software other than LV e.g. NI Serial or NI VISA to do this? Yes, both! but they install from your "device drivers" DVD that shipped with LabVIEW.  You can verify they are present by opening MAX Measurement and automation explorer an opening the software folder

 

Thanks.

 


 


"Should be" isn't "Is" -Jay
Message 2 of 3
(3,241 Views)

Correction: You only need NI-Serial if you are using one of NI's serial interface products. If you are using the PC's serial port then you do not need it.

 

Also, you should open the Example Finder (Help -> Find Examples) and look at the serial port examples. You should also do some reading: http://zone.ni.com/devzone/cda/tut/p/id/4359

 

Also, if you have not already done so, spend some time doing some LabVIEW tutorials. The forums is not a replacement for doing your own studying. Smiley Wink  To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. There are also several Technical Resources. You can also take the online courses for free.

Message 3 of 3
(3,232 Views)