VXI VT1538A DJ Equipment User Manual


 
36 Agilent E1538A Enhanced Frequency/Totalize/PWM SCP
SOUR:RPULSE:POS:ANGL 140,(@146)
preset channel 46 pulse position
to 140 degrees
SOUR:RPULSE:POS:ANGL 260,(@147)
preset channel 47 pulse position
to 260 degrees
SOUR:RPULSE:VART TIME,(@145:147)
algorithm will control pulse
duration by TIME
Algorithm outputs pulses on all three channels with preset duration.
ALG:DEF ’ALG1’,’static float Width1, Width2, Width3;O145 = Width1; O146
= Width2; O147 = Width3;’
ALG:SCALAR’ALG1’,’Width1’,.005
preset ch 45 pulse width to 5ms
ALG:SCALAR’ALG1’,’Width2’,.010
preset ch 46 pulse width to 10ms
ALG:SCALAR’ALG1’,’Width3’,.015
preset ch 47 pulse width to 15ms
ALG:UPDATE
INIT
start algorithm execution
calculate NewWidth(n)
ALG:SCALAR 'ALG1','Width1',NewWidth1
later, adjust channel 45’s width
while algorithm is running
ALG:SCALAR 'ALG1','Width2',NewWidth2
later, adjust channel 46’s width
while algorithm is running
ALG:SCALAR 'ALG1','Width3',NewWidth3
later, adjust channel 47’s width
while algorithm is running
ALG:UPDATE
values in update queue sent to
variables
Figure 24. Fixed Position, Variable Width by Time