User`s guide

Vehicle Network Communication Examples
1-27
MuxSig is the multiplexor signal, whose value determines which of the two
multiplexed signals are active in the message. SigA and SigB are the multiplexed
signals that are active in the message if their multiplex values match MuxSig. In the
example shown, SigA is active because its current multiplex value of 0 matches the
value of MuxSig (which is 0).
4
If you want to make SigB active, change the value of the MuxSig to 1:
m.Signals.MuxSig = 1
To display the signals, type:
m.Signals
ans =
SigB: 0
SigA: 0
MuxSig: 1
SigB is now active because its multiplex value of 1 matches the current value of
MuxSig (which is 1).
5
Change the value of MuxSig to 2:
m.Signals.MuxSig = 2
Here, neither of the multiplexed signals are active because the current value of
MuxSig does not match the multiplex value of either SigA or SigB.
m.Signals
ans =
SigB: 0
SigA: 0
MuxSig: 2
Always check the value of the multiplexor signal before using a multiplexed signal
value.
if (m.Signals.MuxSig == 0)
% Feel free to use the value of SigA however is required.
end