Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming with RS-232C to USB-writing data to array

I am trying to write a Lab View VI to record data to a spreadsheet.  All of the analog inputs are in the same while loop, and record data at the same rate, to an array, so all the data is synchronize.  The only element left is a balance that is connected by a USB to RS-232 serial connection. The scale is recognized by VISA.  I would like to put the scale input and writing in the same while loop as all of the analog data so I get one datapoint from each instrument at the same time. I also want it to write to the same (floating point string )array as all of the other data. I know nothing about the protocols associated with serial port communication so I'd like the programming to be as simple as possible.  How do I open the port, get the data, convert it to a string, and write that string to an existing array, all in an existing while loop?   Help on this would be greatly appreciated. 

 

 

Attached is the existing VI and the Excel compatible output file it currently produces. I'd like the weight data to appear after the last column with the same timing as the other data points, though less frequent collection of weight data is acceptable (but not ideal).

 

Grateful novice,

 

Jo

0 Kudos
Message 1 of 2
(3,282 Views)
You really should have posted to the instrument control board since you are aking about a serial device. And, since you haven't provided the make and model of the instrument or attached the manual, it is simply impossible to answer your question. I would suggest you try to find an existing driver for the instrument and study the programming manual. Test communication with a program such as Hyperterminal and then look at the serial examples that come with LabVIEW.
0 Kudos
Message 2 of 2
(3,280 Views)