Help with addTriggerConnection error?
3 views (last 30 days)
I have a NI usb daq
I want to plot data from channel 0 continuously, triggered my itself. when i try to use the trigger setup as described in many online documents i've found i get an error that that property does not exist
The last line does not work, and i dont quite understand how to set it up to do what i want.
I'm using R2011b and the error is: no appropriate method, property, or field addtriggerconection for class ni.daq.session.
Manisha on 5 Sep 2012
What version of MATLAB are you using? And what is the exact error that you get?
If you want to manually trigger your acquisition using a software command, you do not need to add a trigger connection. You can simply call
to get your data. The command that you mentioned
will add an start trigger with source as 'external' and destination as 'Dev1/PFI1'. Meaning that when you start your acquisition, the hardware will wait for a rising edge signal at PFI1 terminal on Dev1 before collecting any data.
Hope this helps,
More Answers (1)
Walter Roberson on 6 Sep 2012
addTriggerConnection is new in R2012a.
(You accidentally said you have R2001b, so we are not sure what you have, but if the "b" part is accurate then you must be before R2012a as R2012b is not quite released yet.)