Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: change variable value while script is running
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Tejaswini

Posts: 1
Registered: 5/5/13
change variable value while script is running
Posted: May 5, 2013 7:22 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I am controlling a pilot plant of boiler through Matlab using modbus RTU (serial communication).

I am running my control program (in editor) for 45 mins through a loop but I am facing two problems :

1] I can't change any variable value while running program which is deadly needed.

2] I am unable to see real time data in workspace while running script.

It updates all variables after finishing execution time. For my application I want data to appear for every iteration.

I couldn't solve them so I switched to simulink but that was even more frustrating.

In simulink I used user defined blocks (embedded Matlab function) to generate modbus address PDU which does not support to in-built matlab functions (like dec2hex).

Will please someone let me know in simulink, serial send/receive support which data format?(ASCII/HEX/DEC)



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.