Book a Demo

Author Topic: change value variable in state diagram during simu  (Read 4332 times)

blabla

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
change value variable in state diagram during simu
« on: May 23, 2015, 12:36:07 am »
Hi
I want to change the variable in a state diagramm during the simulation.
For example I have a external input, which delivers the values of a variable. May be a sensor signal for velocity.
So my Problem is to get in the data and change the state if the value is mor than 2 m/s.

The input is maybe given in a excel sheet. To make a statemodel is not the problem. The Problem is to get use the data of the excel sheet as a variable.

Does someone know what the simulationtime in EA is? Like in Matlab simulink you have solvers fix-step or variable-step.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: change value variable in state diagram during
« Reply #1 on: May 25, 2015, 09:02:40 am »
You'll need to create an ActiveX object to read the spreadsheet. There's an example in the help about creating an ActiveX object in a simulation.

blabla

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: change value variable in state diagram during
« Reply #2 on: May 26, 2015, 04:14:11 pm »
Do you know may be the name or the path of the example.
I didn't found it

blabla

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: change value variable in state diagram during
« Reply #3 on: May 26, 2015, 08:04:12 pm »
Do I nee Visual Studio for that?