Re: A TBEM stess experiment
Just further info.
If you uncomment first 4 events (10 millisec, 100 millisec, 500 millisec, 1 sec) and comment last 2 all is working.
If you uncomment also 5 sec event no events seem fired anymore other than the very first time.
So it seems not related to the kind of events but maybe the number of them or at the complexity.
Ciao
Eros
Re: A TBEM stess experiment
Maybe problem is related to the number of events because I setup 5 events all to be fired every second and it dosen't work
With 4 events it works
Re: A TBEM stess experiment
Hi Eros,
just saw this this morning and have to go to work now. I'll will check it tonight and let you know. Thanks for testing it.
Re: A TBEM stress experiment
Hi Eros,
I hope I squished the bug. There where some time related problems with TBEM_Run. Let me know if it works ok now.
Get the latest version from the usual place. And I'm sorry for the inconvenience this has caused.
Michael
Re: A TBEM stess experiment
Works great now,
thanks a lot Mike for quick fix!
Petr
Re: A TBEM stess experiment
Quick???? At first I was pulling my hair out as I thought it was a problem with pointers. Well, it was a logic error. Hard to track but I think I got. But I won't say now that this module is bullet proofed.
Re: A TBEM stess experiment
Thanks a lot Michael.
Maybe I will "stress" it a little more later.
Did you think about my previous questions?
I really like this module so I want it clear in my mind! I see a lot of possible usages.
Thanks a lot.
Eros
Re: A TBEM stess experiment
You mean the data trigger? You said forget about it. :P But I didn't. Let's discuss it in the topic you posted there first.
Re: A TBEM stess experiment
No, I was referring to questions in first post here:
Quote:
Originally Posted by ErosOlmi
Questions:
- once event is created and active, do I also have to call tbem_addtrigger even if event has been set as active?
- event type must be a unique number all around or unique inside a group? If event type is unique all around, why groups?
I mean, can I have EventType 1 in 2 different groups? If yes, how can tbem_addtrigger knows what to trigger
Re: A TBEM stess experiment
Sorry man, I forgot about these. Ok...
Quote:
once event is created and active, do I also have to call tbem_addtrigger even if event has been set as active?
Only a trigger can start running an event. But if an event is inactive, then it will not run, even if a trigger was fired.
I was thinking about a new function were you can fire a trigger eventID related. Like TBEM_AddEventTrigger(eventID) or so.
That will fire a trigger only on a certain event.
Quote:
event type must be a unique number all around or unique inside a group? If event type is unique all around, why groups?
I mean, can I have EventType 1 in 2 different groups? If yes, how can tbem_addtrigger knows what to trigger
Event types and groups are two different things, not related to each other. And the event type doesn't have to be unique but having several event types with the same number would make no sence. A trigger with its event type sets the runflags of all events with the same type. So if eventtype, the time related fields and the active flag fit to the trigger, then the event's runflag will be set to TRUE and the event will run next time TBEM_Run will be called.
Now about the event group. Remember event types set the event's runflag. If you have set the event's group then an event will only run during the call of TBEM_Run, if it has an event group equal to the parameter of TBEM_Run. This can be usefull if you want to make sure that some events will be running before others. Of course you would need to call several TBEM_Run with the defined events groups in one frame.
See it like a tool to kinda sort the running order of events. If all events have the same group and the same time parameters, then they run in the order of creation. I'm having the idea allready for some kind of reorder command. So you can switch events within the internal event list.
Do you want me to create a little example?
Re: A TBEM stess experiment
It's ok, thanks.
I will study it more and give back if I have some doubts.
Ciao
Eros
1 Attachment(s)
Re: A TBEM stess experiment
Here is a little sheet to visualize it more.
Re: A TBEM stess experiment
Hi Mike,
very nice scheme!
But I think there are few typos, for example comment for Step4, I think there should be "RunFlag of Event1 and Event3 will become TRUE" ( as they are both type #1 ).
On Step 5 and Step 6 I got completely lost then :-[
But maybe I misunderstood it.
Thanks,
Petr
P.S. Which proggie did you used to create the picture?
Re: A TBEM stess experiment
Sorry Petr, my fault. I uploaded a correct version. I hope it is understandable. It was made with InkScape.
Re: A TBEM stess experiment
No problem,
thanks a lot!
Petr