DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make mathmatical funciton results stay in the same group as the original channel, rather than the default group.

I have a few groups of waveform channels and I need to perform some analysis on a channel in each group.  One example, I need to calculate the arithmetic mean of the entire waveform on one channel in each group.  Using descriptive statistics is easy, and I get my result. The problem is, the result becomes a new channel in the default group rather than the group my original waveform is in. I can move the resulting channel each time, or change the default group each time I calculate the mean, but that becomes very cumbersome. 

 

What is the easiest way to perform mathmatical functions and keep the results in the original group, rather than a different group.

 

I have tried this in the calculator, Ch("[2]/CE Temp Mean")=Arithmetic_mean(Ch("[2]/CE Temp")), but it doesn't seem to work. 

 

TIA

0 Kudos
Message 1 of 5
(3,665 Views)

Hi Tia,

 

I would recommend that you wrap your favorite calculations into a Calculation Manager calculation set (*.TDC file).  These by default send results to the same group that the input channels come from.  You can get to the Calculation Manager dialog in the ANALYSIS panel by clicking the "Calculation Manager" icon at the top of the screen.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 5
(3,659 Views)

Thank you for the suggestion, but unfortunately, my company does not pay for the scripting package.  This is the reason, I believe, that the calculation manager button is grayed out and un-clickable. We do have one public computer that has a scripting package on it, but it is rather inconvenient. 

 

Any other way to accomplish this? 

 

(btw, TIA=Thanks In Advance) 

 

-Russ

0 Kudos
Message 3 of 5
(3,653 Views)

Hi Russ,

 

OK, so the Calculation Manager is not an option, but even DIAdem Base can run VBScripts, you just don't have the SCRIPT panel to help you do it.  So I'd say your best option is to create a VBScript in Notepad that sets the default group to the same as the input channels, runs the particular calculation (say statistics), then sets the default group back to what it was.

 

By the way, do you really need the result channels from the statistics calculation?  The statistical results are stored in new custom properties attached to the input channels, so you can get to them easily to add them to a REPORT template.  If your result channels are length=1, then you should simply configure the statistics calculation to NOT create result channels.  If your result channels are length>1, then you'll need to keep creating them.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 4 of 5
(3,651 Views)

I considered writing a script to do what I wanted, but it seemed like there should be a simpler solution. 

 

I am quite new using Diadem, so I will investigate your suggestion about not storing the result in a new channel.  I did try  that, but I didn’t know the result was stored in the original channel.  I will investigate that further, I appreciate the suggestion.

 

-Russ

0 Kudos
Message 5 of 5
(3,648 Views)