04-12-2023 12:35 PM
Hardware: USB-6002
I have created two sigmoidal waveforms which I would like to output through A0 on my USB 6002. Currently, my code works in generating both the ascending and descending waveforms, however, in between triggering the ascending and descending waveforms I would like to have the analog output from the USB 6002 idle at the last outputted voltage value. I'm looking to do something like this:
I know there is an idle output behavior property but to my knowledge, this functionality is not available with my USB 6002.
04-12-2023 02:04 PM - edited 04-12-2023 02:06 PM
I don't think you can achieve that with your DAQ assistant express VIs, you need to use the DAQmx drivers to achieve that and use only one Event structure in a VI (you can add event cases to a single event structure)
In general, if you don't clear the task and just stop the task, the last generated value will be retained at the output, then you write the new waveform to DAQmx and start the task.
Skip the DAQ Assistant part in this article - https://www.ni.com/en-us/support/documentation/supplemental/06/learn-10-functions-in-ni-daqmx-and-ha...
04-17-2023 01:45 PM
Thank you for the advice. After learning a bit about the DAQmx functions, it looks like I'm getting closer to my goal.
My issue now is getting the correct waveform to output from the DAQ. I'm guessing I made an error with the hardware timing but I'm not sure. I'm trying to output a single cycle of a sine wave, but the waveform seen on the DAQ is not similar to what I believe to be inputting.
I have attached my code, data files, and output from an oscilloscope.