DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain Origin Key Programatically

Hi,

I am using StorageImport command in Diadem to import a channel from Citadel.
However, I need to specify an origin key in order to accomplish this operation.
Is there a way to obtain this origin key programatically?

Thank you

Egor

0 Kudos
Message 1 of 4
(4,000 Views)

Hi Egor,

 

I don't think so.  I think neither the StorageImport() nor the DataFileLoad() import methods provide a mechanism to supply the hierarchy path to one or more traces or to navigate through the hierarchy programmatically.  The only option that occurs to me is to use the ODS functions in DIAdem, which are not fun, but which were designed to work with data sources that have arbitrary hierarchy.  And they do work on Citadel data bases.  I'm including an example that does not do what you want, because it's based on an interactive dialog, but it does show how to use the ODS function in this Citadel context.

 

Brad Turpin
DIAdem Product Support Engineer

National  Instruments

0 Kudos
Message 2 of 4
(3,962 Views)

Hi Brad,

Thank you for your answer. I have another question though.

Where is the origin key located? Currently, in order to get it, I need to record a script using diadem and manually import a channel. Then, by looking at the code obtained, I am able to get the key. I was wondering if there was a quicker way to obtain it.

 

Egor

0 Kudos
Message 3 of 4
(3,940 Views)

Hi Egor,

 

I don't know for sure.  It is my belief that it is the data server (i.e. Citadel) that generates this key whenever a client (i.e. DIAdem) demands it.  To my knowledge, though, there is no separate DIAdem function in VBScript to request this key.  I believe the only way to get this key is to select the traces you want manually and record the key with the Script Recorder, as you mentioned.  If you want to define the traces to load dynamically, at run time, the only opton I know of in DIAdem are the ODS...() functions in the example I sent you, which is a completely different approach (and more complicated) than StorageImport().

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 4 of 4
(3,920 Views)