Mux Entity

group MuxEntity

A MUX is a multiplexer that takes one or more similar inputs (bus, connection, or signal) and allows switching to one or more outputs. An analogy would be the switchboard of a telephone operator. Calls (inputs) come in and by re-connecting the input to an output, the operator (multiplexer) can direct that input to on or more outputs.

One possible output is to not connect the input to anything which essentially disables that input’s connection to anything.

Not every MUX has multiple inputs. Some may simply be a single input that can be enabled (connected to a single output) or disabled (not connected to anything).

void mux_getEnable(unsigned int *id, struct Result *result)

Get the mux enable/disable status

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR and the enable status or a non zero Error code.

void mux_setEnable(unsigned int *id, struct Result *result, int enable)

Enable the mux.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR or a non zero Error code.

  • enable: The state to be applied to the mux. 0 = disable; 1 = enable.

void mux_getChannel(unsigned int *id, struct Result *result)

Get the current selected mux channel.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR and the current channel or a non zero Error code.

void mux_setChannel(unsigned int *id, struct Result *result, int channel)

Set the current mux channel.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR or a non zero Error code.

  • channel: The channel to be set.

void mux_getChannelVoltage(unsigned int *id, struct Result *result, int channel)

Get the voltage of the indicated mux channel.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR and the requested channels voltage or a non zero Error code.

  • channel: The channel to be set.

void mux_getConfiguration(unsigned int *id, struct Result *result)

Get the configuration of the mux.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR and mux’s current configuration or a non zero Error code.

void mux_setConfiguration(unsigned int *id, struct Result *result, int config)

Set the configuration of the mux.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR or a non zero Error code.

  • config: Configuration to be applied to the mux entity.

void mux_getSplitMode(unsigned int *id, struct Result *result)

Get the current split mode mux configuration.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR and mux’s current split mode configuration or a non zero Error code.

void mux_setSplitMode(unsigned int *id, struct Result *result, int splitMode)

Sets the mux’s split mode configuration.

Parameters
  • id: The id assigned by the create stem vi.

  • result: object, containing NO_ERROR or a non zero Error code.

  • splitMode: Split mode configuration to be set.