DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem: How to store the input channel information from the Analysis modules

Brad,

 

This is very intriguing. You say even the input channels are stored as global variables. I searched through the DIAdem help and couldn't find the name of these variables. Is it the same variable for each ANALYSIS function or are they specific for each function? Could you point me in the right direction?

 

I was looking at the Smooth function for example. The call is:

     Call ChnSmooth(Y, E, SmoothWidth, SmoothType)

     (This is what get's captures using script record)

 

I see that SmoothWidth and SmoothType are both global variables and I can read their values back using the MsgBox command from VBS. However, The input (Y) and output (E). I cannot access that way. Is there something I'm missing here?

 

I found this passage in the Help under the section called "Using Standard Functions"

" The DIAdem ANALYSIS workspace shows you which calculations you have run with which channels". Are there global variables that are linked to the values in the ANALYSIS workspace?

 

The number of ANALYSIS functions that might be used could be any number of them depending on the particular analysis being performed.

 

Thanks again for your help,

James

0 Kudos
Message 11 of 13
(865 Views)

Hi James,

 

Unfortunately you're right and I'm not.  I thought all those parameters were global variables, but the Y and E variables in the ChnSmooth() function are not.  About the best I can offer is that the "Description" property of the resulting smoothed channel contains the text "Input: [1]/Time (1)".

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 12 of 13
(860 Views)

Brad,

 

Well I've been able to come up with a routine that parses the description string and can determine the parent channel(s). I am then able to sequentially work my way up through the tree and determine the root parent(s). I'll have to make some modifications to handle channels calculated with the Channel Calculator but I think I should be able to work something out.

 

Thanks again for all your help,

 

James

0 Kudos
Message 13 of 13
(849 Views)