Show Menu
Cheatography

HILConfig Cheat Sheet (DRAFT) by

The HILConfig module is used to access Config.dll to load the HIL configuration into python

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Class{­Pow­erT­rai­nSe­tup­:Me­thods}

LoadDL­L(path)
Load DLL at path
UnLoad­DLL()
Unload DLL
Init()
Initialize DLL
CleanUp()
Cleanup DLL
GetCon­fig­ura­tio­n(P­owe­rTr­ain­Setup)
Get config­uration for system target
GetTar­get­Con­fig­ura­tio­n(T­arg­etName)
ret target config­uration as 2D array
GetAll­Par­ams()
ret all paramters as 1D array
GetAll­Pro­ces­ses()
ret all processes as 1D array
GetAll­Targets
ret all targets as 1D array
GetAll­Nodes
ret all nodes as 1D array
GetPar­amA­ttr­ibu­te(­Par­ame­ter­_ID­OrA­lias, Attribute)
ret parameter attribute
GetPro­ces­sAt­tri­but­e(P­roc­ess_ID, Attribute)
ret process attribute
GetNod­eCo­nfi­g_A­rra­y(Node)
ret node config­ura­tionan as 2D array
GetNod­eCo­nfi­g_F­lat­ten­edS­tri­ng(­Node)
ret node config­uration as a (LabVI­EW)­fla­ttened string
GetAss­oci­ati­onT­able()
ret assciation table as 2D array
Three methods must be called before calling any other methods of the class.They are 'LoadDll()', 'Init()' and 'GetCon­fig­ura­tion()'. Make sure to clean and unload the DLL at the end with 'CleanUp()' and 'UnLoad­DLL()' methods respec­tively.
 

Config­uration array to database

config­_to­_db­(array)
ret databa­se(json object) of the 2D array