XY Value

Richard1996 8 years ago in JS modules updated by Dmitry - support (expert) 8 years ago 12


I got a question is it possible to send a Xvalue or a Yvalue to a driver?

I need this for a colorpicker.

the xyvalue is between 0,10 and 1,0

Is it possible to write a script for that and send it to a driver/

Kind regards,


Waiting for user's reply


Yes, you can send this values to a driver. For example:



var x = IR.GetItem("Page 1").GetItem("Item 1").ValueX;
var y = IR.GetItem("Page 1").GetItem("Item 1").ValueY;
IR.GetDevice("Modbus TCP").Set("Channel 1", x);
IR.GetDevice("Modbus TCP").Set("Channel 1", y);


Also you can read about a work with Color Picker on our wikipedia

Thank you, That helped me out.

What kind of command should there be in Channel 1?

I am using a Helvar TCP driver, for further information.

Waiting for user's reply

In my example Channel 1 - is a name of command from PROJECT DEVICE PANEL.

Ie you must use yours command name.

I understand but there are options in that channel.

If I understood you correctly, you ask the channel settings?

How to work with the driver Helvar you can read here

To find the address of the device you can in Helvar Designer.

For example:

For "Thyristor Dimmer 455" we see this address "@"

In iRidium this will be