06-16-2017 03:03 PM
Ok, I have worked with the Null key and have gotten it so that the key is no longer null from the APIObject, which I changed to a control. I added a second node that I can hover over and see that it does have a key. However, the SetAPIReference still throws a null reference error. At this point, I am pursuing a different method of solving the problem, since all I need the API to do it send a TestStart event. I believe I can make a transducer that will read an LED of the Instron's control panel and just use that to trigger. I am still open to suggestions to get this to work via .NET.
Thanks for the help though.
Luke J
06-16-2017 09:19 PM
Give us new screenshot?
06-19-2017 08:58 AM
Here you go. As far as I can tell, both have the same key, which I am not sure matters. Anyways, when I run it, it still throws the "Key cannot be null" error.
Luke J
06-19-2017 10:19 AM
You might have to use a constructor.
06-20-2017 08:59 AM
Ok, I added the constructor for BluehillAPI, which needs a System.Object Argument, so, I constructed that too. It still throws an error, but I haven't seen this one before, which is exciting.
06-22-2017 10:10 AM
Hello,
I am linking an NI Forum post that discusses this in a bit more detail. Are you encountering this error in development mode or in an executable?
https://forums.ni.com/t5/LabVIEW/NET-Control-Error-1172-Only-in-executable/td-p/2497534
Regards,
Shezaan Noorani
06-22-2017 05:53 PM
Is there any other constructor available?
Is there any examples available in other programming language?
06-23-2017 09:04 AM
That is the only constructor available for the BluehillAPI.
There are some examples in C#, which I can open, but I am hesitant to post them online due to this heading:
//-----------------------------------------------------------------------------
// Property of Instron Corporation
// Source Code is Confidential
// Copyright (c) Instron Corporation 2010
//-----------------------------------------------------------------------------
In theory, I can change the BluehillSkin.dll to be strong named, but I haven't tired it yet.
Thanks
Luke J
06-23-2017 05:23 PM
There are many constructors available in the assembly: