04-21-2016 02:34 AM - edited 04-21-2016 02:35 AM
Hint: Right-click the DAQAssistent and select "Open Front panel" to convert it to a "standard" VI… Or examine the VIs in the example finder on DAQmx...
I don't see a reason why would using DAQ Assistant be a bad choice for this task.
Anyway, what I see as a potential problem is, that the program can stop before you write the data to the file. You wired the DAQ Assistant error output diretcly to the conditional terminal which means that LabvIEW will not wait for "Write to Measurement File" block (dataflow 🙂 ).
04-21-2016 03:01 AM - edited 04-21-2016 03:14 AM
Hi stockson,
the program can stop before you write the data to the file.
You're joking, are you?
DATAFLOW: a node/structure will be executed, when all inputs are available.
DATAFLOW: a structure will be finished (aka "loop will be left") when all code inside has finished!
Will the loop finish before the WriteMeasurement is executed?
(Are you working at NI, because of your blue user name? :D)
The problem is even worse with this VI: the WriteMeasurement is executed even in the case of an upstream error and will write invalid data to file…
04-21-2016 03:27 AM - edited 04-21-2016 03:28 AM
I wish I was... Honestly it is hard for me to recreate my train of thought when I was writing that post.
Anyway, it has nothing to do with dataflow. Conditional terminal is checked at the end of an iteration, end of story.
Sorry for the confusion.