04-19-2016 03:04 AM
I want to update property node of DAQmx in event case to update value dynamically, but only 1 of 2 property node can be update to "DAQmx Is Task Done.vi", all the case could be triged normally.
As the picture shows below: the duty cycle case can be triged and run but property value not updated to DAQmx vi. well Frequency one works normally.
Solved! Go to Solution.
04-19-2016 08:04 AM
Well, I can't tell from your post nor from your VI (which does not match your post, by the way) what Device you are using, so I can't look up whether what you are trying to do is possible. [That would be a real easy answer -- "You can't do that because the Device doesn't allow it", but I'm not at all sure that's correct. I did try one device of mine, and that would have been the correct answer, however ...].
Bob Schor
04-19-2016 08:04 PM
I change it from labview example"counter - continuous output", pupose to update output character if duty/frequency change during vi run.
frequency works, duty case actived but value not update to output.
I don't know what's the difference between frequency case and duty case.
thanks~
04-19-2016 09:03 PM
Do not attach pictures, but do attach your VIs. I cannot fully inspect pictures (to see other cases), cannot execute the code in pictures, cannot help you if I'm looking at pictures, not code.
Bob Schor
04-20-2016 01:08 AM
sorry, the vi in 1st page not works?
attach again~
04-20-2016 01:41 AM
my device is USB6351
04-20-2016 10:36 AM
The answer is probably stranger than you expect. It turns out that the two pulse timing parameters Frequency and Duty Cycle are not equally privileged. (I believe the same kind of asymmetry applies when defining a pulses with High Time and Low Time.)
Frequency gets the privilege in the sense that pulse timing is only changed when a frequency value is written. In order to change only the Duty Cycle, you need to drop down a DAQmx Channel property node, expose the properties for both Duty Cycle and Frequency, and write to both of them. You don't need to change the *value* you write to the Frequency property, but you *do* need to write to it. Since property node writes proceed from top to bottom, it's important to have the Duty Cycle property above the Frequency property.
Here's a more complete article.
-Kevin P
04-22-2016 03:13 AM
thanks kevin!
I used the solution for temporarily