Tuesday, November 4, 2025

QT GUI Push Button, QT GUI Toggle Switch, QT GUI LED Indicator, Logical

Hello,

there is a problem with the initialisation of

<QT GUI Toggle Switch>.

In the meantime, I find out self what happens.

The problem is the <QT GUI Toggle Switch>.

The <QT GUI Toggle Switch> is NOT properly initialised

on startup, so it gives an error message

if you reference it in another block for example in

a Boolean expression like x = a | b.

The initialisation of <QT GUI Toggle Switch>

is only done if you activate it the first time.

The you can reference it without problems.

The workaround is, an intermediate variable

between the button and the LED.

See flowgraph.

I think, this must be fix in the future...

(The same problem is also on <QT GUI Check Box>)

 

No comments:

Post a Comment