Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Immediately trigger to next waveform on 5673 even when in the middle of generating a waveform

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?

CTA, CLA, MTFBWY
0 Kudos
Message 1 of 6
(6,475 Views)

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.

Message 2 of 6
(6,461 Views)

They haven't kicked you off the second floor yet Paul?

 

😉

CTA, CLA, MTFBWY
Message 3 of 6
(6,453 Views)

They moved me to the basement now... but I got to keep my stapler. Smiley Very Happy

 

Regards,

Paul C.

Message 4 of 6
(6,449 Views)

Well, tell them to add 'break' to the documentation so I don't have to look like an incompentent customer on the forums Robot Mad

CTA, CLA, MTFBWY
0 Kudos
Message 5 of 6
(6,445 Views)

Its buried in the Script Editor Help, but not in the RF Signal Generator Help for those looking.

CTA, CLA, MTFBWY
Message 6 of 6
(6,443 Views)