LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trigger line usage on the cDAQ-9181 with a cRIO-9401 module

Solved!
Go to solution

Yes, I am receiving error -200254 when using DAQmx Write (Digital 1D Bool NChan 1Samp).vi.

0 Kudos
Message 11 of 14
(1,310 Views)

Hi Chris,

 

Sorry, I believe I was mistaken earlier. The four lines you are writing to should each be considered a separate channel. So, try changing the line grouping constant to 'one channel for each line'.

 

Also, have you been able to isolate whether the error is occurring in the first or second instance of DAQmx Write? You may want to explicitly start the task before the first write operation. Doing so is typically considered good programming practice when working with data acquisition.

Tom D.
Staff Software Engineer
NI
0 Kudos
Message 12 of 14
(1,288 Views)

Tom, I think the attached is what you were suggesting. I will try this out shortly and get back to you. Thank you again for your assistance.

Download All
0 Kudos
Message 13 of 14
(1,276 Views)
Solution
Accepted by topic author Chris_12345

Thank you to Jon Frantz at NI for providing me with a solution to this issue. See attached code.

Download All
0 Kudos
Message 14 of 14
(1,247 Views)