LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building executable with ActiveX class

In my application I am using drivers for Sorensen XG 300-5. I got drivers from their website.

The driver using ActiveX class to send command to supply.

It works as expected in development software. However, when I create exe file I get an error that Class not registred ( see atachment).

I even made simple app just to talk to power supply. Again, works fine in development, but when in exe I get unknown error.

I even run exe from the project.

 

What are special rules apply when create exe with  Acrefences?

I never had tobuild software before with class

I also attached 

Thank you 

0 Kudos
Message 1 of 4
(2,910 Views)

Is there anything in your code (which we cannot view as you failed to attach it) that will force the driver into memory?  Note that when you build an Executable, everything that is needed to run the program must either be "discoverable" at Run Time (such as the LabVIEW Run Time Engine) or explicitly linked in by the VIs and libraries specified in Source Files within the Build.

 

Bob Schor

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

Sorry. NI did not let me to add code.Too large.

Here I added simple code that has power supply driver. It gives unknown error when run as exe.

The full library for power supply located here:

http://www.programmablepower.com/dc-power-supply/XG/Downloads.htm

 

 

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

@Rus_K wrote:

Sorry. NI did not let me to add code.Too large.

 

 


If you need to upload multiple VIs, put them all in the same folder, compress the folder, and attach the resulting .zip file (this gets you past the 3 VI limit).

 

Do the manuals from the Manufacturer provide any help?  Do any of them discuss the LabVIEW modules?  The little code that you provided is missing so many pieces that it is almost impossible to guess which are from the manufacturer, which are yours, and where the Drivers are being called.

 

Bob Schor

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