LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with sync waveform generation to 60 Hz trigger.

I can't sycn an output waveform to a 60 Hz trigger with Labview 5.1, Win NT, PCI-6024E. I started with retriggerable_AO_easy_5.vi. I couln't load the advanced version due to missing files. If I set a small number of data points per cycle, it seems to trigger fairly well, but skips every fourth cycle. If I set more than 100 points/cycle it does not sync to the trigger at all. Any suggestions or examples of how to do this?
0 Kudos
Message 1 of 2
(2,559 Views)
Steve,

With a 60Hz trigger you will have 16.67 milliseconds to complete your analog output operation of 100 points. What is probably happening is these 100 points are taking longer than this amount of time and the output operation is not completed in time to be set up to receive the next trigger.

Normally 100 points would not be a problem; however, I cannot verify this with LabVIEW 5.1 because I don't have it installed as it is quite an older version. We are currently up to version 7.0 and a number of significant improvements have been made to both LabVIEW and our new NI-DAQ 7.0 driver. Especially in regard to retriggerable operations in NI-DAQ 7.0 which has made it incredibly easy.

I found the retriggerable_AO_easy_5.vi you are referring to on
our website. This is the first time I have seen this particular example for a retriggerable operation and not what I would expect. Placing AO Start in the while loop, as well as AO Wait, will slow down the loop and is probably the reason you are being limited to a low number of samples. I would definitely recommend, at the very least, the advanced example if you wish to exceed 100 points per cycle. In order to run the advanced example you will probably have to upgrade your NI-DAQ driver. Try version 6.9.3. However, I would definitely recommend an upgrade to LabVIEW 7.0 and NI-DAQ 7.0.

Regards,
Justin Britten

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,559 Views)