I'm trying to create a while loop in a block diagram that can be started and stopped while the VI is running. In other words, I'd like to have a button that initializes a while loop, or a set of commands after hitting the run button on the front panel. Would placing my entire project in a while loop with a T/F switch work? I apologize in advance if this is a rather simple question.
Great! That works wonderfully. I have another question, if you'd be of assistance.
I'm using an NI USB-6008 DAQ and I'm wondering if it'd be possible to do two simultaneous acquisitions with 2 analog input channels. I haven't yet tried this, but I'd like to know if it's do-able before I get into it.
You should have no problem doing this, I recommend using DAQmx to get yourself started. You can use DAQmx to create a task, setting parameters such as what/how many channels to sample from and at what rates (among others).
Would it be possible to set this up in the block diagram with 2 DAQ Assistant inputs in an event block?
Also, when graphing the acquired data, is there a way to change the color of the line at a specific point, or add a marker at a specific point, during the acquisition?