LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change the update rate in 'Generate N Updates - ExtUpdateClk.vi'

The example vi 'Generate N Updates - ExtUpdateClk.vi' is set up to do analog output with an external update clock. This is accomplished by selecting 'I/O connector' as the clock source. In my case, I have a 1 MHz external update clock, but I only want to update at 1 kHz. Is there a way I can 'divide down' the clock so that 'Generate N Updates - ExtUpdateClk.vi' only updates every 1000 clock cycles instead of with every clock cycle?

David Scherer
University of Arizona
0 Kudos
Message 1 of 2
(2,464 Views)
Hi David-

You can indeed choose a clock divisor for your AO external clock signal. This setting is made in the AO Clock Config VI using the "alternate rate set" input. The AO Clock Config is used within the AO Start VI in the example you're looking at, but it isn't exposed externally on the AO Start.

To give you an idea of what setting you'll need to change, I have modified the AO Start VI to include this input pin. If you replace the AO Start VI in the example with this modified VI (and then save it in a different location to avoid saving over the original example) then right-click on the "alternate rate set" pin and create a control you will see the Timebase Divisor input in the new control on your front panel. This divisor is the setting you will need to divide down the input signal as you would like to use in your application.

Please let us know if you have any additional questions.

Thanks a lot-
Tom W
National Instruments
0 Kudos
Message 2 of 2
(2,457 Views)