Apply offline math after stop trigger

  • Software
  • Apply offline math after stop trigger
Frank Small

Posted on 08.03.2024 01:44

BLUF: Curious if there is a way to automatically apply offline math to a data file as soon as storing was stopped without using apply action in analysis mode, or interrupting dewesoft measure mode.


I have a scenario where it makes the most sense to apply math offline. Test runs are a minute long, and I need to compute statistics on the last 50 seconds to allow adequate time for the test item to stabilize. The first step includes applying a compensation to remove human bias, which is done by shifting the entire test run so that the median of the last 50 sec is 0. Median is used to avoid issues with data spike that averaging is more suspectable too during automated processing. The rest of the calculations are done once the bias is removed.


I'm not worried about getting results during the test run, so offline math makes sense in my case. Getting results shortly after is acceptable. We are currently using start/stop triggers to store and multifile to keep dewesoft "armed" while creating a new data file for each triggered event. That was done for efficiency of constantly starting and stopping. We do hundreds of these test runs in a given day.


I was curious if there is a way to automatically apply offline math to a data file as soon as storing was stopped without going into analysis mode, or "disarming" measure mode. We have a external application that keeps record of what dewesoft data file applies to a given test case. It uses DS-NET to query armed/storing status, filenames, etc. It can read in the data file after storing has stopped and actually do processing/plotting without interrupting dewesoft. However, all the calculations need to be compiled into the application which isn't ideal. Having the flexibility to apply the post processing calculations with offline math in dewesoft is desirable. We are open to using the remote library or some external interface to apply the offline math in the background.

Nejc Ucman

Posted on 11.03.2024 12:33

Dear Frank,


are you using Sequencer for measurements? If you are doing hundreds of these tests then it would make sense to use it. To answer your question I would definitely use Sequencer. It is possible to apply offline math to individual or multi files. This can be done immediately after measurement, depending on what you are trying to achieve.


I have made a simple sequence which automatically starts the measurement, stops it, then calculates the offline math and exports a separate file with calculations made. I have attached the setup file and the sequencer file as an example.


If you are not familiar with sequencer here are some resources:

PRO training for using a Sequencer

Link to the manual of Sequencer


I hope this is what you are looking for, if you have any more questions, don't hesitate to ask.


Best regards,

Nejc Ucman

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