Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

Why an error raises when I built the application for my interfacing program?

I have been writing a code in Python using the NI VISA C library to interface with a function generator connected to a Mac computer via USB. My source code works well (can connects and control the generator) but as soon as I try to build the application, the stand-alone program raises an error which is "Unknown system error (miscellaneous error)" and points at the line where it occurs. It seems that the function viOpenDefaultRM(), which is supposed to get the ressource manager handle, doesn't execute properly.
How come the source code works, but not the built application?

Thank you.

0 Kudos
Message 1 of 6
(7,718 Views)
Hello houcin,

Are you getting this error on your target machine?  If so, have you installed NI-VISA on the target machine?  You need to have NI-VISA installed on the target machine to use an executable on that target machine.  If you do have NI-VISA installed, what version are you using?

Thanks!

Meghan
Applications Engineer
0 Kudos
Message 2 of 6
(7,695 Views)

Yes NI VISA is installed and the version is 4.0.1. I use the same computer to run the unpackaged program and the application.

 

 

0 Kudos
Message 3 of 6
(7,689 Views)
Hello houcin,

Can you get the application to work on the development machine or do you always get the error?  Is there an error code related to this error?  What are the differences between the development machine and the target?  What drivers do you have installed and what versions?

Thanks!

Meghan
Applications Engineer
0 Kudos
Message 4 of 6
(7,674 Views)
So far I have been doing everything on the development machine. So I cannot get the application work on the development machine. The erro code associated to the error message is: -1073807360.
I'm not quite sure about the drivers that are installed on the computer. I know that my coworker has been doing the same thing as me on this computer: he has interfaced a camera and built an application, which works.
Is there any specific drivers to install, that would be required to get an application work, but not required by the unbuilt program? Basically what should I check as installed drivers?

Thank you
Houssine

0 Kudos
Message 5 of 6
(7,670 Views)

Hello Houssine,

If you're using your executable on your development machine, then drivers shouldn't be an issue, they will already be installed on that machine.  Specifically, you need to have any driver that you use in the executable installed on any machine that you run the executable on.  I'd like you to test your executable on another machine, that does not have a LabVIEW Development installed.  You'll need to install the Runtime Engine and NI-VISA, and you can do that by creating a custom installer. Also, this tutorial details Distributing Applications and may be helpful. 

Thanks,

Meghan
Applications Engineer

 
0 Kudos
Message 6 of 6
(7,655 Views)