03-22-2006 03:20 PM
Hi!
I'm using LabView 7.1 (with the SIT toolkit) to make a user interface for a
Simulink model. The problem I’m encountering is that the Simulink
parameters aren’t always linked to the same
It is quite
confusing to describe in words, so I’ve included a picture representing what I’m
trying to do. It shows the way I'm trying to do it right now, with the hidden controls, but only the final result counts, so tell me if there's a better way to do it, or if it's just wrong.
For the moment, since I’m not very good at using events, I just can’t figure how to connect the hidden controls to the Simulink parameters. By default in SIT, the Simulink values are updated when the user changes the value corresponding LabView control. Here, the values of the controls linked to Simulink are not modified directly by the user, so it doesn’t update.
I hope my explanations are clear enough to be understood… if not, don’t hesitate to ask more details.
Thanks in advance!
03-22-2006 03:24 PM
03-22-2006 09:10 PM
03-23-2006 09:45 AM
03-24-2006 04:45 PM
Maxime,
Sounds like you can accomplish this through local variables. Right click on the control you want to update programmatically, select Create -> Local Variable.
In the event structure, add a case for each control you want to update to the simulink control. Then write the local variable with the new value when that event happens. Your code will look something like this:
03-25-2006 10:12 AM
03-27-2006 01:47 PM
03-27-2006 02:34 PM
03-27-2006 02:54 PM
03-28-2006 11:10 AM