LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronizing data streaming out of hardware aquiring data at 2 different rates.

I have an application in which I am aquiring data from 2 peices of hardware, an Emant300 USB daq device and a Mitutoyo Linear Transducer.  Due to limitations in the hardware, the slowest that I can run the Emant is 10 HZ or 10 samples/sec and the fastest I can run the Mitutoyo gage is 4 hz or 4 samples/sec.  Both are outputting a double number every cycle.  I want to be able to "synchronize" the data between them.

I was thinking that maybe I could take every third data point from the Emant by using a while loop, shift registers, build array and an index array, (see VI below) but I ran into some issues with that (I am not sure how many data points I will have, as we will be aquiring data for 20-40 seconds, so 200-400 data points.) I was having trouble implementing this in real time as I am displaying the data in real time via refernces to my main VI (each of the hardware is controlled by a subvi running in parallel.)

I am not sure if Queues would work or not.

Didnt know if anyone had a hint or another idea which might work.

Kenny
Kenny

0 Kudos
Message 1 of 2
(2,365 Views)
I was able to figure it out.  Nevermind. Smiley Happy
Kenny

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