LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running an app with two seperate data feeds

Is it possible to create an app that will run using two different data sources?  I have the main DAQ hardware using a serial connection to the LV computer, and the other data I need is coming from another PC using TCP/IP.  Can both streams of data be displayed on the same VI front panel or do I need to run a seperate app along side the first one?


Thanks!

Todd Munsell
Test Cell Manager
Wood Group Pratt & Whitney Industrial Turbine Services, LLC
Plattsburgh, NY
0 Kudos
Message 1 of 2
(2,181 Views)

That sounds like a job for some parallel loops, one reads the data from the serial connection, one that reads the TCP data, one which displays the data and one which hadles user events (pressing front pannel buttons).  I would use queues to pass the data around from loop to loop.  Data comes out from the TCP read and into the queue. 

 

Now be careful if your data sources read at differetn rates and your display undates at yet another rate the data could become out of sync very quickly.  What I have had happen is the one of my data sources reads much faster and builds up a large amout of data in the queue which is read more slowly. 

 

good luck

0 Kudos
Message 2 of 2
(2,172 Views)