03-18-2010 03:07 PM
03-19-2010 11:46 AM
You shouldn't have to write the samples inside the while loop. Try replacing that write with a DAQmx Is Task Done. Did you want it to automatically loop the same data until you press the stop button? If so, you should use a property node to make sure that regeneration is set to true. That part of the code would look something like this:
-Christina
03-22-2010 08:38 AM
03-22-2010 11:32 AM
That did not seem to help. I've checked my data going into the DAQ write, its fine, but the DAQ card outputs nothing.
I converted the digital waveform to an analog one and graphed it and the data seemed to have been negated as the graph showed 0s and -1s.
03-23-2010 09:46 AM
Hello
Try this example. Which exaclty does what you want to do i.e generate different wavefrom of different frequency and duty cycle.
Good luck
NI-khil
03-24-2010 07:55 AM
Thanks for the example but that isn't what I need. That example makes signals with regular duty cycles and my waveforms are not like that. The pulses within the waveform differ in width so I have to build it with samples I already have.
I am going to try to do something different today as digital waveforms are not working out for me. Thanks for all your help eveyrone.
03-25-2010 10:02 AM
Hey libbya,
The example posted should be a great frame work for what it sounds like you need to do. If you are having problems generating a specific waveform, try posting back with some details on what you've tried and what you're hoping to achieve and we can offer some suggestions.