07-06-2015 05:39 AM
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
07-06-2015 07:06 AM
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…
07-06-2015 07:36 AM
I take it that you are advising me to steer away from using DAQ Assistant.
Am I correct?
07-06-2015 07:37 AM - edited 07-06-2015 07:37 AM
07-07-2015 07:34 AM
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.