NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
AnkitG
Posts: 68
0 Kudos
Accepted Solution

Executable work on one latop but not on other

Hi All,

 

I have a labview project in which the main programm calls the second program, I use shared variable to share information between these programs and made an executable, the problem I am facing is that execuatble works on the machine where it is made but on another machine. Is there any problem using shared variables in executables.? please let me know.

 

Thanks,

 

Ankit

Active Participant
MoReese
Posts: 780
0 Kudos

Re: Executable work on one latop but not on other

I'll ask the obvious question first:  Did you install the RTE (run-time engine) on the other laptop in question?  This must be installed to run LV .exe files.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Member
AnkitG
Posts: 68
0 Kudos

Re: Executable work on one latop but not on other

Hi,

 

Yes, RTE is installed with all the drivers related to project is also installed.

Active Participant
MoReese
Posts: 780
0 Kudos

Re: Executable work on one latop but not on other

Please be a bit more specific.  What do the programs do?  Are they sharing any other information, files, etc.?  Are they just windows apps or are you using any hardware?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Member
AnkitG
Posts: 68
0 Kudos

Re: Executable work on one latop but not on other

Hi Reese,

 

My main program is a data acquistion program, it take scans of a signal, the other program displays the progress of those scans as an progress bar, I am using shared variable to shared the number of scan in other program.both programs are two executables.

Active Participant
ben64
Posts: 584
0 Kudos

Re: Executable work on one latop but not on other

What do you mean by do not work? Not running at all or not getting the expected results? Are you using relative paths? Did you include the shared variables in the build?

 

Ben64

Member
AnkitG
Posts: 68
0 Kudos

Re: Executable work on one latop but not on other

Hi ,

 

I am using the correct path, also the shared variables( Network-published) are included in the build. The executable works on the machine its built on but not on other machine (works mean seeing the progress bar updated after every scan).

Active Participant
MoReese
Posts: 780
0 Kudos

Re: Executable work on one latop but not on other

Why use a shared variable?  Can't you combine the functionality of both .exe into one?  What type of archetecture are you using in your main program?

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
Member
AnkitG
Posts: 68
0 Kudos

Re: Executable work on one latop but not on other

Hi Reese,

 

I need two executable as they need to appear in two diferent monitor. The main program appears on the primary monitor, and second progress bar progress program appears on the second monitor usually for other people to see the progress of the program.The Main program is a big while loop.

Active Participant
ben64
Posts: 584
0 Kudos

Re: Executable work on one latop but not on other

Did you also install the .aliases files with your executables? I think they give indication on the location of the shared variables.

 

Ben64

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page