Read script variable with Serial port

9 years 5 months ago #29528533 by edmodi
Hi, I need read internal script variable in app with connect to SDC2130 controller over serial port. It is possible? For more details, this variable is true when the script program is in a concrete state of the state machine. Other way to do this, is do a print statement by console but I've tried and can't read any by rs232 (this read is typical read in C++).



Can anyone help?. Thanks

Please Log in or Create an account to join the conversation.

9 years 5 months ago #29528534 by roboteq
Replied by roboteq on topic Read script variable with Serial port
You can exchange up to 16 integers via the serial port using the VAR variables.


Sending !VAR 1 555 will cause 555 to be stored in VAR 1. Then from the script, you can read it with getvalue(_VAR, 1)

If from the script you do a setcommand(_VAR, 2, 444), 444 will be stored in VAR 2. You can then read it from the serial port using ?VAR 2

Please Log in or Create an account to join the conversation.

9 years 5 months ago #29528535 by edmodi
Read VAR variable is the way as I was doing. The problem is continuously read (100ms) and sometime the serial port fail. It is possible used telemtry string for not doing write/read VAR cicles?

Thansk for your reply

Please Log in or Create an account to join the conversation.

9 years 5 months ago #29528536 by roboteq
Best is to use query history feature. Pls look in manual.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.080 seconds