04-19-2007 06:12 PM - edited 04-19-2007 06:12 PM
Message Edited by Kevin Price on 04-19-2007 07:13 PM
04-20-2007 11:16 AM
04-21-2007 06:05 AM
Neither method works with the task running -- because it's configured as a *Finite* pulsetrain. My understanding of that is that the adjacent counter's single "gating" pulse is timed based on the pre-start values for freq & # samples, which is why DAQmx doesn't allow freq change on-the-fly for Finite pulsetrains.
Since I've got a workaround, my main question is whether I can count on it for the future. In other words, is it a bug that DAQmx Write fails or is it a bug that the DAQmx Channel property "frequency" succeeds?
My worst-case workaround would be to fully Clear the DAQmx task and then re-Create with a different frequency. I know this carries a lot more overhead which is why I prefer to Stop and re-Start.
Is there a different preferred method or sequence to accomplish the needs of my app? Restating, the main app will need to generate a variety of different Finite pulsetrain bursts at different times. Both the freq and the # pulses will vary from one burst to the next. I'd like to perform the re-config in the most efficient manner possible, which I've assumed is something other than Clearing and re-Creating the task.
Thanks!
-Kevin P.
04-23-2007 05:43 PM
12-04-2011 09:59 AM
Hello all,
Old topic but I'm getting the same error message, in the same conditions.
The weird thing about that is that I get the error in one vi but not in a different vi...
Is someone understand this ?
Thans in advance
Best regards from France
12-06-2011 08:50 AM
Hey Keno,
I tried duplicating your code based on your screen shots and didn't get an error in either case. What else are you doing in the second case structure in the BD that might be throwing an error? Likewise where exactly is the error coming from? Also, notice that the previous posts were generating a finite pulse train, whereas you are generating a continuous pulse train. This may be why using the DAQmx Write subVI is working, because this allows the user to change the duty cycle/frequency while the VI is running without using a property node.
Chris G
12-06-2011 10:39 AM
Hello Chris,
Thanks for your answer...Actually I solved the problem : it was due to the fact that I have connected the element "Echantillons continus" at the wrong place...Now everything works just fine! Thanks anyway for your answer
Regards