I am using an National Instruments Board which supports hardware triggering for Analog Output (eg. PCI-MIO-16E-4, PCI-MIO-16E-1, PCI-6110, PCI-6013 etc.). I want to implement hardware triggering on the Analog Output object created in MATLAB Data Acquisition Toolbox 2.11 (R2007b) using Traditional NI DAQ. However when I use the following code:
ao = analogoutput('nidaq',2);set(ao,'TriggerType','HWDigital');set(ao,'HWDigitalTriggerSource','PFI0');
I receive the following error:
Error using --> daqdevice.set at 259 Invalid property: 'HwDigitalTriggerSource'
When I run the GET function on the Analog Output object as follows:
get(ao)
I do not see the "HWDigitalTriggerSource" property.
>> get(ao) BufferingConfig = [64 2] BufferingMode = Auto Channel = [1x1 aochannel] ClockSource = Internal EventLog = [1x0 struct] InitialTriggerTime = [0 0 0 0 0 0] MaxSamplesQueued = 2.66063e+008 Name = nidaq2-AO RepeatOutput = 0 Running = Off RuntimeErrorFcn = @daqcallback SampleRate = 1000 SamplesAvailable = 0 SamplesOutput = 0 SamplesOutputFcn = [] SamplesOutputFcnCount = 1024 Sending = Off StartFcn = [] StopFcn = [] Tag = Timeout = 1 TimerFcn = [] TimerPeriod = 0.1 TriggerFcn = [] TriggersExecuted = 0 TriggerType = HwDigital Type = Analog Output UserData = [] NIDAQ specific properties: OutOfDataMode = Hold TransferMode = SingleDMA
Best Answer