03-30-2011 03:28 PM
Brad, it is done. Thanks for your patience!! Us newbies can be a pain I am sure!!
03-30-2011 04:08 PM
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.
03-30-2011 04:18 PM
OK, last time for this week...yes it works, yes it works, yes it works. Egad!! (thanks again)
03-31-2011 08:03 AM
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
02-13-2016 03:11 AM
How can i embed this arithmetic mean into report..
02-13-2016 10:39 AM - edited 02-13-2016 10:40 AM
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:
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:
0 | Mean value |
1 | Minimum |
2 | Maximum |
3 | Range |
4 | Total |
This is what you will get after adding the formatted text shown above:
I hope this helps, let me know if you have additional questions,
Otmar
02-14-2016 10:24 PM - edited 02-14-2016 10:25 PM
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.
02-15-2016 08:58 AM
Hello Ritesh,
There are multiple ways to get that result, I tried the "Level Crossing Counting""
In ANALYSIS -> Statistics go to -> "Single Classification"
I picked the following settings:
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
02-15-2016 10:03 PM
Hi otmar
this peak search is also working for counting no of peaks.
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
02-16-2016 10:13 AM
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:
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