From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,353 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,313 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,310 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,303 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,300 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,280 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
(563 Views)