02-14-2016 11:03 PM
HI..
how can i load citadel data base selected traces to DIAdem programatically?
02-15-2016 11:58 AM
Hi sajeesh,
The only way I know of is to turn on the Script Recorder and load those traces interactively, then use the "StorageImport()" commands recorded. That function has one xml parameter which has a unique ID called<abskey> for each selected Citadel Trace. That won't change, so you can build a map of the Trace path to that unique ID in your code and call the StorageImport() function once for each selected Trace you want to load.
This isn't pleasant, but it's the only way I know of. Also bear in mind that Citadel is 32bit only application with no 64bit access, so 64bit versions of DIAdem will not be able to load Traces from Citadel at all.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-18-2016 12:09 AM
Hi
When i load citadel 5 traces (one trace) i am getting a command in script recorder
Call StorageImport("<?xml version=""1.0"" encoding=""UTF-16""?><addressgroup version=""15.0""><addresslist><basepoint name=""theStore""><usistore name=""Data store""><type>Citadel5</type><param><cit5><alarms>true</alarms><db>\\sss7\f__data</db><interval enabled=&quot;true&quot;><delta enabled=&quot;false&quot;>5.0</delta><end>20160217112649000000000</end><start>20160214102049000000000</start></interval><quality>false</quality><timeout>30</timeout><trans enabled=&quot;false&quot;><brkratio>false</brkratio><delta>5.0</delta><etm>false</etm><interp>false</interp><max>false</max><mean>false</mean><min>false</min><mode>Natural</mode><qualratio>false</qualratio><starts>false</starts><stddev>false</stddev><stops>false</stops></trans><waveforms relativeTime=&quot;false&quot;>Mixed</waveforms></cit5></param></usistore></basepoint><address><basepointref>theStore</basepointref><abskey>USI0b76f6ecddd28bae5751bea1fd497a98c539ea7824f8c9fc93fd17f9fff94ff91ff9cff9bff9fff89ff86ff8fff87ff9cffc5ffd8ffd9ff89ff86ff83ff92ff95ffadffbbffb0ffb9ffb5ffaeffb2ffbdffaeffe8ffe9ffb9ffb6ffb3ffa2ffa5ffbdffabffa0ffa9ffa5ffbeffe9ffbcffbeffb6ffa0fff9ffe1ff86ffa0ffb4ffdeff9cff83ff8cff87ff95ffd4ffddffd6ffc5ffc0ffc6ffd6ffdfffd4ffdeffdbff90ff91ffd8ffd9ffcbffcaffcdffccffc3ffdcff9aff9fffd7ffd3ffccffa1ffc2ffc1ffcfffc8ffc9ffaeffc4ffd1ffc9ffcafff0fff2ffe6fff0ffccffdcffddffdeffbbffd7ffccfffbffe7ffe9fff2ffa5ffd4ffe2ffecffe4ffecff23ff33ff12ff08ff14ff08ff59ff37ff39ff56ff44ff48ff5cff07ff03ff1cff51ff52ff42ff18ff19ff0bff0aff0dff0cff03ff1cff5aff5fff4dff0cff05ff3eff2dff28ff2eff3eff37ff3cff36ff23ff3dff30ff2dff6dff6eff7eff3bff2aff37ff73</abskey></address></addresslist></addressgroup>","Load")
SO can we create ABS key for channel?i would like to now about it.
02-18-2016 01:55 PM
Hi sajeesh,
This (Script Recorder) is the only way I know to create the AbsKey for the StorageImport() command. In my experience it doesn't change, so once you've mapped out all the AbsKey values for all the traces you care about, you can rely on that moving forward. I'd suggest you save them in an ASCII file and then load them into a Dictionary object each time you want to use them.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-19-2016 12:06 AM
hi
Ok so the ABS key can be constant
What about the other part of command,the true ,false etc .
Cani know the details of string
02-19-2016 01:35 PM
Hi sajeesh,
The only part of the XML string I've successfully been able to edit from the Script Recorder session is the datetime window.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-20-2016 12:38 AM
hi
ChnInstanceKey command may be helpful in getting abs key
02-20-2016 06:34 AM
hi,
I need to find Orgin Key /ABS key associated with each channel through labview programaticaly. A script is attached for yur reference. is the origin key generated by citadel or by Diadem?
Regards
Sajeesh
02-29-2016 01:15 AM
so by using the script without ABS key the data is uploaded to data portal.