Hello,
I’d like to change the side touch height dynamically in my method. Is there a library to do that?
Thanks,
Bradley
Hello,
I’d like to change the side touch height dynamically in my method. Is there a library to do that?
Thanks,
Bradley
To do this, you have to use the COM object of HxLabwr2.Container and HXCFGFILLib.HxCfgFile in hsl. But change of files may not affect deck layout, you may have to reload the rack.
Thank you! I will play with it.
you can put following hsl code in your method/hsl to change the touch side height of container file.
object cfg;
cfg.CreateObject("HXCFGFILLib.HxCfgFile");
cfg.LoadFile("C:\\Program Files (x86)\\HAMILTON\\LabWare\\Test\\Cup.ctr");
cfg.PutDoubleValueInDataDef("CONTAINER",3,"default","TchHt",25); //25 for touch side height
//cfg.SerializeFile("C:\\Program Files (x86)\\HAMILTON\\LabWare\\Test\\Cup.ctr",1); //to binary file
cfg.StoreFile("C:\\Program Files (x86)\\HAMILTON\\LabWare\\Test\\Cup.ctr",1); //to text file
cfg.ReleaseObject();
This worked. You are a genius!