Search found 4 matches

by Herve - IPSIS
Fri Jun 13, 2014 12:28 pm
Forum: Sable
Topic: Getting and setting variables at a given time
Replies: 8
Views: 13473

Re: Getting and setting variables at a given time

Thank you a lot

This works now.

Hervé
by Herve - IPSIS
Fri Jun 06, 2014 3:21 pm
Forum: Sable
Topic: Getting and setting variables at a given time
Replies: 8
Views: 13473

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]...
by Herve - IPSIS
Fri May 23, 2014 12:58 pm
Forum: Sable
Topic: Accessing model variables in an ActiveX component
Replies: 2
Views: 7813

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é
by Herve - IPSIS
Fri May 23, 2014 10:24 am
Forum: Sable
Topic: Accessing model variables in an ActiveX component
Replies: 2
Views: 7813

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...