Repeat outputs with analogoutput without requiering to use putdata repetadly
Mostrar comentarios más antiguos
Hi all!
I've got my analogoutput channel working as I want. When it receives a digital trigger on line PFI1 it starts the function that I loaded.
ao_Ref = analogoutput('nidaq','Dev1');
addchannel(ao_Ref, [1]);
set(ao_Ref,'TriggerType','HwDigital')
set(ao_Ref,'HwDigitalTriggerSource','PFI1');
putdata(ao_Ref, xt);
start(ao_Ref)
However once its started (and finished) the "buffer" on the nidaq card is empty. Triggering again doesn't do anything. Currently, I need to reload the data on the card by repeating the whole code.
Surely there is a much more efficient way to make it output the same data every time the trigger is activated.
Thanks,
Michael
Respuesta aceptada
Más respuestas (2)
Manisha
el 26 de Sept. de 2011
0 votos
signal
el 9 de Nov. de 2011
0 votos
set(ao_Ref,'RepeatOutput',num)
where num is an integer or inf for continuous output.
Categorías
Más información sobre Call Web Services from MATLAB Using HTTP en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!