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