03-19-2008 11:13 AM
03-26-2008 05:50 AM
Dear SergueiK,
Please find the attached VI, which will hopefully prevent the reoccurrence of that troublesome “200479” error.
The error is being generated because, with each iteration of the main loop, you were starting a DAQmx-task which had not been stopped.
It is more common for the tasks to be started prior to the execution of a loop – but this is not possible here, as you need to generate and write the wave form continuously. Therefore, I have modified the code such that the start task will only run on the first iteration of the loop. Please inspect the new code - it should be fairly self-explanatory.
The only other minor modification I carried out was to wire the “error out” of the “simple handling error” to the left hand wall of the main while loop. Although non-essential, this is good practice. It will ensure that your “key reading” functions will execute prior to the loop.
Could I ask you a quick question? I am unfamiliar with the config-data/key functions. Are you using them to read and store information from the front panel?
I hope this has been of some help.
Best wishes
03-26-2008 06:01 AM