Discussion:
fastest way to transition from a complex script to a known constant voltage level
(too old to reply)
tomkor
2008-08-14 21:10:11 UTC
Permalink
What is the fastest way to transition from a complex script already using markers and triggers to a known constant voltage level on the 5421 using c functions?
Is it to load a second script in advance with a single voltage level and activate it using the following 3 steps?
    -niFgen_AbortGeneration
    -Set NIFGEN_ATTR_SCRIPT_TO_GENERATE attribute to the single voltage script
    -niFgen_InitiateGeneration

How long should these 3 steps take? Is there a faster way?
G Lo
2008-08-15 21:10:10 UTC
Permalink
tomkor, I believe that the fastest approach involves embedding the DC Generation script into the script that you have at the moment.  You could allow this part of the script (DC Generation) to start at a specified script trigger and generate a pre-made DC waveform forever.  The script that exhibits this behavior is as follows:   Wait until scriptTrigger0
  Generate DCwfm    Repeat Forever Could you attach the script that you have at the moment to clarify the issue further?   
G Lo
2008-08-15 23:10:08 UTC
Permalink
tomkor,  I made a mistake in my last post concerning the repeat forever in the script. The script should look as follows:  wait until scriptTrigger0 repeat forever generate waveform end repeat  Hope this helps.
psisterhen
2008-08-15 23:10:09 UTC
Permalink
At the end of a script, the generator should maintain the DC level of the last sample of the last waveform it was generating.  So you don't even need to loop forever on the DC waveform.
Loading...