LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

specified operation could not be performed while the ask is runnng error occured at DAQmx Start Task.vi

I developed some program and would like to finish it now and create executable but there is some problem:
if I run this VI and choose to stop it wih stop button on my fron panel it gives me this "error specified operation could not be performed while the ask is runnng error occured at DAQmx Start Task.vi"
If I will run this VI after that again it will not change (update plots, and indicators) but will create signal that goes to vibrator.
If I will use abort execution it will stop wihout this error and start normally next time.
 
 
Could you, please take a look at my code and suggest wha sort of error I did.
Thanks.
Download All
0 Kudos
Message 1 of 3
(2,656 Views)

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

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/
0 Kudos
Message 2 of 3
(2,611 Views)
Thanks a lot Rich,
I did fast check on modified VI and it works.
I do use config/data for storing some important settings to restore them on next start.
I am going to modify it a bit so it would ask on a start if I wish to load main configuration file or a last saved one.
Thnks a lot  again. 
Sergey.
0 Kudos
Message 3 of 3
(2,609 Views)