LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix Error1172 and Error1

I am working on AutoLab SDK(1.11.2) provided by Metrohm-Autolab to control my instrument(PGSTAT302) by Labview 2018, and there are some parts that I can’t make it working correctly.
 
Start from Autolab (Labview Project)
I have successfully  connected the instrument(PGSTAT302) to my computer and controlled  the cell on/off by Labview well.(connect.vi)
But every-time I try  to load a procedure ,the SubVI(Load Procedure.vi) part shows Error1172 first and then Error1.
0 Kudos
Message 1 of 4
(2,880 Views)

You should really attach your code instead of pictures, otherwise some people around here will get grumpy.

 

For your Error 1 - that invoke node is failing and thus the reference returned is probably invalid. So the " to more specific" call fails - you wouldn't get this unhandled error if you had following standard error handling practice and wired the error out of the invoke node and then into the more specific node ....

 

For your root cause (the .NET Exception) - its hard to say. It might be something simple such as checking that the filepath you are passing to the invoke method is correct and specifies the right type of file etc. The developer of that assembly did not do a great job of communicating errors appropriately to the caller.

 

0 Kudos
Message 2 of 4
(2,838 Views)

Thank you for your reply. And sorry for not attaching the code.
Here is the code that I use.
I wire the error out and then the error messages don't pop up.
But when I run the "Autolab Complete Example (A).vi" in project, the program is still stuck in the SubVI "Load Procedure.vi".

0 Kudos
Message 3 of 4
(2,816 Views)

OK, so you are running the example code provided with the LabVIEW API. At this point your best bet is to contact the supplier of the Autolab SDK since they will be best placed to help you. It doesn't appear to be a LabVIEW-specific issue.

0 Kudos
Message 4 of 4
(2,805 Views)