LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do fifo in labview?

Hi Thomas  and Nishant,

Thomas, thank you for explaining what i meant to say with more clarity.

Nishanth, hope this solves your problem

Regards

Dev

 

 

0 Kudos
Message 11 of 50
(1,232 Views)
Dev - no reason to say thank you. We were just two tasks running in parallel. Smiley Wink
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 12 of 50
(1,228 Views)

Smiley Very Happy

Smiley Wink

Message 13 of 50
(1,226 Views)
Hiii Dev,
 
            I am back again for your help.
 
            These are the good options, but it doesnt seems working for me,coz what i want is to first put the 10 sec's record inside the file and then after, do the fifo for only one second's record, mean when we start fifo, at that time,1st sec's data should be deleted from file and 11th sec's data should be inserted below the 10th sec's record. so this doesnt seems to work for me, any ideas abiut this.?
 
Thanks,
Nishant
Message 14 of 50
(1,207 Views)

Hi Nishant,

Tell me if i have understood u right.

The file contains first 10 seconds data and the 11th second's data is replaced each time a new data set is obtained

Is it so?

regards

Dev

 

Message 15 of 50
(1,205 Views)
Ya Dev,
 
                  But with somewhat differently,when the 11th second's data comes into the file at that time the first second's data will be deleted, mean the file will contain 10 seconds data everytime, but with the FIFO concept, that the data of the first second will be removed and all the data will be shifted one second up and the last second's data will be inserted at the last index of the file. Here actually 10 is n sec, user can enter any of the value betn 1 to 60, and i will compare it with the counter, and whenever program starts, i ll first write all the data upto n sec into the file and after n secs complete, i will start to do fifo for each 1 sec's data.
 
Thanks,
Nishant
Message 16 of 50
(1,199 Views)

Hi Nishant,

The attached VI does the file saving as u wanted

Just set the number of rows ( say 5)

once it saves 5 rows, it starts saving the next second's data in the 5th row and puhses the previous row data to one row before and discards the data in the 0th row.

Hope this solves your problem

Regards

Dev

 

 

Message 17 of 50
(1,196 Views)

Thanks Dev,

                         This will work for me nnow, ill check all the things when i ll once implement it with our another concept of file write, and if anything doesnt work, i ll com back to you.

 Thanks,

Nishant

Message 18 of 50
(1,190 Views)

Hi Dev

Could you post it as LV7.0 as well?

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 19 of 50
(1,226 Views)

Hey Nishant,

glad to be of help

Regards

Dev

 

 

Message 20 of 50
(1,186 Views)