From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-02-2016 05:38 PM
I have a program that outputs 2 analog output waves and a separate program that inputs analog data through several NI devices. I need to incorporate the analog output program into my analog input program.
The analog output program is attached as "AO_Triggers_LowLevel.vi" and the analog input is attached as "ExperimentDAQ.vi". When I try and integrate these programs I receive "Error -200560 occurred at DAQmx Wait Until Done.vi" at my Wait Until Done function of my analog input task (bottom task of program). I think there my error is in the order I'm wiring up my error wires but I am unsure. I've looked at multiple tutorials (i.e. Timing and Synchronization Features of DAQmx) but I'm totally stuck.
Any suggestions are greatly appreciated. Thank you!
Alberto M.
Solved! Go to Solution.
02-03-2016 12:29 AM - edited 02-03-2016 12:32 AM
Why do not show us your actual vi which generates the error? These two which work are irrelevant, since we cannot see how you integrated them...
02-03-2016 08:42 AM
Sorry, I should have explained better. The "ExperimentDAQ.vi" program already includes the other program incorporated in it. This is my actual vi where I am generating the error. The "AO_Triggers_LowLevel.vi" is only included to show the working program that I need to incorporate into my full program.
The image below shows where my error is occuring in my actual vi.
02-03-2016 10:06 AM
I believe I fixed this issue. I extended my Flat Sequence structure to include the task and error lines of my analog output task and things seem to be working. I am still unsure as to what caused my error and why this solved the issue...
02-03-2016 11:01 AM
You need to start your AO task before the AI Task that is sending the trigger when it starts. Originally, you had your AO task starting after the AI tasks and it therefore never saw the start trigger.
So you should move the Start Task for the AO to be inside of the sequence structure, not after it.
02-03-2016 01:05 PM
Thanks! I'll update my program to match this.