LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with DAQmx write timing

Fairly inexperienced with LabVIEW and First time post so I apologize for any errors in etiquette and etc.

 

I am having trouble using a NI 9263 to Output a Custom Waveform with the correct frequency to one of the analog channels.

 

I am having 2 problems:

 

1) My combined waveform, of an alternating square wave is almost accurate, however it has a hiccup where the square puleses will occasionally be at the wrong width or time. Is there a more accurate way to produce this waveform?

 

2) The combined waveform has an accurate frequency (I input 55 hz, it creates a waveform with 55hz), but something causes the actual output to be at some higher value. What can I do to fix this?

0 Kudos
Message 1 of 3
(3,061 Views)

The way your VI is set up can be tweaked a bit.  I think you should have your signal that you are writing built outside of the while loop and only have the DAQmx write in the while loop.  The DAQmx Start Task will be outside of the while loop as well.  Here is a guide that is pretty helpful if you are just getting started with DAQmx and LabVIEW.  Also check out the examples in LabVIEW, Help>>Find Examples.

0 Kudos
Message 2 of 3
(2,982 Views)

Sorry, just realized I never included the link to the guide.  Here it is:  https://www.ni.com/en/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-handl...

0 Kudos
Message 3 of 3
(2,949 Views)