LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I run my VI.exe stand-alone when I can run it from LabView

I made a pretty simple VI in LabView (7.1 on WindowsXP) that uses the NI USB-6009 multifunction I/O device to display 4 AI channels to read voltage (simulate a 4X digital multimeter).
 
The VI works fine from LabView, but when I built the stand-alone application with the Tools menu feature, it won't run.  I get the following error:
VISA: (BFFF000E) Given session or object reference is invalid.
 
Any idea what would cause this?  Under Support Files, I only select the single VI (which is included in an .llb file).  Should I be including additional VI's or support files?
 
Thanks for any input provided.
 
Alicia.
 
0 Kudos
Message 1 of 5
(3,470 Views)
Hi!

Just a guess: I got a similar error message, when I (accidentally) tried to use a VISA function with a device ID outside the range of VISA devices found. E.g. when controlling 4 step motors, valid indices are from 0..3. Using 4 as index gives an error.

HTH,
Felix
0 Kudos
Message 2 of 5
(3,454 Views)
Do you get the error on the pc where you originally developed it or on a new pc? If it's a new pc, make sure you install NI-DAQmx and VISA.
0 Kudos
Message 3 of 5
(3,449 Views)

There are a couple things I'd like to point out.  It looks like you might be using NI-DAQmx Base to program your USB-6009.  If so, you should consider moving to NI-DAQmx.  The USB-600x devices were supported by NI-DAQmx beginning with version 7.5, and you can download the most recent version here.  On the download page, there is also a utility that will convert your existing NI-DAQmx Base programs to use NI-DAQmx.  If for some reason, you can not switch to NI-DAQmx, there are a couple caveats with executables and NI-DAQmx Base.  Check out these two KBs, here and here.  I believe the first linked KB is exactly your problem.  Hope this helps.
-Alan A.

Message 4 of 5
(3,421 Views)

That was it (the first link)!!  Thank you!

I will definitely keep in mind the other KB.

Alicia.

 

0 Kudos
Message 5 of 5
(3,410 Views)