01-16-2013 08:55 AM
Hi,
On my main VI, I use shared variables published on network. When I launch the VI from the labview project the variables are well deployed and everything work fine whether or not the PC is physically connected to the network. I built an executable and I checked the box to deploy my variables at run time. However it works fine only when the PC is physically connected to the network! The variable are properly deployed in any cases however when the PC is not connected to the network an error occurs on the executables when it tries to read or write any variable.
Does anybody have an idea how to solve this?
Some precisions:
The application runs on a single computer, I just use Shared variables instead of global variables because in the future I want to be able to control my application remotely.
Thank you for your help.
Boris
01-18-2013 04:06 AM
Hello,
I will try to assist you with your issue.
First, I made a sipmle VI with shared variables, it works with or without the network. Then I created an executable (I try with and without cheking the box to deploy my variables at run time), it works well with or without the network.
So maybe, you can make a trial with a more simple VI on your computer.
You wrote :
"an error occurs"
Can you make a screenshot of your error please? what is the number if there is one?
Find a link below about this subject,
How do I deploy Network Network Shared Variables from a Compiled Executable?
http://digital.ni.com/public.nsf/websearch/04D9A85B6967EE87862571140065EEC6?OpenDocument
Regards,
MatthieuR
Matthieu RICORD
National Instruments France
Été de LabVIEW 2014
12 présentations en ligne, du 30 juin au 18 juillet