11-01-2010 06:42 PM - edited 11-01-2010 06:42 PM
I'm using the following script with a 5673:
script finiteGeneration
repeat forever
repeat until scriptTrigger0
generate noise
end repeat
clear scriptTrigger0
generate waveform
end repeat
end script
My intent is generate a noise waveform until a trigger arrives on the PXI backplane, immediately switch to waveform and then generate noise until the next trigger. I recall using a property node with the underlying FGEN driver that would enable moving to the next waveform immediately when the trigger was received, instead of waiting until the current waveform has finished generating and then moving to the next waveform.
The FGEN help didn't appear to note that any of the four triggering options have this feature enabled... was this something that was disabled in a later release of the driver?
11-02-2010 10:51 AM
Hello Snowpunter,
The following changes to your script should do the trick.
script finiteGeneration
repeat forever
break on scriptTrigger0
repeat
forever
generate noise
end repeat
end break
clear
scriptTrigger0
generate waveform
end repeat
end script
The break should exit out of everything immediately. I haven't set this up yet to double check, so let me know if it doesn't work and I will try it out on my end.
Hope this helps,
Paul C.
11-02-2010 03:47 PM
They haven't kicked you off the second floor yet Paul?
😉
11-02-2010 03:55 PM
They moved me to the basement now... but I got to keep my stapler.
Regards,
Paul C.
11-02-2010 04:29 PM
Well, tell them to add 'break' to the documentation so I don't have to look like an incompentent customer on the forums
11-02-2010 04:45 PM - edited 11-02-2010 04:54 PM
Its buried in the Script Editor Help, but not in the RF Signal Generator Help for those looking.