Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the maximum value for "wait" in the FGEN script?

In the script editor for FGEN, you can specify a 'wait' in 'samples' to pause the generation.  If you use a finite (not HW Trigger), how long can you wait?  Is the wait # limited to a U32?  If so (and assuming you were running at 20MHz), you could wait 2^32/20M=214s.  Correct?

Joji
0 Kudos
Message 1 of 2
(5,865 Views)

The wait is limited to a U32, but the limit is in bytes rather than samples.  So the actual equation for the maximum wait time is (2^31 -1)/Sample Rate, or about 107s for your example (FGEN devices use 2 bytes per sample).  However, that's just the limit for one wait; you can create a script with multiple wait statements if you need a longer wait time, like this:

 

script waitScript

   wait 2000000 

   wait 2000000

   wait 2000000 

   <etc.>

end script 

 

Drew Creel

Software Group Manger

NI Signal Generators 

 

Drew Creel
NI Software Group Manager
RF and Signal Generators
0 Kudos
Message 2 of 2
(5,859 Views)