Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get customInfo value from range table?

Hi,

How can I get (read) the actual value of
the customInfo field in a range table?

Also I would be interested in a sample code that
shows how to use that value as a format string for
a instrument command.

Thanks in advance,
best regards,

Marcus
0 Kudos
Message 1 of 3
(2,871 Views)
i think your talking about the following lines in the ivi.h

typedef struct
    {
    ViInt32                     type;
    ViBoolean                   hasMin;
    ViBoolean                   hasMax;
    ViString                    customInfo;
    IviRangeTableEntry          *rangeValues; 
            /* the end of rangeValues[] is marked by the entry  */
            /* IVI_RANGE_TABLE_LAST_ENTRY                       */
    } IviRangeTable;



Tutorial using IVI Range Table


0 Kudos
Message 2 of 3
(2,858 Views)
Unfortunately the tutorial does not answer my question.

However I could resolve the problem in the meantime.

Just use the following code:

(1) Get address of desired RangeTable
status = Ivi_GetStoredRangeTablePtr (vi,
attributeID,
&tabletest);

(2) Read the customInfo string
custInfo = tabletest->customInfo;

Thanks to all,
Marcus

Message Edited by Marcus3967 on 07-07-2005 03:42 AM

0 Kudos
Message 3 of 3
(2,854 Views)