01-03-2022 11:42 AM
Hello,
I have the USB-6341 board and NI-DAQmx driver.
I hope someone can give me an example about what I am trying to do using C#.
I want to increase one of the analog output from -10V up to +10V in such a way that each time the board receives external trigger it will increase the analog voltage 100mV. And after M times(when the output voltage becomes 10V) analog output again should go back to -10V. I would be very glad.
Can someone show me an implementation of this?
Kind regards
01-03-2022 11:46 AM
I can give you an idea instead of implementation.
01-03-2022 11:53 AM
Thank you for the procedure. I guess you use LabView. Maybe someone else show how to implement it in C# syntax. Thanks
01-11-2022
07:00 PM
- last edited on
03-20-2025
11:07 AM
by
Content Cleaner
Hello again,
Can this be done with USB-6003 as well
01-11-2022 08:05 PM
Unfortunately, you CANNOT use an external signal as a timebase/sample clock for USB-6003
01-12-2022 04:56 AM - edited 01-12-2022 04:57 AM
Thank you. I will go for 6341 then. You described a procedure for the original question and I need to increase one of the analog output in staircase way where for each external trigger rising edge from an external clock source(20kHz) cause analog output to increase 20mV.
So I saw two examples in under NI-DAQ\Examples\DotNET4.5\Analog Out\
One of them is: ContGenVoltageWfm_ExtClk
The other one: ContGenVoltageWfm_ExtClkDigStart
Which one should I use do you think? And those examples using sine wave as output. In my case I need DC analog output at each step.
Do you have any idea about it?
01-12-2022 10:46 AM
ContGenVoltageWfm_ExtClk would be the right example and replace the sine wave array with your ramp waveform array.
Wire your external trigger/clock to one of the PFI ports and select that PFI port as the Clock source in the UI/program.