04-16-2010 01:31 PM
Hello,
We are seeing problem while using NISCOPE to control a digitizer.
While trying to set some attributes for the device such as NISCOPE_ATTR_DATA_TRANSFER_BLOCK_SIZE we are running in to error stating “Attribute ID not recognized”.
Please find the details of the driver and the device below:
NISCOPE version: 3.4
Digitizer model: NI-5911
We are not sure what the error indicates. We referred to the NISCOPE documentation but did not find any note that stated that NI 5911 is not supported for that attribute.
Attached, please find the modified GenericGettingStarted.c (line number 49) file fordemonstration of the problem.
Thanks,
-Ankit
Solved! Go to Solution.
04-16-2010 03:22 PM
Hi Ankit,
That error indicates that you are calling an attribute that is not supported, whether because it is not compatible or it is not a real/valid attribute. Where did the value 1151036 come from? I think it may be 1150316 that corresponds to NISCOPE_ATTR_DATA_TRANSFER_BLOCK_SIZE (IVI_SPECIFIC_PUBLIC_ATTR_BASE + 316). Or, you may want to just insert the string rather than the integer value if you can, just to make sure. Hope this helps,
04-17-2010 12:26 AM
Hi Daniel,
Thank you for your prompt response. That tip sure helps.
Much appreciated.
You are correct in pointing out the wrong attribute ID.
We are in fact using the correct ID, however I made a typo in the code attachment.
Is there any document that you can point me to listing all the supported/unsupported attributes for a particular device?
Thanks,
-Ankit
04-19-2010 11:19 AM
Hi Ankit,
I must apologize for not catching it sooner and realizing the actual problem. The 5911 is a legacy device, and that particular property is not supported. Unfortunately, there is no list that will indicate if a particular property is supported for specific digitizer devices. In this case, the fact that the attribute is not recognized indicates that it is not supported. Generally, for newer devices that recognize the attribute ID but do not support it, a more specific error will be given to indicate that the requested attribute is invalid for the device. However, this device is a bit different (it is older and uses Traditional-DAQ) and so the attribue ID simply will not even be recognized for newer, unsupported attributes such as the one you are trying.
Best of luck,
04-19-2010 11:48 AM
Thanks a lot Daniel.
Your help is much appreciated.
Regards,
-Ankit