DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Use dasylab to find 1.5 percentile and 98.5percentile value of a block

I am using Dasylab 9.0. I need to know the max and min values of a block of data. I have a signal that has a burst of noise coming from my sensor every once in a while so the Max and Min functions of the Statistical Values module are a bit useless for me. Currently, I output the data to excel and I use excel order the data in ascending values and I then remove the first 1.5 % of the points and the last 98.5% of the points and use the 1.5 percentile value as the Min and the 98.5 percentile value as the max. Is there any way to do this in dasylab.
0 Kudos
Message 1 of 8
(7,771 Views)

Hi,

 

Since you are not addressing any National Instruments hardware, this seems to be DASYlab programming question.  Contacting DASYlab support will probably get you the best assistance.  Have a nice weekend!

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 2 of 8
(7,761 Views)

John,

 

I am a litle confused.  Is the a possibility to see your worksheet?

 

Are you trying to collect an absolute MIN MAX or one per block?

Is the noise spikes bigger than the min max youi are looking to detect but faster?  (You could use filtering for that)

 

If you could upload the worksheet, we could look into it.

 

Tom

InSyS Corp.

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 3 of 8
(7,757 Views)

Hi Tom,

     One of my customers wants me to find one max and on min per block of signal. I am acquiring data at 2000Hz and have a block size of 2048. Since there were some fairly random bursts of noise, I would sometimes get a ridiculously hi max or a ridiculously low min. The customer does not want me to filter anything. So, we came to the agreement to put the data of each block in ascending order and and remove the first 1.5% of the points and remove the last 1.5 % and then perform the max minus min operation. This of course comes out to be the same problem as finding the 1.5 percentile value and the 98.5 percentile value. Would you know of any way to do this. Thank you very much for your time. I would send you my Dasylab worksheet but it just consists of  one input module and then two statistics modules to find the max and the min. I need to replace the max and min however with something that will do what I asked above.

0 Kudos
Message 4 of 8
(7,751 Views)

John,

 

We looked around and we don't think it is possible to do it in DASYLab as it is now.  What you request is not something that is usually done with this kind of applications.

 

The only possibility at this point is to create your own DASYLab module that would provide this kind of filtering.

 

Sorry for the bad news

 

Tom Rizzo

InSyS Corp.

Your DASYLab integrator

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 5 of 8
(7,722 Views)

I guess I will be stuck using Excel to do some post treatment of the data. Thanks for your time Tom

0 Kudos
Message 6 of 8
(7,718 Views)

John,

 

To create a module to perform that action is not impossible, you just need the developer toolkit and a good knoledge of C.

 

If you call Measuramnet Computing, they can help you with which product you need.

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 7 of 8
(7,716 Views)

Hello John,

You can solve this application flexible and very compact with Addon Module "VBScript", sale via PREMEGA GmbH -> link under http://www.premega.de/de-02/software_dasylab_vbscript_de.php

 

Some screen shots for mainpoints from application:

Global System Variable ${BLOCK_SIZE} inform the VB Script module over the used BlockSize, if Generator used same.
17951i40DDE2EC2410F833
17953iDAFE33B659CFDFBA

VB Script allow you to save the values into double area -> dim dValue (32768). The samples go into VB Script module step by step. With last incoming you can calculate over the first dValue (0...a) and last dValue (x...y) your min, max, whatever you needs.

17955i45FC5F3236597F7A

Best regards,

MHa

0 Kudos
Message 8 of 8
(7,255 Views)