LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ Assistant setup Ok, but get Error -2002200

I have an odd symptom when trying to use DAQ Assistant with Labview 8.6.1. (and ultimately TestStand 4.1.1)

I use  the DAQ Assistant wizard from within Labview to use a particular channel - single channel, single sample digital output.

I can then RUN the configuration from withing the wizard, and change the state of the output - it works and the voltage on the channel changes as expected.

I then run my VI with the DAQ Assistant VI within it, and get Error -200220!

 

As a check, I created another similar VI using the same channel, but using DAQWrite to control the channel. this works fine.

 

I have tried repairing LabView8.6.1f, DAQmx 9.5.1, and MAX 5.1 through Control Panel but the symptom persists.

 

Has anyone any ideas how I can resolve this, or tell me what I am doing wrong, please?

 

P.S. I think that it could be something to do with DAQ Assistant possibly not using the current MAX setup

0 Kudos
Message 1 of 5
(3,704 Views)

Hi doogle,

 

tell me what I am doing wrong, please?

You use the DAQ assistent expressVI… 🙂

 

Has anyone any ideas how I can resolve this

Use plain DAQmx functions…

 

- When plain DAQmx functions run fine, then there is no need to reinstall LabVIEW or DAQmx.

- You use a channel defined in MAX. We cannot check your MAX settings…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,674 Views)

I take it that you are advising me to steer away from using DAQ Assistant.

Am I correct?

0 Kudos
Message 3 of 5
(3,665 Views)

Yes, you are… 😄

 

See this AppNote from NI!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,662 Views)

Thank you for the advise - It is far less painful using DAQmx functions than using DAQ assistant.

 

Having generated code from DAQ assistant I think I see where the problem comes from - rather than using the channel names/configuration from MAX, Assistant must actually hard code the association between the resource and channel name for itself, hence why it seems to use historic configuration data.

What a silly way of doing things.

 

I'll definitely steer away from using DAQ Assistant in the future.

0 Kudos
Message 5 of 5
(3,593 Views)