DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Repeating calculations

I am trying to conduct "ChnXMSCalc" on a number of channels in a data set. I would like to repeat the calculation a number of times, but am unsure how to store a number of difference results. Is there a way of doing this by storing it as a variable? I have spent a fair bit of time searching the help files, but dont think I am searching for the correct files.

 

Any help would be greatly appriciated.

 

Kind regards

0 Kudos
Message 1 of 2
(3,691 Views)

Hi Mcp138,

 

The ChnXMSCalc() ANALYSIS function in DIAdem returns 4 scalar parameters into the following global DIAdem variables:

 

XmsAcceleration ' acceleration of the X ms calculation.

XmsTimeBegin ' time T1 of the calculated X ms acceleration in milliseconds.

XmsTimeEnd ' time T2 of the calculated X ms acceleration in milliseconds.

XmsDeltaX ' time T of the X ms calculation in milliseconds.

 

You can call this function in a VBScript loop and save the values it stores into these 4 variables into channel properties or into new summary results channels.  Each time you run the ChnXMSCalc() function the values in these 4 variables will be overwritten, so it is important to read them after each time you call ChnXMSCalc() and place those values somewhere else for safekeeping.

 

What do you want to do with these values after you calculate them?  That may determine the best way to save them (i.e. as new channels properties or new values in summary results channels).

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(3,670 Views)