expressions on virtual channel

Recommended Posts

For an exercise, I made the following exression concerning three virtual channels;

V.DataBoxV03 = V.DataBoxV01[0] + V.DataBoxV02[0]

It worked well when the expression was put on a local channel, whereas it did not work on a virtual channel.

This leads me to infer that expressions work only on local channels.

Is it right?

Link to comment
Share on other sites

The box labelled "Expression" in the V Channel is an expression, not script. An expression is a formula that results in a value. Anything with = in it is a statement (assignment in this case). AddValue() is also a statement because it doesn't return anything.

If you want V.DataBoxV03 to equal the sum of the other two, just put:

V.DataBoxV01[0] + V.DataBoxV02[0]

in the expression. Or drop the [0] and get the whole history.

I thought you put those statements in a sequence.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.