LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi working perfectly but .exe showing error

Hello.

i wrote a vi and it is working perfectly but when i build an exe file it is showing an error. I am using labview 7.1 with an NI-USB 6008 device.

The error reads:

Error - 1073807346 occurred at an unidentified location.

Possible reason(s): Given session or object reference is invalid.

Can anyone help, and give me some possible solutions. I have posted the vi if you need to have a look.
0 Kudos
Message 1 of 7
(3,132 Views)
Hi!
Go through link below.

http://digital.ni.com/public.nsf/websearch/4455bfe9b804daae86256cfe0078402e

Kaustubh
VC (Pune)
INDIA
0 Kudos
Message 2 of 7
(3,121 Views)
Hi Paul,

Does the file run as an exe on the computer you made it on, and then not run on a separate computer. If it is doing this then it is almost certainly because you haven't got all the drivers or run time engines installed that you need.

If it doesn't run on the computer that you made the code on originally then there could be something more difficult to solve wrong. If this is the case then please feel free to get back to me.

Best regards,

Peter H.
Applications Engineer.
NIUK.
0 Kudos
Message 3 of 7
(3,091 Views)
Hi

Well i have installed all the updates and drivers and runtime engines and it still is not working so i dont know what is wrong.
0 Kudos
Message 4 of 7
(3,076 Views)
On the pc where you are trying to install the exe, open MAX and verify that all of the drivers are installed and that all devices are identified. A VISA resource name on the new pc does not exist. If you are using an alias, that could be the problem.

Also, your VI is a mess to read. You have wires going every which way. Some are going underneath objects and structures. Front panel controls are hidden behind other objects. This list is almost endless. There is a shipping document called LabVIEW Development Guidelines. It includes a style guide. I would recomend you read this. Months down the road when you or someone else has to maintain this program, it will be next to impossible as it is right now.
0 Kudos
Message 5 of 7
(3,066 Views)
Yeah i know its a mess but i was having trouble with the NI-USB so i ripped apart another program that was working with it and changed it around to what i needed. Thanks for the info ill get back to you and tell you if it worked or not.
0 Kudos
Message 6 of 7
(3,054 Views)
Hello, can someone Help me?

I have a USB-9211 DAQmxBase and when I´m building an application exe this error appears:

"error 1003 ocurred in c:\...app\internall.llb\DAQmxBase Start Task 92xx.vi
Possible reasons : The vi is not executable".

I have tried to build an exe with another vi (an LabView example) that not uses any ports like USB, serial or paralell and it work fine! Any way, I have also tried to build an exe with an LabView7.1 vi example suplyied by USB-9211 DAQ and the same error appears.

I would be gratefull if someone awser!
By
0 Kudos
Message 7 of 7
(3,021 Views)