Table of Contents
hil_set_card_specific_options
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.
err = hil_set_card_specific_options(board, options)
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.
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: .
err
A negative error code or zero on success.
hil_set_card_specific_options(board, 'EncDir="Port1/Line5"'); % Sets the encoder count direction pin to digital line 5 on port 1.
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.