Hi jma,
Unfortunately you can not use the lpReserved element because this element is reserved for future developments. It is also not possible to use any other elements in our structures.
There are two reasons for this:
------------------------------------------------------
a) All lpReserved elements are reserved and the other elements have a special meaning.
b) You wouldn't be informed about DATA events such as “deleting a channel” or “deleting the complete dataset”.
You can, however, use the two add on attributes, which are available for each channel, which you can set and read with:
------------------------------------------------------
lDataProperties(eChannellUserSet, , )>) AND
lDataProperties(eChannellUserGet, , )
Here you need to be careful, though, because:
------------------------------------------------------
1) The customer can change these values in a VBScript
2) You won’t be informed about any channel-related events
But you would have the advantage that if the DIAdem user modifies the order of channels in DIAdem, you (the GPI-DLL author) would still have the right pointer behind the right channel, as long as you maintain your own channel pointer look-up list to verify that the pointer value hasn't been changed by the user to an invalid one.
Regards,
Brad Turpin
NI