FNet AIN configuration. More...
#include <CFNetCtrl.h>
Public Member Functions | |
| SPOptionController | add () |
| Adds an element to the array and returns COptionController for it. | |
| SPOptionController | at (size_t nIndex) |
| Return COptionController for element at nIndex. | |
| void | clear () |
| Removes all elements. | |
| SPOptionController | find (const std::string &rstrOption, const std::string &rstrValue, bool bAllowEmptyForSingleElement=false) |
| Returns COptionController for the element whose rstrOption has value rstrValue. | |
| std::string | get (const std::string &rstrOption) |
| Returns string value of rstrOption. | |
| bool | get_bool (const std::string &rstrOption) |
| Gets bool value of rstrOption. | |
| std::string | get_channel_name (const uint8_t nChannel) |
| Get channel name. | |
| int64_t | get_int (const std::string &rstrOption) |
| Gets integer value of rstrOption. | |
| uint64_t | get_uint (const std::string &rstrOption) |
| Gets unsigned integer value of rstrOption. | |
| int | index_of (const std::string &rstrOption, const std::string &rstrValue) |
| Returns index of element whose element rstrOption has value rstrValue, or -1 if element is not found. | |
| SPOptionController | opt (const std::string &rstrOption) |
| Returns COptionController based on rstrOption (appended to the base URL). | |
| void | power_measurement_disable () |
| Disable power measurement option. | |
| void | power_measurement_enable (const double dShunt) |
| Enable power measurement option and set resistance value (Ohm). | |
| void | remove (size_t nIndex) |
| Removes element at nIndex. | |
| void | set (const std::string &rstrOption, const std::string &rstrValue) |
| Sets rstrValue to rstrOption (appended to the base URL). | |
| void | set_averager (uint8_t nNumSample) |
| Configure a number of average samples. | |
| void | set_bool (const std::string &rstrOption, bool bValue) |
| Sets bValue to rstrOption. | |
| void | set_channel (const uint8_t nChannel, const std::string &strName, const bool bShow, const double dMultiply) |
| Configure a channel in one call. | |
| void | set_int (const std::string &rstrOption, int64_t iValue) |
| Sets iValue to rstrOption. | |
| void | set_multi (const iconnect::StrStrMap &inParams) |
| Sets multiple option values with one call. | |
| void | set_uint (const std::string &rstrOption, uint64_t nValue) |
| Sets nValue to rstrOption. | |
| size_t | size () |
| Returns array size of this instance. | |
| std::string | URL () |
| Returns full option URL of this instance. | |
Protected Member Functions | |
| std::string | get_option_URL (std::string strBase, std::string_view strvOption) const |
| Possible parameters if we want the return string to be for example "/IDE/Info.VerMajor". | |
| std::string | get_option_URL (std::string_view strvOption) const |
| See COptionController::get_option_URL(std::string, std::string_view) const examples for getting the right URL. | |
Static Protected Member Functions | |
| static std::string | format_index (size_t nIndex) |
| returns "[<index dec>]" | |
FNet AIN configuration.
|
inherited |
Adds an element to the array and returns COptionController for it.
| TException | if this is not an array, or the array size is static |
Python example: test_add_remove.py
|
inherited |
Return COptionController for element at nIndex.
| nIndex | element index |
Python example: test_at.py
|
inherited |
Removes all elements.
| TException | if this is not an array, the array size is static |
Python example: test_add_remove.py
|
inherited |
Returns COptionController for the element whose rstrOption has value rstrValue.
| rstrOption | option string which is appended to the base URL |
| rstrValue | option value |
| bAllowEmptyForSingleElement | if a single element is present, allow access with empty rstrValue |
| TException | if this is not an array, rstrOption is not a valid option, or the element is not found |
Python example: test_find.py
|
inherited |
Returns string value of rstrOption.
| rstrOption | option string which is appended to the base URL |
| TException | if rstrOption is invalid |
Python example: test_get_set.py
|
inherited |
Gets bool value of rstrOption.
| rstrOption | option string which is appended to the base URL |
| TException | if rstrOption is invalid, or type is not bool |
Python example: test_get_set_bool.py
| std::string isys::COptionFNetAINCfg::get_channel_name | ( | const uint8_t | nChannel | ) |
Get channel name.
| nChannel | channel index |
|
inherited |
Gets integer value of rstrOption.
| rstrOption | option string which is appended to the base URL |
| TException | if rstrOption is invalid, or type is not integer |
Python example: test_get_set_int_uint.py
|
protectedinherited |
Possible parameters if we want the return string to be for example "/IDE/Info.VerMajor".
|
inherited |
Gets unsigned integer value of rstrOption.
| rstrOption | option string which is appended to the base URL |
| TException | if rstrOption is invalid, or type is not a positive integer |
Python example: test_get_set_int_uint.py
|
inherited |
Returns index of element whose element rstrOption has value rstrValue, or -1 if element is not found.
| rstrOption | option string which is appended to the base URL |
| rstrValue | option value |
| TException | if this is not an array, or rstrOption is not an element name |
Python example: test_index_of.py
|
inherited |
Returns COptionController based on rstrOption (appended to the base URL).
| rstrOption | option string which is appended to the base URL |
Python example: test_opt.py
| void isys::COptionFNetAINCfg::power_measurement_enable | ( | const double | dShunt | ) |
Enable power measurement option and set resistance value (Ohm).
| dShunt | sets resistance value |
|
inherited |
Removes element at nIndex.
| nIndex | element index |
| TException | if this is not an array, the array size is static, or nIndex is out of array range |
Python example: test_add_remove.py
|
inherited |
Sets rstrValue to rstrOption (appended to the base URL).
| rstrOption | option string which is appended to the base URL |
| rstrValue | string value |
| TException | if rstrOption is invalid |
Python example: test_get_set.py
| void isys::COptionFNetAINCfg::set_averager | ( | uint8_t | nNumSample | ) |
Configure a number of average samples.
If different than any of the values in SFNetAINInfo::m_vnAverageSamples then it will be set to the next bigger value.
| nNumSample | value to set number of samples to. Value 0 will disable the averager |
|
inherited |
Sets bValue to rstrOption.
| rstrOption | option string which is appended to the base URL |
| bValue | bool value |
| TException | if rstrOption is invalid |
Python example: test_get_set_bool.py
| void isys::COptionFNetAINCfg::set_channel | ( | const uint8_t | nChannel, |
| const std::string & | strName, | ||
| const bool | bShow, | ||
| const double | dMultiply ) |
Configure a channel in one call.
| nChannel | channel to configure |
| strName | name for the channel |
| bShow | show it int the HIL monitor and Analyzer |
| dMultiply | multiply measured value with this factor |
|
inherited |
Sets iValue to rstrOption.
| rstrOption | option string which is appended to the base URL |
| iValue | int64_t value |
| TException | if rstrOption is invalid |
Python example: test_get_set_int_uint.py
|
inherited |
Sets multiple option values with one call.
| inParams | map of string option value pairs |
Note: Python and Java support Python mapping and Java Map as input type in addition to isystem.connect.StrStrMap. Examples:
Python: optCtrlApp0.set_multi({"Name": "MyApp", "SymbolFiles.DefaultFile": "0"});
Java: optCtrlApp0.set_multi(Map.of("Name", "MyApp", "SymbolFiles.DefaultFile", "0"));
Python example: test_set_multi.py
|
inherited |
Sets nValue to rstrOption.
| rstrOption | option string which is appended to the base URL |
| nValue | uint64_t value |
| TException | if rstrOption is invalid |
Python example: test_get_set_int_uint.py
|
inherited |
Returns array size of this instance.
| TException | if this is not an array |
Python example: test_size.py
|
inherited |