hil_set_pwm_mode End of trail navigation bar

Table of Contents

hil_set_card_specific_options

Deprecated

The HIL API MATLAB functions have been deprecated in favour of the new quanser.hardware.hil class, which has support for code generation for Quanser targets. Hence, with the new hil class it is possible to run MATLAB scripts in real-time on Quanser targets, while making use of the Quanser hardware.

Sets options that are specific to this particular card.

Syntax

err = hil_set_card_specific_options(board, 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 handle returned by hil_open.

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

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

See Also

 

navigation bar