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.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem running NI 9401 for counter input and output

Solved!
Go to solution

Hi, 

 

I am using 2x 9401 modules with a NI cDAQ 9174 on Labview 2018, and am having trouble configuring these modules for both input and output. 

Below is the code I have been using.  Whenever I run the program, either the input signals work OR the output works, depending on which one I try to reserve/start first.  When I split it into 2 different programs, each one individually runs fine.  

 

I am getting Error -50103

"The specified resource is reserved.  The operation could not be completed as specified."

below is an image of my code, and I have also attached the VI

input_output_snip.PNG

 

0 Kudos
Message 1 of 3
(2,790 Views)
Solution
Accepted by topic author Peter.B

Hi Peter,

I think this issue with both modules referencing ctr0. Try to change the counter referenced by the bottom most task to ctr2.

Let me know if this helps with your error.

 

All the Best,

 

Noah B. 

Applications Engineer

National Instruments

http://www.ni.com/support

 

Noah B.
Technical Support Engineering
National Instruments
0 Kudos
Message 2 of 3
(2,764 Views)

Yes, that works perfectly! Thank You

0 Kudos
Message 3 of 3
(2,723 Views)