DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you do an average of only ONE channel in analysis?

Solved!
Go to solution

Brad, it is done. Thanks for your patience!! Us newbies can be a pain I am sure!!

0 Kudos
Message 21 of 33
(5,922 Views)

Well I thought it was working. The error I keep getting is the (ResultStatArithMean) does not match any elements in the list. The error statement is true. The maximum seems to work but I wonder if itsn't just pulling info that is already there.This is the same using your average TDR or any of mine.

0 Kudos
Message 22 of 33
(5,921 Views)

OK, last time for this week...yes it works, yes it works, yes it works. Egad!! (thanks again)

0 Kudos
Message 23 of 33
(5,921 Views)
Solution
Accepted by shredderjohn

Hi shredderjohn,

 

I switched horses on you in midstream.  Initially I was recommending the ANALYSIS function to calculate statistics-- this creates that ResultArithMean property.  In my last TDR I sent, though, I abandoned that approach and calculated the average using the CCh() function inside the @@ expression.  You may eventually need to use the ANALYSIS function, but for now this seemed simpler and cleaner and bypasses any issues regarding which channel the ResultArithMean is attached to (or not).

 

Glad to hear things are working, ask again,

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 24 of 33
(5,913 Views)

How can i embed this arithmetic mean into report..

0 Kudos
Message 25 of 33
(5,723 Views)

Hello Ritesh,

 

Use a Text, put it into the Report at the position you would like to see your average value at, and then type the following characters into the text editor:

 

Untitled.png

Mean: @@CCH("Speed",0)@@ or

Mean: @@str(CCH("Speed",0),"d.dd")@@ <- optionally this will format the mean to have two decimal places behind the decimal comma

 

The elements of this string mean the following:

 

  • Any text outside of the @@ characters will be displayed as regular text
  • Any text inside the @@ is interpreted as a variable.
  • CCH("Speed",0) - Calculates the characteristic values of the data channel "Speed" - the 0 tells DIAdem you want the mean, other options are:
    0 Mean value
    1 Minimum
    2 Maximum
    3 Range
    4 Total
  • str(variable name,"d.dd") - Converts a numeric value into a text and formats it as a decimal with two places after the decimal point

 

This is what you will get after adding the formatted text shown above:

 

NONAME.PNG

 

I hope this helps, let me know if you have additional questions,

 

     Otmar

 

 

Otmar D. Foehner
0 Kudos
Message 26 of 33
(5,714 Views)

hi otmar

thanx for your help.

It is working.

One more thing i want to analyse from Diadem i am having some data base in citadel it is some digital signal. I am retriving it on diaden and want to calculate how many times the digital signal is on. I am attaching a pic for refrence. I this pic DO is initiated 9 times can we calculate it with help of diadem report.

0 Kudos
Message 27 of 33
(5,697 Views)

Hello Ritesh,

 

There are multiple ways to get that result, I tried the "Level Crossing Counting""

 

In ANALYSIS -> Statistics go to -> "Single Classification"

 

Class.png

 

I picked the following settings:

 

Level Cross.png

 

The Maximum value of the "LevelCrossingCount" channel that is created as a result of the function is the number of times the digital signal went from 0 to 1 - at least with the little example I created.

 

There may also be a way to use the Peak Search or the Event Search function in DIAdem, but this was the way that worked for me in this particular example data set.

 

Let m know if this helped,

 

     Otmar

Otmar D. Foehner
0 Kudos
Message 28 of 33
(5,668 Views)

Hi otmar

do.png

this peak search is also working for counting no of peaks.

analyse.png

As you can see in image i had calculated no of peaks and when i am draging this calculated peak in report the value is not there.

my question is again how do i embed this result channel in report

0 Kudos
Message 29 of 33
(5,655 Views)

Hello Ritesh,

 

You are correct, the Peak Search function is also a good way to count the peaks in your case.

 

The peak search function creates two new channels in the DataPortal, PeakX and PeakY. They contain the X and Y coordinates of the peaks, so they don't help with showing the number of peaks. We can use the "Channel Length" property to display the number of peaks in the report layout:

 

Peaks.png

 

In the DataPortal, click on the "PeakX" or "PeakY" channel. From the property view, select the "Length" property and drag it into the report somewhere. It turns into a text, with the text saying: "Length: @@Str(Data.GetChannel("[1]/PeakY").Properties("length").Value, "AutoAdj")@@" - Simply edit the text and you have the number of peaks in your report.

 

Let me know if you have any additional questions,

 

     Otmar

Otmar D. Foehner
0 Kudos
Message 30 of 33
(5,647 Views)