Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital generation with NI-9485 for Hydraulic control.

Hi everybody,

 

I'm trying to control 3 solenoid hydraulic regulator by means of a 9174 chassis and a 9485 board. I have defined the initial and the final state of the four channels as FALSE (Hydraulic regulators closed). The next step is a sequence of four states and each state has a determined duration (I will control the test only setting the duration of each state, the duration of each state is longer than 2 seconds). I want to pass between states during the sequence without delays. All sequence has been inserted in a while loop to repeat continuosly the sequence (the hydraulic regulators are used in a duration test with thousand of cycles). I have detected two problems:

 

                     -During the execution of the sequence first time, the duration of the state are very short (if I want 1 second I obtain 0.5 seconds). During the second cycle the duration is ok.

 

                     -Between the finish of a state and the start of the next state i have measured a delay of 30-50 ms.

 

How I could improve the code to obtain correct state duration since the first sequence?

 

I have enclosed some pictures of my code. To check the signals, I have used a NI-9219 board to measure resistance.

 

Thanks in advance

Download All
0 Kudos
Message 1 of 1
(4,448 Views)