04-14-2017 04:32 AM
Good day, I am new to LV after all ( okay, I have been using it loong time ago >6 years) so I remember almost nothing from it. I have found that on my old PC I still have LV8.6 installed.
I would like to kindly ask for help, if anybody here can make me simple VI, so that I can start laboring with it.
I have Arduino, which reads 2 analog pins and sends the raw values directly to serial port.
output is at baud 230400/8N1 with CR/LF at end of line and looks in this way :
1023,475
375,48
478,1010
.....
it is delimited by comma.
What I would like to have is :
Read the selected comport
Assign Timestamp ( actual PC time, with millis resolution) to each received line
Simultaneously plot the chart for the two values separately
Be able to select whether to store the data as file.
Just to note, the data are given every cca 500us to the port, so saving a file is maybe a future and not neccesary now.
Can anybody help ? Sorry for my english.
04-14-2017 05:15 AM - edited 04-14-2017 05:16 AM
Here is a snippet to get you started. But thinking about your requirements, 500us is fairly fast for a serial port. If you do add logging, you will definitely need a Producer/Consumer setup.