03-07-2014 09:32 AM
hi!
I have a VI which collects data from different sensors (TC and ultrasound flow meters) at different rates (every 1000 ms for TC and every 50ms for flow meters). I placed the TC code in a while loop and the flow meters code in a second while loop running in parallel with the first one.
However, I would like to write all of the data into one lvm file using the express vi "write to measurement file" at the rate of the slowest instrument (every 1000 ms). How can I do that? I thought about using a third loop having the acquisition rate I want to use for the file and passing the data from the other loops with local variable but I'm worried about using local variables. Is there another way I can do?
Thank you in advance.
Valeria
Solved! Go to Solution.
03-07-2014 09:39 AM
03-07-2014 10:00 AM
ok....thanks, I'll try!
03-10-2014 08:54 AM
I must miss something...I tried building the VI, it works with local variables but not with notifiers. I'm probably messing up with them since it's the first time I use them.
I attached the screenshot of my VI, every time I run it it says that there's an input error on "release notifier".
Can someone help me?
Thanx!
03-10-2014 09:02 AM - edited 03-10-2014 09:03 AM
Use http://zone.ni.com/reference/en-XX/help/371361G-01/glang/wait_on_notification/ instead of wiring the double through to your writing loop. Your loop is now waiting for both of the producer loops to finish before it will execute due to data flow (LabVIEW is a data flow language!).
Look at the notifier examples that ship with LabVIEW.
03-13-2014 02:19 AM
ok, thanks, now it works!