LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring 14 sensors signals by serial port.

Hi , I am new on this forum and I have several questions.
Well I am communicating a PIC with a PC in order to monitoring 14 sensor sig
nals, the problem is that I have a frame to send from the MCU to the PC cons
isting of one STX byte + 14 bytes (one from each sensor and each one consist
ing of 8 data bits) + CHk byte + ETX byte.My problem is that I want to plot
the Tº signals into one plot for example, and pressure signals into another
plot and so on... but I dont know how to extract the info from the incoming
frame ,in other words, I dont know how to tell to labview ok this part of th
e frame goes to the Tº plot in this goes to pressure plot for example and if
the microncontroller ADC converts the analog data from the sensor in binary
data and after forming the frame trough the PIC USART to send it to teh PC
how labview interprets that data in order to plot it into a graph.

Thank you very much in advance and sorry for my english
Regards
0 Kudos
Message 1 of 3
(2,438 Views)
The frame will be recovered from the serial port as a string composed of 17 chars. You simply have to convert this string into a byte array, then remove the first byte and the two last bytes to get an array of your sensor data.
See the attched vi to have an idea on how to do plot the data at once, or to retrieve a specific sensor signal from the array.

CC
Chilly Charly    (aka CC)
Message 2 of 3
(2,433 Views)
Thank you very much for your quick answer,I am working on it looking at your vi. This monday or tuesday I will connect my MCU to serial port and I will post how it works.
Regards.
0 Kudos
Message 3 of 3
(2,429 Views)