04-09-2010 11:46 AM
04-12-2010 06:13 PM
Hi,
Looking at your code, you AO DAQ assistant is set to continuous generation and you are giving it one data point. That error is telling you that you need to give it at least 2 data points if you wish to do continuous generation (ie: continuously change the value being outputted.) If you wish to update the output value every iteration, you could use “One Sample (On Demand)” and give it your one value. This value will remain until you update it with a new value. Let me know if you are still having trouble with that.
04-13-2010 03:30 PM
04-14-2010 10:06 AM
I think you must have misread my last post. That error is caused my only giving one data point to a continuous analog generation task. To fix that error you need to change the DAQ assistant that is generating your output to be “One Sample (On Demand)”. Additionally, you should change your analog input DAQ Assistant back to “One Sample (On Demand)” or to finite that way each time your loop iterates you will get fresh data that reflects the changes of your PID control.
04-16-2010 03:26 PM
04-19-2010 04:43 PM
Not Executable? Can you delete that DAQ assistant and create a new one? Can you post your latest code with this error? I did it here without error so I’m curious as to what may have changed.
04-20-2010 02:27 PM
04-21-2010 06:02 PM
Hi Fountainhead,
Can you try creating a task in Measurement and Automation Explorer and see if you get the same sort of error? Can you right click on the DAQ Assistant and select “Generate Code”? Also try this VI on your machine and see if it runs.