quanser.hardware.hil.set_analog_output_ranges quanser.hardware.hil.set_clock_frequency navigation bar

Table of Contents

quanser.hardware.hil.set_card_specific_options

Sets options that are specific to this particular card.

Syntax

err = board.set_card_specific_options(options)
    

Description

Sets options for the card that are card-specific. The options string takes the form:

name=value,name=value,...

There should be no spaces between options. The value of an option may only contain spaces or non-alphanumeric characters if it is enclosed in double quotes, such as:

EncDir="Port1/Line5"

If no err output is provided then it throws an exception if an error occurs. In generated code it prints the error message. Use hil_get_error_message to get the message associated with an error code.

Parameters

board

The board instance returned by the quanser.hardware.hil.open function.

options

A list of options of the form: name=value,name=value,...

Select a board type from the list for board-specific details: .

Outputs

err

A negative error code or zero on success.

Examples

board.set_card_specific_options('EncDir="Port1/Line5"'); % Sets the encoder count direction pin to digital line 5 on port 1.
    

See Also

 

navigation bar