Search found 180 matches

Search

by adaneau
Thu Jul 18, 2019 3:13 pm
Forum: Bugs / Problems
Topic: Settings for the Modbus driver
Replies: 3
Views: 393

Re: Settings for the Modbus driver

Hi,

Yes you can use different settings for different instances of the driver, I am myself using it for endianity.

Correct syntax is :

[mod_xx] where xx is the driver number. So for you [mod_1] and [mod_2]

BTW this is valid as well for any manager ;).

Br
Alexandre Daneau
by adaneau
Thu Jul 18, 2019 2:35 pm
Forum: HowTos
Topic: Stop a thread in CTRL
Replies: 6
Views: 544

Re: Stop a thread in CTRL

Hi, I pushed the test further, putting function in a ctl lib and having #uses "myLib" in my scope lib. Still working like a charm. Are you sure that your thread still runs when you try to stop it? If you run subthreads I would highly recommend you to be clean and have consequent amount of waitThread...
by adaneau
Thu Jul 18, 2019 1:50 pm
Forum: HowTos
Topic: Stop a thread in CTRL
Replies: 6
Views: 544

Re: Stop a thread in CTRL

Hi, Strange, which version are you using? I tried it with 3,16 P012. Find below my code: ─// [(Panel)] [0] - [ScopeLib] bool simuEnCours=false; int id; void simulateC200() { while(1) { DebugN("hello world"); delay(1); } } ══════════════════════════════════════════════════════════════════════════════...
by adaneau
Thu Jul 18, 2019 12:27 pm
Forum: HowTos
Topic: Stop a thread in CTRL
Replies: 6
Views: 544

Re: Stop a thread in CTRL

Hi,

You should put
bool simuEnCours=false;
int id;

inside scope lib, otherwise this will not be shared to the next click of your button as it is redeclared at each click.

I tried it and it works great ;)

BR
Alexandre Daneau
by adaneau
Thu Jul 18, 2019 12:03 pm
Forum: Bugs / Problems
Topic: Warning message while deactivate _alert_hdl
Replies: 2
Views: 314

Re: Warning message while deactivate _alert_hdl

Hi,

I have seen this message when alarm isnt properly configured (ex. not good intervals, not existing class, wrong sum alarm config,...)

You should have a look into those and ensure that they are correct.

BR
Alexandre Daneau
by adaneau
Thu Jul 18, 2019 12:01 pm
Forum: HowTos
Topic: DP functions
Replies: 4
Views: 1683

Re: DP functions

Hi,
I dont think it is possible, library are loaded at startup... Only gedi is having such an option.

BR
Alexandre Daneau
by adaneau
Thu Jul 18, 2019 12:00 pm
Forum: Bugs / Problems
Topic: CSS ComboBox Editable Items
Replies: 3
Views: 360

Re: CSS ComboBox Editable Items

Hi, I also noticed that background color doesnt work, maybe Qt bug or ETM missing implementation, best is to open bugtracker or SR if you have access. All other entries however worked fine for me. Background is easy to solve as the background color set inside GEDI is applied to both item box and fie...
by adaneau
Thu Jul 18, 2019 11:57 am
Forum: Features / Solutions
Topic: detecting key presses without adding buttons to a panel
Replies: 5
Views: 661

Re: detecting key presses without adding buttons to a panel

Hi, I see potentially 2 solutions : - Synchronized function inside your keypressed, thus your key listener cannot run twice. - UI global var as semaphore Thus you protect the execution of your script. Eventually you could build a queue global mapping, where key pressed add entry and run function and...
by adaneau
Wed Jul 17, 2019 3:20 pm
Forum: HowTos
Topic: How to set Hover Back/ForeColor by CTRLScript?
Replies: 2
Views: 447

Re: How to set Hover Back/ForeColor by CTRLScript?

Hi, You are right, I found the property in the xml but it cannot be accessed via ctl code ... <prop name="HoverBackCol">yellow</prop> However I see a quick workaround using the mouseover script :) You can even embed it into a OOP with your own custom hover property to make it usable everywhere. BR A...
by adaneau
Tue Jul 16, 2019 9:47 am
Forum: Bugs / Problems
Topic: CSS ComboBox Editable Items
Replies: 3
Views: 360

Re: CSS ComboBox Editable Items

Hi,

Be careful that QCombobox is having a pseudo state for editable :). So you need to adapt your CSS.

See https://doc.qt.io/qt-5/stylesheet-examp ... -qcombobox

Something like :

QComboBox:editable {
background: white;
}

BR
Alexandre