GXAO1642 Error Code "-23"
Greg S.
San Antonio, TX

Feb 9, 2021
1 Post

0  |  0  

Re: GXAO1642 Error Code "-23"

Hi, I'm using a GXAO1642 and when I run the self test command GxAOSelfTest(), it returns an error code of "-23".  There's no information in the user manual about error codes.  The GxAOSelfTest() is supposed to also return an array of results and a "string that summarizes  the results of the self-test" according to the user manual, but both the array and the string are empty after running this test.  The only result is "-23".
Thanks,
Greg Smith

Dale J.
La Verne, CA

Feb 9, 2021
20 Posts

0  |  0  

Re: GXAO1642 Error Code "-23"

Hi Greg,
Error codes are listed in the GxAoGetErrorString() function.  Error -23 is "Illegal board handle".  An empty array and self test string would be expected if you are not communicating with the DLL, but I think the real problem is that the GxAOSelfTest() function only applies to the GX1649 and GX1632 instruments.  The documentation is a bit vague on this, but if you read through the full function text for the self test, you'll only see the GX1649 and GX1632 referenced there.  Also, if you run the GxAo panel, and initialize a GX1642, the Self Test button is grayed out.

Regards,
Dale

Solution Available
DrATEasy (Ron Y.)
Mission Viejo, CA

Feb 9, 2021
334 Posts

1  |  0  

Re: GXAO1642 Error Code "-23"

You need to call GxAoInitialize() or GxAoInitializeVisa() prior calling GxAoSelfTest, Use the handle that you got from initialize and pass in to the selftest function.


Please Note
You need to have a M@GIC account to participate in the Forums.
Not yet registered on our website? Click here to register today!

All content, information and opinions presented on the Marvin Test Solutions User Forums are those of the authors of the posts and messages and not Marvin Test Solutions'. All attachments and files are downloaded at your own risk. [Read More]