07-20-2011 12:30 AM
Hi,
I'm trying to record some data from analog input. I recently took the Labview Core1 course and have been trying to apply some of the lessons they have given to me.
One of them was to always use a state machine when possible
I'm trying to do simple Analog Input at this moment, which I can do outside the state machine just fine, but which I want to implement within a state machine as an exerscise.
I'm finding that DAQmx is throwing an error at me saying that I never specific a physical channel. However, I do specify a channel and throw it in a cluster (another thing I was taught to use at every opportunity), however, that information is not maintained in the cluster
I currently have 3 states: "start" where the user should input the channel and press START, "Initialize" where a filepath is asked for, and "SaveData" where the actual Acquire occurs. I may expand on this (with a 'record data' state), but for now i'm taking it a step at a time.
Anyways, when I probe the cluster, it seems to lose the contents even though I'm using a shift register. Can anyone help me (see attached images) with understanding why nothing is passing into my DAQmx AI Voltage function?
07-20-2011 02:22 AM - edited 07-20-2011 02:23 AM
On the left side of your while loop you have a tunnel on top of the shift register. Delete the tunnel and connect the shift register instead.