07-13-2016 11:49 AM
I'm trying to collect data so I can use it for analysis, I'm not quite sure where to start. I need to open a virtual com port, and then have the program read the bytes. The packet of data is 1651 bytes long.
Thanks,
Andrea
Solved! Go to Solution.
07-13-2016 11:53 AM
Open the Example Finder by going to Help >> Find Examples then search for Simple Serial. The example shows how to send some data, wait, and then read some data back. There are better designs using synchronous messages but it is a good start.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-13-2016 11:55 AM - edited 07-13-2016 11:56 AM
LabVIEW uses VISA, which stands for Virtual Instrument Software Architecture. Here's an overview of VISA.
The snippet in that article is really all you need to communicate with an instrument. There are other VIs in the palette that help you configure your port and stuff like that. Look through the VISA palette to get familiar.
To start the communication, I would suggest using MAX to make sure you can communicate the way you want. Then take what you do in MAX and implement it in LabVIEW.
Edit: Also, the examples are a great help as Hoovah suggested.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
07-13-2016 01:56 PM