06-25-2019 12:41 AM
How to use DAQmx CO Pulse Time to change duty continueously while not stop task?
Solved! Go to Solution.
06-25-2019 12:48 AM - edited 06-25-2019 12:49 AM
07-05-2019 01:41 AM
This is an example from labview library, I use a card USB-6210, but I get this error as below:
07-05-2019 01:43 AM
07-05-2019 03:41 AM
I get no error by this code, but this can only output the first setting pulse. How to do?
07-05-2019 03:52 AM
Try something like this:
Regards, Jens
07-05-2019 09:41 AM
Two points:
1. Your device is an M-series MIO board which does *not* support buffered pulse train output. If you need to predefine a buffer of pulse params and then generate those pulses with hardware timing, you'll need a newer device such as an X-series board (model #'s 63xx).
2. The post from JensG69 points you in a useful direction -- consider changing pulse params based on software timing. However, be aware that the code may not *quite* work as-is. You may find that you need to write *both* frequency and duty cycle in order for the duty cycle to update. (This was definitely true some years ago, but it's possible DAQmx has changed to no longer require it.) FYI, in case you don't see duty cycle changes take effect in you pulse train signal.
-Kevin P