From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-12-2021 06:47 AM
Dear all,
I am using a USB-6366 DAQ to output analog waveforms via nidaqmx Python API.
Basically the DAQ serves as an arbitrary waveform generator.
I attached the code configuring the DAQ below. Also see the different outputs.
Attached, you can find an oscilloscope screenshot of the behaviour.
My problem are the negative and positive peak at the start and end of the output.
They do not seem to be caused by data that remained in the buffer.
The peaks happen when task.start() and task.close() is called respectively.
I have fiddled around the task.start() or auto_start=True as well as task.stop() or task.close() but had no success so far.
This seems to be a transient when the NI DAQ starts to talk to the analog output channel. It also occurs for output ao1.
There will be an amp and high voltage transformer behind the DAQ at some point and such a transient is potentially harmful for the entire system, hence the need to get rid of it.
Is there any way to solve this or is this DAQ-specific behaviour?
#Configuring the DAQ
self.writeTask.ao_channels.add_ao_voltage_chan("Dev1/ao0")
Best regards and thanks already for your help!
Thomas
02-15-2021 07:02 AM
Hello there,
Those peaks looks like charging and discharging the buffer, as you have written in your code and looks very normal process and I don't think it is a DAQ-specific behavior.
02-22-2021 01:49 AM
Hi Harvey,
thanks for your reply.
You got it right. Generation happens via analog out from the DAQ and acquisition is done with a Rohde&Schwarz RTB2000 oscilloscope.
I try to put a minimal working example together and send it to you for testing. Thanks for the offer!
Best regards
Thomas
02-26-2021 06:05 AM
okay 🙂