NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Active Participant
snowpunter
Posts: 272
0 Kudos

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

[ Edited ]

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, CLD, MTFBWY
Active Participant
Paul_C.
Posts: 441

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

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.

Applications Engineer
National Instruments
Active Participant
snowpunter
Posts: 272

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

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

 

:smileywink:

CTA, CLD, MTFBWY
Active Participant
Paul_C.
Posts: 441

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

They moved me to the basement now... but I got to keep my stapler. :smileyvery-happy:

 

Regards,

Paul C.

Applications Engineer
National Instruments
Active Participant
snowpunter
Posts: 272
0 Kudos

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

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

CTA, CLD, MTFBWY
Active Participant
snowpunter
Posts: 272

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

[ Edited ]

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

CTA, CLD, MTFBWY
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page