Page 1 of 1

Simulation code already done by UaModeler Code Generator

Posted: 22 Mar 2019, 09:48
by s_schmidt
Hello,
I am using the UaModeler for the first time and am wondering after I created all my nodes, how do I specify that values of variables are changing during a simulation. I know from the c++ SDK for running test we add following code to the nodemanager:

Code: Select all

//- Interface UaThread ----------------------------------------------------------------
    virtual void run();
    //- Interface UaThread ----------------------------------------------------------------

private:
    bool    m_stopThread;
    UaMutex m_mutex;
    std::list<SimulateMyObjectType*> m_lstSimulateMyObjectType;
};
and also modify code in the ObjectTypes.
Is it possible to define that in the Modeler, so that one doesn't have to add the code later to all? Afterwards in the SDK I just want to specify the simulation (for example distribute it randomly)

It would be nice if someone could help.
Thank you!

Re: Simulation code already done by UaModeler Code Generator

Posted: 27 Jan 2020, 10:18
by Support Team
Hello,

There is no option to generate code that does a simulation for the Variables in the model. We did not see this use case so far.