LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2010 - Display data in real-time, but only save the data once a button is pressed?

Your file write needs to be inside the main while loop or you pass the data to a separate loop via a queue like the producer/consumer architecture (File>New...From Template>Frameworks>Design Patterns).

0 Kudos
Message 31 of 35
(786 Views)

Bring your Write to Measurement VI inside your while loop.  Keep the same mechanical action of your boolean and try that.  It should record as long as the button is depressed (on).  This general archetecture may be OK for this application, but it's not very scalable.  Look into the producer-consumer archetecure.  Perhaps something event driven.  Even if it's over-kill at first, you can grow into it much easier.  I almost always use this archetecuture, even if I don't need it.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 32 of 35
(785 Views)

Thanks both for help, will report back with the results in the next week.

0 Kudos
Message 33 of 35
(784 Views)

It turned out the simplest solution was to omit the Data Collector.

0 Kudos
Message 34 of 35
(756 Views)

This looks just like what I need. Would you mind uploading your final version? Thanks

0 Kudos
Message 35 of 35
(710 Views)