12-14-2017 05:37 AM
Hello everyone,
I am new in Labview. I am trying to generate ramp signal and dc signal simultaneously from my data acquisition device, which is USB 6001, and I use AO0 and A01 to do it. Actually somehow I succeed to generate the signals that I want. However after the program runs for a while, firstly it starts to stop generating the signal that I want and then give an error. The error code is 200088 and Possible reason: Task specified is invalid or does not exit.
I search for the error on forums. But unfortunately, I did not fix my problem even though I tried all that is writing on forums. If you know the problem, could you please help me?
I have attached the photo of my LabVIEW code.
Best regards,
Onur
Solved! Go to Solution.
12-14-2017 05:37 AM
Hello everyone,
I am new in Labview. I am trying to generate ramp signal and dc signal simultaneously from my data acquisition device, which is USB 6001, and I use AO0 and A01 to do it. Actually somehow I succeed to generate the signals that I want. However after the program runs for a while, firstly it starts to stop generating the signal that I want and then give an error. The error code is 200088 and Possible reason: Task specified is invalid or does not exit.
I search for the error on forums. But unfortunately, I did not fix my problem even though I tried all that is writing on forums. If you know the problem, could you please help me?
I have attached the photo of my LabVIEW code.
Best regards,
Onur
12-14-2017 07:20 AM
1. Move your initialization to be outside of the loops.
2. Move your closing of the task to be after the loop.
3. You should use a Create DAQmx Task to initialize the shift register on your initialization loop.
12-14-2017 07:51 AM
Your team is best. My problem has been fixed.
Thank you so much!
12-14-2017 04:09 PM
You can mark replies as solutions.
Glad things are working for you now, but I did want to point out that your outside loop will never run more than once. There is a while loop inside that is hard wired to never stop so I am guessing you are stopping it by hitting the stop button. You may want to rethink that and have a proper button to stop the while loop.