LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Please help - Error Error Error

Hi, i've been ouptutting a voltage with the sub vi attached, basically the DAQMX Write(Analog DBL 1 Chan 1Samp).vi.

This was working fine last time i used it. I have come to use it today and it just keeps saying error 200088 (task does not exist or is invalid). I've checked and the hardware channel is working fine, it is just this DAQMX vi. I can't understand how it was working fine and now all of a sudden its not there.

Anyway has anyone got any ideas of what has happened or how i can fix it? Other daxmx vi's work.

Would re-installing the hardware drivers work, or does it come as part of LabVIEW.

I really need to fix it as were running the lab tomorrow after it was put off today.

Thanks
0 Kudos
Message 1 of 5
(3,113 Views)
Hi,

Have you moved the code at all, it sounds like the error is being caused as the task is no longer defined on the system. The task constant on the block diagram is referring to a task set up in Measurement and Automation Explorer (MAX). Take a look in here and check under the data neighborhood section of the tree in the DAQmx Tasks and make sure that the task "MyVoltageOut0" exists and that it is all working correctly, the task can be tested from within MAX. If this is all setup correctly and no errors are reported in MAX, the LabVIEW code you posted should work fine.

Give this a go, if you have more problems, post back and I'll take a look.

Regards
Hannah
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,091 Views)
Hi,

I've checked in measurements and automation, channel is there, tested the output and works fine.

Just still won't run from within LabVIEW. i set up a traditional channel aswell and tried that but it wasn'nt working. I've repaired LabVIEW and daqmx and drivers etc and still not working.

The only thing I think I could have done to it before it stopped working was compliling a run-only version of it.

Any help most appreciated!

Chris
0 Kudos
Message 3 of 5
(3,076 Views)
Hi,

This seems strange, building an application out of the code shouldn't cause it to stop working. I've done this on your code and everything works fine. I've created another example that performs the same thing as your code but uses the DAQmx vi's to create the task within the code. Set up the channel in the control on the front panel and then run the code, you can still use the dial to modify the voltage output value.

Have a look at this code and see if you can get it running and then let me know how you get on.

Hannah
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,064 Views)
Hi,

Have tried the VI you had posted and it worked!Still don't why it doesn't work without the create channel task there, it is part of a large piece of code so there could be some conflict mayby, but then it was working before. Anyways just using your VI now.

Thanks alot.

Chris
0 Kudos
Message 5 of 5
(3,050 Views)