cancel
Showing results for 
Search instead for 
Did you mean: 

FIFO loop

SOLVED
nos
Member
Member
Solved!

FIFO loop

Message contains an attachment

I am using an RT FIFO to pass data from three analogue channels in a timed loop, sampling at 32Hz, to a secondary loop for writing to disk, see attached jpg. The vi appears to work correctly except that the first row of data in each data file is repeated, see attached txt file.

 

Any comments/suggestions on the possible cause of this behaviour would be appreciated.

 

Best regards,

nos

 

 

3 REPLIES 3
Ben
Knight of NI Knight of NI
Knight of NI

Re: FIFO loop


@nos wrote:

I am using an RT FIFO to pass data from three analogue channels in a timed loop, sampling at 32Hz, to a secondary loop for writing to disk, see attached jpg. The vi appears to work correctly except that the first row of data in each data file is repeated, see attached txt file.

 

Any comments/suggestions on the possible cause of this behaviour would be appreciated.

 

Best regards,

nos

 

 


Check the error cluster from the FIFO before saving it to file.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
xseadog
Active Participant

Re: FIFO loop

Hi nos,

 

you jpg does not provide a lot of info. Do you actual need afull time stamp? if not i would just log the loop time so you can see when the loop is updated.

 

Can not determine if the time loop runs simultanously with the next loop?

 

Text file does not indicate that the data is a previous copy ( note channel 2 & 3)

 

how have you initialise your FIFO.

 

just my 25 øre's worthSmiley Wink

 

xseadog

nos
Member
Member
Solution

Re: FIFO loop

Message contains a hyperlink

Thank you both for your responses.

 

It seems that using a FIFO like I am doing is not the best method of passing data from a sampling loop to writing loop, even though I got the idea from a NI tutorial, see http://zone.ni.com/devzone/cda/tut/p/id/11198. The problem being synchronization between the two loops.

 

A different approach is to use a queue, which has now been implemented, and seems to give data in the required format.

 

Best regards,

nos