Page 1 of 1

VBS function with parameters from Instruments Panel

Posted: Thu 30. Mar 2017, 18:52
by hbeyer
Hello,

is it possible to call a function with values from e.g. the valueEdit panel?
We have a 2d matrix with 150 Elements and want to send a can message (ID: 0x501) with the value AND the position in the matrix (x,y).

It would also be okay when we can retrieve the caller / the button which wants to send the value. In that case we could encode the x,y-values in the name of the button / valueEdit panel.
Is it possible to obtain the caller-object when the sub is executed?

best regards,
H. Beyer

Re: VBS function with parameters from Instruments Panel

Posted: Mon 3. Apr 2017, 11:43
by PEAK-Support
The Panel Edit fields could "only" change Signals (real CAN Signal´s, or virtuell Signals).
You could use to change a state in your state machine loop of your main VB-Script to call functions, but could not call it directly from the Label/Set Button.