06-20-2008 03:04 PM
Solved! Go to Solution.
06-23-2008 09:47 AM
06-24-2008 09:42 AM
06-24-2008 12:43 PM
06-25-2008 11:49 AM
06-25-2008 01:24 PM
Actually, there are two items.
1) Under the "IVI Drivers/Advanced/Instrument Driver Software Modules" section; "Configurable Settings" Tab MAX allows you to set a Configurable Setting: Name, Software Module Key, Type, and Default Value. Supposedly, if I understand things properly, during the initialization process the IVI Configuration Server copies this _somewhere_ so that I can access it from within the driver to configure the driver for a specific instance. However, no where is it clearly stated _where_ it puts it, or how to retrieve it. Exactly how is the question; if I understand things correctly, the Default Value ends up in an attribute named with the entry in "Software Module Key" and can be retrieved through the IviConfig_Get<ItemName>Count functions (IVI-3.5, Section 3 and Section 4). However, there are no examples given on how the driver should "read through the virtual identifiers collection." (3.6.2) and retrieve the value.
2) Presumably, the driver may also retrieve the other information in the Configuration Store, such as the Description entered in the Driver Session entry in MAX. Again, instructions on how to get these from with a C program (LabWindows/CVI) are lacking.
06-26-2008 10:46 AM
06-26-2008 03:34 PM
06-27-2008 09:31 AM
03-09-2009 04:33 PM
NathanT says:
<blockquote> Any IVI settings that you change in MAX are added to the IviConfigurationStore.xml file when you click on "Save IVI Configuration". Depending on which version of ICP was first installed on your system, the file will either be located at: C:\Documents and Settings\All Users\Application Data\IVI Foundation\IVI or somewhere under C:\Program Files... If you can't find it, let me know which version of ICP was first installed on your system and which version you currently have installed.
I encourage you to add some Configurable Settings to the Config Store and then take a look at the xml file. (CTRL+F is very useful)</blockquote>
Ok, I'm back on this again.
I need to retrieve the Description entered into the Hardware tab of a Driver Session of MAX. I have perhaps a dozen Hardware Elements (instruments), and a Driver session associated with each one. My top-level program is about 3 levels up on top of a class driver. So, I initially call the instrument with the logical name assigned in MAX, e.g. "Left hand widget". This, in turn, is associated through the various MAX mechanisms to a particular hardware element and a GPIB address (GPIB0::10::INSTR). In the Driver session, then, are various descriptions which may be entered, and which end up in the .xml configuration store file, saying that "Left hand widget" is, in fact, "Serial number 123, located on the left hand optical bench". This is what I need to retrieve and display on my control panel. Is there a utility that will retrieve this stuff, or do I have to parse the xml file?