Hello Stefan, It's now working. Thank you very much for the quick reply
Hi, I reuploaded ScriptCommunicator 06.10 for Linux. Here the names of libraries are correct. Thx for reporting this.
Hi, I reuploaded ScriptCommunicator 06.10 for Linux. Here the names of libraries are correct.
Sorry posted my query on wrong place... Hi Stefan I've tried latest ScriptCommunicator_06_10_linux_64_bit on openSuse Tumbleweed and Mint and still have following error when running the .sh script: ./ScriptCommunicator: error while loading shared libraries: libQt6Multimedia.so.6: cannot open shared object file: No such file or directory Not sure if I'm missing some detail... Thank you
Hi Stefan I've tried latest ScriptCommunicator_06_10_linux_64_bit on openSuse Tumbleweed and Mint and still have following error when running the .sh script: ./ScriptCommunicator: error while loading shared libraries: libQt6Multimedia.so.6: cannot open shared object file: No such file or directory Not sure if I'm missing some detail... Thank you
Hi, you can try this: Go to your documents folder, rename or delete the 'ScriptCommunicator' folder and then start ScriptCommunicator.
The ScriptCommunicator on my Win 10 laptop showed something strange recently. 1) it takes very long time to start the program, more than 20 minutes; 2) the first window "select ScriptCommunicator config file", in a crazily long window, and I could not make it shorter by resize it. What should I do to solve the troubles? Thanks for your help.
Thanks
Hi, you cannot download it directly. You have to install Qt on your PC and then copy the QtDesigner executable and the needed QT libraries.
**Hello, ** is it possible to get the full version of qtdesigner in an independant sofware and if yes where ?
What i did not get was, regardless how long i wait, that readAll() does not return anything. But if that was never planned to work, it's useless to think about and i'll do it with an asnyc function.
Hi, I never tried it without an async reader. But yes, it seems that is it not possible without an asymc reader.
Hi, i've tried to simply init a serial communication (Windows 10), send some text and expect and answer. But it always give me 0 bytes in return: var serialPort = scriptInf.createSerialPort(); serialPort.setPortName("COM10"); serialPort.setBaudRate(115200); serialPort.setDataBits(8); serialPort.setParity("None"); serialPort.setStopBits("1"); serialPort.setFlowControl("None"); serialPort.setDTR(true); serialPort.setRTS(true); serialPort.readAll(); // flush RX-Buffer serialPort.writeString("ATZ\r");...
Hi, I tested it with Pop_OS 22 and had the the same error. I uploaded a new version for Linux (6.6.1) which now starts on Pop_OS 22. Thx for reporting this.
Hi, on my Ubuntu 22 everthing works fine. If you want you can download Qt6.4.3 and look for the missing librariers there. I'm busy at the moment. But I will intall your OS in a virtual machine this weekeend and try it out for mysself.
If I start the program (either via the .sh script or the executable itself) it says: ./ScriptCommunicator: error while loading shared libraries: libQt6Qml.so.6: cannot open shared object file: No such file or directory And indeed the library is missing from the lib folder. I'm on Pop_OS 22.04 LTS and tried to install libqt6qml6 via apt but that only results in another error: ./ScriptCommunicator: symbol lookup error: /lib/x86_64-linux-gnu/libQt6Qml.so.6: undefined symbol: _ZN23QPropertyBindingPrivate17evaluateRecursiveEP14QBindingStatus,...
Which version of ScriptCommunictor do you use and on which which platform (Linux, Windows or MacOs) do you use it? I added foo() to a script and ScriptCommunictor showed an error and the script was stoped (that's how it should be).
Which version of ScriptCommunictor do you use and on which which platform (Linux, Windows or MacOs) do you use it? I added foo() to a script and ScriptCommunictor showed an error and the script was stoped (that's how it should be).
Which version of ScriptCommunictor do you use and on which which platform (Linux, Windos or MacOs) do you use it? I added foo() to a script and ScriptCommunictor showed an error and the script was stoped (that's how it should be).
Which version of ScriptCommunictor and on which which platform (Linux, Windos or MacOs) do you use it? I added foo() to a script and ScriptCommunictor showed an error and the script was stoped (that's how it should be).
You should also check for non-existant functions. If you just call an unknown funciton in the code (e.g. "foo();") and that function does not exist (or just misspelled) the code execution also freezes.
Way cool, great job pal! Glad to get the product better. Until then i just move the parts back into the main script, so no hurry needed.
It is bug. It worked when I used the old Qt script interpreter (Qt 5.14.2). I migrated to Qt 6.4.3 a few month ago. This version has a new interpeter. I will look into it when I have time. Thx for reporting this.
I will look into when I have time. Thx for reporting this.
I want to move parts of my code into external js-files and include them using scriptThread.loadScript(...); For functions this works pretty well, but not for things outside functions like const, var/let definitions. They are not exported to the main function, nor useable within the script where they are defined. More worse, when i define a const in the main script, it is not useable within a function in an loaded script. Is this per design, or is it a bug?
Also strange, regarding the docs your linked it should know replaceAll() but if i use this method, the script internally aborts/stops without giving any error (at least i see none). I had to use replace(REGEX/g, "..") instead.
Also strange, regarding the docs your linked it should know replaceAll() but if i use this method, the script internally aborts/stops.
I want to move parts of my code into external js-files and include them using scriptThread.loadScript(...); For functions this works pretty well, but not for things outside functions like const, var/let definitions. Is this per design, or is it a bug?
I tried to move parts of my code into several external js-files and include them at the start of my main script using scriptThread.loadScript(...); But it seems that only functions of those scripts are imported into the main script, but not const, var, let
I'm not that familar with statemachines, just learning. But from now it seems that i don't need a loop at all. Let's play this scenario: * I have a machine which can connect and disconnect from an serial port * The initial status of my machine is "disconnected". The other status is "connected". * To communicate with a serial port, my machine needs to transition from "disconnected" to "connected". Let's call this transition "connecting". * To stop communication my machine needs to transition from...
I'm not that familar with statemachines, just learning. But from now it seems that i don't need a loop at all. Let's play this scenario: * I have a machine which can connect and disconnect from an serial port * The initial status of my machine is "disconnected". The other status is "connected". * To communicate with a serial port, my machine needs to transition from "disconnected" to "connected". Let's call this transition "connecting". * To stop communication my machine needs to transition from...
I'm not that familar with statemachines, just learning. But from now it seems that i don't need a loop at all. Let's play this scenario: * I have a machine which can connect and disconnect from an serial port * The initial status of my machine is "disconnected". The other status is "connected". * To communicate with a serial port, my machine needs to transition from "disconnected" to "connected". Let's call this transition "connecting". * To stop communication my machine needs to transition from...
Sounds good. But you could trigger your statemachine from the serial port slot function. Then you wouldn't need a timer.
Just to have asked: Do you know an way to get all GUI elements programmatically? Maybe by their type?
I build an automotive serial sniffer tool (single wire UART). It utilizes several modes like "sniff traffic", "program keys/sensors", "receive sensors", "receive keys", send arbitrary frames, etc. I use a state-machine for those. The serial data from the UART is put into an buffer using the serialPort.readyReadSignal.connect() method. This just puts in data read from UART into an global array. An overflow-counter prevents it from getting too big (like a ring-buffer). Depending on the mode, it do...
All fine. So you mean the script code i pasted above would run, even if it's not shown correctly in your editor? The good thing on your editor is the UI integration.