Algorithm:update[:Immediate] - VXI VT1422A User Manual

Remote channel multi-function dac module user’s and scpi programming manual
Table of Contents

Advertisement

ALGorithm

ALGorithm:UPDate[:IMMediate]

Comments
Command
Sequence
252 VT1422A Command Reference

ALGorithm:UPDate[:IMMediate]

algorithm code, ALG:STATE, or ALG:SCAN:RATIO changes that are pending.
Variables and algorithms can be accepted during Phase 1-INPUT or
Phase 2-UPDATE in Figure 7-1 when INIT is active. All writes to variables and
algorithms occur to their buffered elements upon receipt. However, these
changes do not take effect until the ALG:UPD:IMM command is processed at
the beginning of the UPDATE phase. The update command can be received at
any time prior to the UPDATE phase and will be the last command accepted.
Note that the ALG:UPD:WINDow command specifies the maximum number
of updates to do. If no update command is pending when entering the UPDATE
phase, then this time is dedicated to receiving more changes from the system.
As soon as the ALG:UPD:IMM command is received, no further changes are
accepted until all updates are complete. A query of an algorithm value following
an UPDate command will not be executed until the UPDate completes; this may
be a useful synchronizing method.
4
1
OUTPUT
INPUT
UPDATE
output table
from SCP
variables &
sent to SCP
channels,
algorothms
channels
analog &
digital
Set by ALG:OUTPUT:DELay (if any)
Trigger Event
Figure 7-1. Updating Variables and Algorithms
When Accepted: Before or after INIT.
Related Commands: ALG:UPDATE:WINDOW, ALG:SCALAR,
ALG:ARRAY, ALG:STATE and ALG:SCAN:RATIO, ALG:DEF
(with swapping enabled)
Send with VXIplug&play Function: hpe1422_cmd(...)
The following example shows three scalars being written with the associated update
command following. See ALG:UPD:WINDOW.
ALG:SCAL ALG1','Setpoint',25
ALG:SCAL 'ALG1','P_factor',1.3
ALG:SCAL 'ALG2','P_factor',1.7
ALG:UPD
ALG:SCAL? 'ALG2','Setpoint'
requests an immediate update of any scalar, array,
2
3
EXECUTE ALGS
execute all enabled algorithms
provide 3 new alg scalar values
update values in alg
query for new updated scalar
4
1
OUTPUT
INPUT
output table
from SCP
sent to SCP
channels,
channels
analog &
digital
Trigger Event
Chapter 7

Advertisement

Table of Contents
loading

Table of Contents