Table of Contents
quanser.hardware.hil.set_card_specific_options
Sets options that are specific to this particular card.
err = board.set_card_specific_options(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 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: .
err
A negative error code or zero on success.
board.set_card_specific_options('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.