Trying to catch a spike with "if" statement in sequencer to shut down testing

  • Software
  • Trying to catch a spike with "if" statement in sequencer to shut down testing
Tyler House

Posted on 22.05.2018 00:49

Looking for some help, I am doing a coil spring cycle test and my fixture tests two springs at the same time. I am trying to figure out a way to record data for when one or both springs break. I connected an accelerometer to my fixture and inserted an if action in my sequence stating " if the accelerometer < .95g" that the test will shut down. My logic behind this is when one of the coils breaks its going to create a vibration that the accelerometer will pick up and then shut down the testing but when trying to simulate this event the dewesoft is not picking up the spikes I'm simulating and continues with the test. Ive tried placing the if statement in multiple areas of my sequence but have yet to find something that works consecutively. Im using a 16G Mems accelerometer only measuring the z axis. Any help would be greatly appreciated!

Tyler House

Posted on 22.05.2018 17:31

I was thinking about this last night and this morning and if there is anyway to monitor a single event through out the entire sequence. I feel like if the event does not happen at the exact time and moment that it is placed in the sequence then I might not get the results that I am looking for. So is there a way to state or program with the dewesoft that if a certain event happens at any time during the entire sequence than I would like for the test to end? I can not predict when then spring might possibly break during my test but it does create an event that dewesoft should be able to recognize and react to.

Anže Baš
Software Test Engineer I
Posted on 30.05.2018 16:01

Just like you said, the problem is that the sequencer is asynchronous, and the if block in your sequence may not detect a fast change on the accelerometer. What you could do is use the accelerometer channel and the hold function in a math formula, which will hold a value, if a certain condition is met and then use that formula in the if block instead of the accelerometer channel.

I hope this information will help you, but if you need any additional help, I think it would be best if you send your simulated setup file and sequence and we can try to tune it.

Login to reply to this topic. If you don't have account yet, you can signup for free account .