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.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog Output with 'HwDigital' trigger option under Matlab

I'm using a NI 6052E board and want to read (input) an analog signal and simultaneous output a signal (analog). I'm using Matlab's data aquisition toolbox and want to use the 'HwDigital' trigger option to trigger both channels. I connected my external TTL signal to the PF10 connector and tried first whether it would trigger my input channel alone. It does. 🙂
Then I tried to use the same signal (still connected to PF10) to trigger the output channel. It doesn't work. :(.
I would really appreciate any help.
Thanks
Maik
0 Kudos
Message 1 of 2
(2,551 Views)
Hello Maik,

Thank you for contacting National Instruments. It should be possible to trigger analog output with a digital signal. LabVIEW and LabWindows CVI both ship with examples on how to do this in their respective programming environments. It is also possible to use C functions to write a program to perform this task. However, the use of MATLAB code with National Instruments hardware is not supported.

The following links demonstrate how to perform this task in LabVIEW and in CVI.

LabVIEW:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DA4F56A4E034080020E74861&p_node=DZ52313&p_source=External

CVI:
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3EB9556A4E034080020E74861&p_node=DZ52315&p_source=E
xternal

Additionally, I have included a link to a tutorial dealing with generating analog output based on a digital trigger.

Waveform Generation with Digital Start Trigger:
http://zone.ni.com/devzone/devzoneweb.nsf/Opendoc?openagent&1953B48ABEE01AA4862567ED00517270

For information regarding the use Traditional NI-DAQ C functions to perform digital triggering of analog output, navigate to Start >> Program Files >> National Instruments >> NI-DAQ >> Traditional NI-DAQ Function Reference Help. Two of the functions included in this file are Configure_HW_Analog_Trigger() and Select_Signal(). These functions allow you to specify your trigger source for a particular device.

For additional support regarding the use of MATLAB code with National Instruments hardware, I suggest contacting Mathworks (the developers of MATLAB).

Let me know if you have any additional questions on this issue.

Regards,
Scott R.
Applications Engineer,
National Instruments
Scott Romine
Course Development Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,551 Views)