I have been attempting to run a deployment simulation, and am curious if the procedure from MV-2021: Simulate an Automotive Door Closure Event can be modified to sense multiple latch closure events in the same simulation run.
My understanding of the process outlined is that when the latch condition is met, the sensor kicks the simulation to the next XML step - in this case activating the fixed joint for the latch, and then continuing the simulation. My question, then, is, if there are multiple latches, is there any way to tie the sensor activation to a specific next step/joint to fix? In other words, I want sensor 3 being triggered to kick to the command file and activate joint 3, but that could be before or after any of the other latch joints/closure events in the model. So I don't think a sequential process like that laid out in MV-2021 would work, because I don't know in which order the sensors may activate for any given run.
Conceptually what I am trying to achieve is this:
- Deactivate all N fixed joints
- Activate all N sensors
- Loop the following:
- Simulate for 3 seconds or until sensor i is triggered (where i is any sensor 1 thru N)
- If sensor i, activate fixed joint i and deactivate sensor i.
- Continue simulation for 5 more seconds or until any another active sensor j is triggered
- If sensor j, activate fixed joint j and deactivate sensor j.
- Stop simulation