10-04-2017 07:41 PM
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
10-05-2017 09:46 AM
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.
10-05-2017 10:32 AM
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?
10-06-2017 04:51 PM
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.
10-10-2017 04:53 PM
No, the function I used worked fine. The attribute is treated as a MACRO not a string literal as I originally though