02-21-2005 07:45 AM
02-22-2005 10:00 AM
03-06-2008 02:40 PM
03-10-2008 02:22 PM
Hi Hm@n,
If I understand correctly you are using a counter output frequency task to generate a signal for your CAN bus and you want to be able to change the frequency while the task is running. This can be accomplished using a DAQmx Channel Property Node. There is a Developer Zone Example Program that shows you how to do this. It is located here. I found this article by searching the NI website for “counter output frequency”. The example is well documented and worth looking at. Let me know if you have any questions and have a great week.
Thanks,
03-13-2008 09:56 AM
03-14-2008 03:38 PM
Hi Sébastien,
The speed you can change the frequency programmatically is going to be very dependent on how fast your computer is and what Windows is doing. The fastest you can change it assuming your computer is fast enough is once per period of the output.
Pause triggering is a great way to control the output if all you need is either no signal or a set frequency. When you pause the task the output will go to the idle level setting of either high or low. When the counter task is not paused it will output the set frequency normally. You can also still change the frequency on the fly while using pause triggering to completely stop the output. Pause triggering however is not software controlled normally. Do you have a digital signal that specifies when the counter should output? If not you can use a digital output wired to the pause trigger terminal. Then you can control the pause triggering in software by writing high or low to the digital out.
Let me know if you have any questions and have a great weekend.
Thanks,