LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX (MintController): Error 1057 after linking with driver

Solved!
Go to solution

Hi, I'm relatively new to LabVIEW and have been trying to control a Baldor servo motor using ABB's Mint ActiveX controls. I pass a refnum from the ActiveX container to an invoke node called "SetMicroFlexE100Link" that sets up the connection to the Microflex e100 driver we're using. This works fine. Right after that, I send the same refnum to another invoke node to get the driver's relay status and the program throws an error (see attached image for block diagram and error message). According to this tutorial, what I have should be sufficient, so I'm confused as to why I am getting these errors.

Any ideas about what's going on would be greatly appreciated. Thanks!

Download All
0 Kudos
Message 1 of 7
(3,641 Views)

Why is your Openport set to false? Based on the manual, atleast in the textbased portion it only shows setting the port open to true. Have you already run the code in highlight execution to determine that the error actually occurs at the part that gets the driver relay status?

Andrew B.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 2 of 7
(3,601 Views)

Hi Andrew: sorry, OpenPort should have been set to true. It makes no difference, and I get the same error message regardless of the baudrate, port number, and node number I provide to the first invoke node, which makes me think it might be something with the way my device is exposed to LabVIEW.

0 Kudos
Message 3 of 7
(3,598 Views)

Have you attempted to communicate with the device in NI MAX? Have you installed any NI drivers?

Andrew B.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 4 of 7
(3,591 Views)

I don't believe these drivers are built to interact with NI-specific software outside of the provide ActiveX framework. They aren't exposed as normal serial (COM) ports and don't show up in NI MAX system searches.

Appreciate your help, Andrew - I was hoping I was missing something obvious on the LabVIEW side, but it looks like I need to do some more digging into communication protocols to fix this issue.

0 Kudos
Message 5 of 7
(3,588 Views)
Solution
Accepted by topic author critter23

I would start by installing the NI-VISA driver from ni.com/downloads.

Andrew B.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 6 of 7
(3,568 Views)

i am working in a project that to control the abb baldor derive. will you guide me sir.

0 Kudos
Message 7 of 7
(851 Views)