Simulation code already done by UaModeler Code Generator
Posted: 22 Mar 2019, 09:48
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:
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!
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;
};
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!