03-16-2012 11:51 AM
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).
03-16-2012 11:55 AM
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.
03-16-2012 11:58 AM
Thanks both for help, will report back with the results in the next week.
03-23-2012 02:24 PM
It turned out the simplest solution was to omit the Data Collector.
06-20-2012 12:21 PM
This looks just like what I need. Would you mind uploading your final version? Thanks