Thank you a lot
This works now.
Hervé
Search found 4 matches
- Fri Jun 13, 2014 12:28 pm
- Forum: Sable
- Topic: Getting and setting variables at a given time
- Replies: 8
- Views: 34774
- Fri Jun 06, 2014 3:21 pm
- Forum: Sable
- Topic: Getting and setting variables at a given time
- Replies: 8
- Views: 34774
Getting and setting variables at a given time
Hello Tony, I would like to get and set model variables at a given time from an ActiveX component. I tried to call OCX_SETVALUE and OCX_GETVALUE commands, using the following syntax for the variable name : "myvariable[mysubcriptelement]@mytime" (for example : C in Atmosphere[Deterministic]...
- Fri May 23, 2014 12:58 pm
- Forum: Sable
- Topic: Accessing model variables in an ActiveX component
- Replies: 2
- Views: 21753
Re: Accessing model variables in an ActiveX component
Hello,
I got it working : C-Roads scripts reinitialize the SYNTHESIM mode. I called the same Venapp commands from my OCX and could modify values after a simulation run :
SYNTHESIM>AUTO|0
SYNTHESIM>AUTO|1
SYNTHESIM>GO|
SetData(data, value)
SimRun()
Hervé
I got it working : C-Roads scripts reinitialize the SYNTHESIM mode. I called the same Venapp commands from my OCX and could modify values after a simulation run :
SYNTHESIM>AUTO|0
SYNTHESIM>AUTO|1
SYNTHESIM>GO|
SetData(data, value)
SimRun()
Hervé
- Fri May 23, 2014 10:24 am
- Forum: Sable
- Topic: Accessing model variables in an ActiveX component
- Replies: 2
- Views: 21753
Accessing model variables in an ActiveX component
Hello, I tried the ActiveX sample project with C-Roads and got some troubles in accessing model variables : Before launching a simulation run, I can get and set any value. After having run the simulation, I can only read, but not set any value. Here are the steps to reproduce the problem : 1) Add th...