DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Collecting min/max peaks in dasylab? Can this be done?

Solved!
Go to solution

Working with Dasylab 10.  I am looking to collect min/max peaks on a sinwave form we will be running.  Can this be done?  If so, how?  Or will I just have to oversample and sift throught the data?

 

 

Thanks!

Mark.

0 Kudos
Message 1 of 16
(8,897 Views)
Solution
Accepted by topic author KraM8

Use the Statistics module called Minimum / Maximum.

 

This will either output the value (you pick minima, maxima or both), or will output a TTL signal, with a TTL peak (5V) at the peaks.

 

Adjust the hysteresis value to avoid detecting noise as peaks, or, use a running average to smooth out the signal. 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
Message 2 of 16
(8,895 Views)

CJ,

 

    I am having a hard time with the min/max value module again.  I have 2 lines coming in (2 LVDTS) to the min/max module right after a relay. The min/max module is set to collect minimum and maximum.  The output is "Function Values".  It then is supposed to go to the write module.  If i hit the "collect data" button i had to take data, it trips up the whole program and won't let me write anything (as there are other things going on).  I don't understand why its not as simple as just dropping it in there and then looking for the values it needs.  


Any ideas?


Would the Hysteresis range or Start Hysteresis have anything to do with it?

0 Kudos
Message 3 of 16
(8,813 Views)
It soulds like you are having some problems with the flow of data, mix block sizes.  Could you upload your worksheet?
Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 4 of 16
(8,810 Views)

Sounds like a timing issue and writing to an ASCII file.

 

Try replacing the Write module with two List modules, and see what the time stamps of the values are... 

 

If this is the case, use a "Special-->Signal Adapt" module and configure it to "Ignore Real Time". It should align the min and maxima to allow them to be written at the same time. 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 5 of 16
(8,809 Views)

Program.JPG

 

Here it is. 

0 Kudos
Message 6 of 16
(8,805 Views)
Program.JPG
0 Kudos
Message 7 of 16
(8,803 Views)
I am unsure where to find the list module. I do not see it.
0 Kudos
Message 8 of 16
(8,801 Views)

For this test, use the statistical Values module not the Min/Max module.

 

Select Minimum and Maximum and use either block wise or Ascending that can be then resetted by action

Tom Rizzo
InSyS Corp.
www.insyscorp.com
Your DASYLab integrator
0 Kudos
Message 9 of 16
(8,799 Views)
It doesn't appear that "minimum AND maximum" are available for selection. It seems you have to choose either maximum OR minimum when using that module.  I am not using blocks, i am using the seperator module.  If I set block size to 1, will it recognize it as 1 sample?
0 Kudos
Message 10 of 16
(8,790 Views)