LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing RS-232 Reception and DAQ acquisition .

No.  Look again.  There are two different Reads.  The first read will get one line and send it to indicator 1.  The second read will get the next line and send it to indicator 2.  Then it will repeat all of this again on the next loop iteration, thus you have the alternating of the incoming data that you are looking for.

 

Your example had only 1 read on each loop iteration and sent the data to both indicators.

Message Edited by Ravens Fan on 02-02-2009 11:19 AM
Message 11 of 15
(679 Views)
sorry friend it worked very well, you now have the measurement on two channels, I am studying your example to see the changes made, I appreciate the heart thanks in gratefull
God bless you
0 Kudos
Message 12 of 15
(676 Views)
I still do not understand how LabVIEW can differentiate the two channels and how he knows which part of the buffer used
0 Kudos
Message 13 of 15
(663 Views)

a friend has a problem if I reset the times the channels are alternate, is to create an identification saying this is the channel 1 and channel 2 y made pic send an string this form

channel_a:100

channel_b:200

channel_a:100

channel_b:200

LabVIEW is how to read only the value that is identified by the string channel_a and refuse to read the value than the right channel
0 Kudos
Message 14 of 15
(661 Views)

magnoedu wrote:

a friend has a problem if I reset the times the channels are alternate, is to create an identification saying this is the channel 1 and channel 2 y made pic send an string this form

channel_a:100

channel_b:200

channel_a:100

channel_b:200

LabVIEW is how to read only the value that is identified by the string channel_a and refuse to read the value than the right channel

 

This would be a better method as it allows you to know from the data that was sent as to what it really means.  You still have to read all the data, but if it is from a channel that you don't want, then you just don't do anything with it.

 

With data coming in like this, you could use some of the search string functions to determine which channel of data you have then decide what to do with it.

0 Kudos
Message 15 of 15
(653 Views)