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: 

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

Solved!
Go to solution

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
(2,305 Views)
Solution
Accepted by 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

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
Message 2 of 3
(2,278 Views)

Thanks Kevin,

 

it works like a charm!

 

Best Regards,

Jakob

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