Simulation code already done by UaModeler Code Generator

Questions regarding the use of UaModeler

Moderator: uamodeler

Post Reply
s_schmidt
Full Member
Full Member
Posts: 7
Joined: 22 Mar 2019, 09:34

Simulation code already done by UaModeler Code Generator

Post 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!

User avatar
Support Team
Hero Member
Hero Member
Posts: 2532
Joined: 18 Mar 2011, 15:09

Re: Simulation code already done by UaModeler Code Generator

Post 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.
Best regards
Unified Automation Support Team

Post Reply