:html
<<
128.181
Multiplexer MUX64-Object|MUX64
--
The IP-object MUX64 controls the 64 bit multiplexers of the universal measurement system. For the 64 bits two successive addresses for the MUX card are used. It is also possible to use the new MUX64 multiplexer over the MUX object. The system recognize the correct type of the MUX card. 
>>
<<
128.181.2
Procedures of the MUX64-Object|Procedures
--
>>
<<
128.181.2.1
MUX64.Bits|Bits
--
<!DEF>
procedure <!TW>MUX64.Bits (aMUXAdr : address: rOperation, rSendIt : real);
<!TXT>
The bits indicated in the address <!PW>aMUXAdr (an address on a MUX64-card) are combined, as specified in the rOperation, with the current state of the bits of the card.

If <!PW>rSendIt = <!RW>Send, then the data is sent to the card, otherwise it is stored internally.

 <!PW>rOperation can be : <!RW>CLR | <!RW>SET | <!RW>FLIP | <!RW>NOP or 0..3

 <!PW>rSendIt can be    : <!RW>STORE | <!RW>SEND        or 0..1
>>
<<
128.181.2.2
MUX64.Word|Word
--
<!DEF>
procedure <!TW>MUX64.Word (aMUXAdr : address; rSendIt : real);
<!TXT>
The bits indicated in the address <!PW>aMUXAdr (an address on a MUX64-card) are used as the new state of the card.

If <!PW>rSendIt = <!RW>Send, then the data is sent to the card, otherwise it is stored internally.

 <!PW>rSendIt can be    : <!RW>STORE | <!RW>SEND        or 0..1
>>
<<
128.181.2.3
MUX64.BitsEx|BitsEx
--
<!DEF>
procedure <!TW>MUX64.BitsEx (rGroup : real; sCommand : string);
<!TXT>
Macrocommand : Sets/clears bits on the MUX64-card and waits

 <!PW>rGroup selects an actions group (0..9)
 <!PW>sCommand has the following form:

<!CODE>
<!SW>Address,<!SW>Action[,<!SW>Action...][;<!SW>Address,<!SW>Action[,<!SW>Action...]...]
<!TXT>

 <!SW>Address is an address constant from the address file and must belong to a MUX64-card. Several address constants can be connected with +, if they belong to the same card.

 <!SW>Action has the following format (n is always the group number 0..9 or 'x') :
<!STBL>
<!>nS<!>Sets the bits<!>
<!>nR<!>Clears the bits<!>
<!>nDz<!>Delay of z milliseconds<!>
<!ETBL>

 <!SW>n indicates the group. Only those actions are executed whose group has been selected via the <!PW>rGroup parameter. 'x' will match any <!PW>rGroup!

<ul indent=12>
<li>if no action is activated via rGroup, nothing happens</li>
<li>if no actions are specified, nothing happens</li>
<li>if sCommand is empty, nothing happens</li>
<li>several address constants and actions can be specified in <!PW>sCommand (separated by ';' ); they will be processed consecutively.</li>
</ul>

Example
<!CODE>
MUX64.BitsEx (1, 'MSpg_34_R,1r,9s,1d100,9d50');

The '1' activates Group 1.
The individual parts of sCommand:
'MSpg_34_R' is the address of the processed bits
'1r' if group 1 active, then reset bits 
'9s' if group 9 active, then set bits 
'1d100' if group 1 active, then 100 ms break
'9d50' if group 9 active, then 50 ms break

Since group 1 is active, MSpg_34_R is reset and an idle time of 100 ms is waited!
<!TXT>
>>
<<
128.181.2.4
MUX64.Send|Send
---
<!DEF>
procedure <!TW>MUX64.Send (aXMuxCard : address);
<!TXT>
Sends any internally stored data from card <!PW>aXMuxCard.
>>
