This class controls HIL (Hardware In the Loop). More...
#include <CHILController.h>
Public Member Functions | |
| CHILController (std::shared_ptr< ConnectionMgr > connectionMgr) | |
| Instantiates object. | |
| void | getChannels (HILChannelVector &channels) |
| std::string | read (const std::string &paths, DWORD bufferSize=4096, DWORD dwFlags=0, DWORD dwGenParam=0) |
| Reads data from HIL. | |
| void | write (const std::string &values, DWORD dwFlags=0, DWORD dwGenParam=0) |
| Writes data to HIL. | |
This class controls HIL (Hardware In the Loop).
Python example: test_hil_read_write.py
| isys::CHILController::CHILController | ( | std::shared_ptr< ConnectionMgr > | connectionMgr | ) |
Instantiates object.
| connectionMgr | class which maintains connection to winIDEA. Connection must be established before this call. Python example: test_hil_read_write.py |
| void isys::CHILController::getChannels | ( | HILChannelVector & | channels | ) |
Returns list of channels in the HIL.
| channels | vector to receive result |
| std::string isys::CHILController::read | ( | const std::string & | paths, |
| DWORD | bufferSize = 4096, | ||
| DWORD | dwFlags = 0, | ||
| DWORD | dwGenParam = 0 ) |
Reads data from HIL.
Consult your hardware manual for available parameters. For iSYSTEM's I/O module on IC5000 you get the list of available paths to parameters with HIL monitor in winIDEA:
| paths | paths to parameters to read separated by '\n'. Example for iSYSTEM IO module:
read("DIN.DIN0\\nDIN.DIN1");
|
| bufferSize | allocated buffer to receive data. If it is to small, IllegalSizeException is thrown. |
| dwFlags | reserved, should be zero |
| dwGenParam | reserved, should be zero |
Python example: test_hil_read_write.py
| void isys::CHILController::write | ( | const std::string & | values, |
| DWORD | dwFlags = 0, | ||
| DWORD | dwGenParam = 0 ) |
Writes data to HIL.
Consult your hardware manual for available parameters. For iSYSTEM's I/O module on IC5000 you get the list of available paths to parameters with HIL monitor in winIDEA:
| values | data to be written to HIL module given as path: value pairs separated by '\n'. Example for iSYSTEM IO module:
write("DOUT.DOUT0: LOW");
|
| dwFlags | reserved, should be zero |
| dwGenParam | reserved, should be zero |
Python example: test_hil_read_write.py