Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set marker offset property in script mode

Solved!
Go to solution

I have to generate a sine wave and populate a trigger at specific samples alongside.

I think I have to use Script Mode because I couldn't define more that one offset for the Marker in Arbitrary Wave Mode.

 

Using:

script myScript0
    wait until scriptTrigger0
    repeat 4
         Generate wfmSine marker0(0,24,48,76)
    end repeat
end script

 

 

I get the expected result in screenshot. Since replacing strings in the script in order to vary the marker's positions is silly I'm curious if there is a property I could set "programmatically".

 

Can I write: Generate wfmSine marker0(X,Y,Z,A) , with some X,Y,Z,A as globals? Where is even the documentation for FGen script?

 

marker0.PNG

 

 

0 Kudos
Message 1 of 3
(1,924 Views)
Solution
Accepted by topic author Quiztus2

There is no way to do that in Scripting mode. You will need to perform the string substitutions.

Marcos Kirsch
Chief Software Engineer
NI Driver Software
0 Kudos
Message 2 of 3
(1,904 Views)

Thanks for fast reply.

 

  1. An array input for Marker offset in awg mode would be nice anyways.
  2. A documentation entry about marker0... possible parameters is necessary. Afaik there is nowhere mentioned that one can feed multiple offsets into marker0
0 Kudos
Message 3 of 3
(1,892 Views)