04-04-2010 10:32 AM
04-04-2010 06:39 PM
All controls that are attached to parameters of a simulation model are handled in a value change event of the event structure. In your specific case you have to use a property node -> Value (signaling) in order to fire this value change event programmatically. Check out this example to get started.
BTW you might not want to use an untimed while loop to check on a user interaction.
04-04-2010 11:44 PM
Thanks u so much.This example is very useful. But I confuse "value change" in event structure. If I change the value manually such as click on increment button or rotate the knob by mouse, It acts correctly. But in my test , the value change is voltage that I measure from DAQ card. The measuring value put into a control and link to simulink model and it acts incorrectly.Is there any differency from change value manually and change value automatically through input analog?
04-05-2010 10:44 AM
04-05-2010 11:16 AM - edited 04-05-2010 11:17 AM
First of all the SIT was not really meant to be used with HW on Windows because it is not deterministic. That being said, it could be a slight hassle to add hardware support to the SIT client VI.
The value change event does only get fired if the user changes the value on the UI by clicking the increment/decrement button and/or by typing a new value or if the property 'VALUE (Signaling)' is used. Since the source of the value update in your case is not a user input but the input value of a DAQ board, you have to use the ladder mentioned option.
04-05-2010 01:49 PM - edited 04-05-2010 01:52 PM
Hello,
What kind of error are you experiencing, I have used Simulation interface toolkit with math model(basic ones). There are some settings to make it work perfect.
SIT 5.0 has some more settings involved i believe, pls read the readme contents to ensure that you have all the things before you proceed.
04-06-2010 09:31 AM