Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to DAQmx Channel does not update phisical channel on DO card

Solved!
Go to solution
Highlighted

Hello guys,

 

I have created a program to control a valve with PWM signal.

 

Here I create and run the task:

Jakob_Pin_1-1590561044501.png

 

And here I change the pulse width:

Jakob_Pin_0-1590560807253.png

I can see, that the Pulse Width property does update, but on the channel does not.

I also tried this, but its the same:

Jakob_Pin_2-1590561180309.png

 

What am I doing wrong?

 

HW info: cDAQ 9172, NI-9474.

NI-9474 card is mounted on cDAQ slot 6.

 

Best Regards,

Jakob

0 Kudos
Message 1 of 3
(281 Views)
Highlighted
Solution
Accepted by topic author Jakob_Pin

This is a subtle one that comes up once in a while.  Here's one recent time.

 

Expand the property node down and *also* re-write your desired frequency value, even if it remains constant.   Writing freq is what causes the driver to use both new parameters.  Dunno why.  (Other recent experiments suggest that "low time" or "low ticks" have a similarly privileged behavior as compared to high time and high ticks.)

 

 

-Kevin P

Message 2 of 3
(254 Views)
Highlighted

Thanks Kevin,

 

it works like a charm!

 

Best Regards,

Jakob

0 Kudos
Message 3 of 3
(245 Views)