Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the ID of an Attribute?

Hello,

 

I am trying to make a simple get call niRFSA_GetAttributeViString. Where can I find the ID of an Attribute?

 

I am trying to make a call to the NIRFSA_ATTR_SERIAL_NUMBER but this attribute is not working. I receive the error : -1074135028

IVI: (Hex 0xBFFA000C) Attribute ID not recognized

 

0 Kudos
Message 1 of 5
(3,413 Views)

Hi!

 

Have you checked this help page of the valid attributes? I don't think Serial Number is a valid attribute for this function. You may be interested in  this function instead. 

 

0 Kudos
Message 2 of 5
(3,315 Views)

Hi, Thank you for your reply.

 

I have been using the attributes found here under the

"Attributes"->"Device Characteristics"->"NIRFSA_ATTR_SERIAL_NUMBER"

My hardware is supported by the reference here. However it may be because I am using a simulated one in MAX? The given C examples work for NI-SCOPE as far as compiling and returning standard values..But I do not see any examples that run the functions with ViAttr type. Any Thoughts?

0 Kudos
Message 3 of 5
(3,307 Views)

Hi,

 

Have you tried the function call in the second link I posted above? If you are attempting to return the serial number, you can do so using that call.

 

0 Kudos
Message 4 of 5
(3,211 Views)

 No, the function I used worked fine. The attribute is treated as a MACRO not a string literal as I originally though

0 Kudos
Message 5 of 5
(3,190 Views)