winIDEA SDK
isys::CHILController Class Reference

Description

This class controls HIL (Hardware In the Loop).

Python example: test_hil_read_write.py

#include <CHILController.h>

Inheritance diagram for isys::CHILController:
isys::WrapperBase

Public Member Functions

 CHILController (std::shared_ptr< ConnectionMgr > connectionMgr)
 Instantiates object. More...
 
std::string read (const std::string &paths, DWORD bufferSize=4096, DWORD dwFlags=0, DWORD dwGenParam=0)
 Reads data from HIL. More...
 
void write (const std::string &values, DWORD dwFlags=0, DWORD dwGenParam=0)
 Writes data to HIL. More...
 
void getChannels (HILChannelVector &channels)
 

Constructor & Destructor Documentation

◆ CHILController()

isys::CHILController::CHILController ( std::shared_ptr< ConnectionMgr connectionMgr)

Instantiates object.

Parameters
connectionMgrclass which maintains connection to winIDEA. Connection must be established before this call. Python example: test_hil_read_write.py

Member Function Documentation

◆ getChannels()

void isys::CHILController::getChannels ( HILChannelVector channels)
Deprecated:
does not support new hardware, currently has no replacement

Returns list of channels in the HIL.

Parameters
channelsvector to receive result
See also
isys::CHILChannel

◆ read()

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:

  • Open "Plugins | Options" dialog, then move "HIL Monitor" from "Available" to "Loaded", click OK
  • Select "Plugins | HIL Monitor" to open the HIL Monitor window.
Parameters
pathspaths to parameters to read separated by '\n'. Example for iSYSTEM IO module:
              read("DIN.DIN0\\nDIN.DIN1");
              
bufferSizeallocated buffer to receive data. If it is to small, IllegalSizeException is thrown.
dwFlagsreserved, should be zero
dwGenParamreserved, should be zero
Returns
string of values for each path, separated by '\n'

Python example: test_hil_read_write.py

◆ write()

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:

  • Open "Plugins | Options" dialog, then move "HIL Monitor" from "Available" to "Loaded", click OK
  • Select "Plugins | HIL Monitor" to open the HIL Monitor window.
Parameters
valuesdata to be written to HIL module given as path: value pairs separated by '\n'. Example for iSYSTEM IO module:
              write("DOUT.DOUT0: LOW");
              
dwFlagsreserved, should be zero
dwGenParamreserved, should be zero

Python example: test_hil_read_write.py