01-27-2012 09:27 AM
I have written a testing app for integration with a Solartron 1260 and 1287. The problem is that I used some global variables to maintain some display features on the main panel. The problem is that it works fine in the Labview 8.6.1 development environment, but does not work when I run the compiled executable in the runtime?
I'm sure that I am just missing something but cannot figure out what it is.
All my psp led lights stay red in the runtime and green in the development environment.
Thanks
01-27-2012 09:32 AM
Attached are the pics of the development and the runtime respectively, the runtime led's for the psp variables are red, but the development is green.
I initialize all my variables @ the beginning?
Thanks
01-27-2012 09:36 AM
Sounds like a race condition. You have to be really careful when using Globals. They are slow and can easily give you a chase or race condition.
Without seeing your code I would have to guess this.
01-27-2012 09:49 AM
Looks like when I mouse over the psp led, it says 0x0000002A error connecting to my computer .....
The message flickers so fast I can't tell what it's saying.
01-27-2012 10:25 AM
Attached is my installed software out of MAX, is there anything that I need to do to specify which runtime to use?
01-27-2012 10:33 AM
Strange how Run-Time 2009 SP1 is listed in MAX, but you cannot uninstall it and is not listed in the National In National Insturments Software configuration screen?
01-27-2012
10:37 AM
- last edited on
05-20-2024
07:09 PM
by
Content Cleaner
It looks like you are talking about shared variables and not global variables. Those are two completely different things. Here is something from the help for shared variables.
If you plan to distribute a stand-alone application that uses shared variables, do not include the .lvlib file in an LLB or in the executable. Use the Source File Settings page of the Application Properties dialog box to change the Destination of the .lvlib file to a destination outside the executable or LLB. You can deploy the shared variables in two ways:
If you plan to distribute a shared library that uses shared variables, do not include the .lvlib file in the shared library. Use the Source File Settings page of the Shared Library Properties dialog box to change the Destination of the .lvlib file to a destination outside the shared library.
01-27-2012 11:58 AM
Ok, on the previous project that I did this to they had the full Labview installed and I did not have to do this with the Runtime?
I modified the build specifications to put it in the support directory. But I cannot seem to be able to call load/deploy the variables @ startup from the main vi.
I tried the createoraddlibrarytopoject.vi but still seems to be a nogo. I attached how I am attmpting to add it
Thanks for your help.
01-27-2012 03:37 PM
Can the runtime environment create shared variables?
01-30-2012 01:57 PM
tartar813,
Are you creating before build? or are you actually trying to create the variable in runtime? It is my understanding that the runtime environment can't "create" variable. If the variable is created on your development machine in the code before you distrubute it can create a referent to it in runtime.
-Peter