10-06-2011 12:47 PM
The enclosed VI will build and execute but it can't seem to read global variables. Another program that writes to these globals is running at the same time.
When I run both programs in develop mode everything is fine.
Any ideas?
Thanks,
Mark
10-06-2011 12:51 PM
You, of course, cannot share global variables between two different exe's. They each run in their own application instance. There are many different approaches to share communication between applications. See this.
10-06-2011 01:06 PM
Thanks for the answer. I'm not happy though.
The reason I had to separate the routines is because LabVIEW won't let me open and close subvi windows in an executable. Something to do with security issues.
I'll read up on the information you pointed me to.
Thanks for saving me time.
10-06-2011 01:17 PM
@Mark Levine wrote:
Thanks for the answer. I'm not happy though.
Well, the universe displeases a lot of people. It doesn't seem to care too much about us though, as it cheerily goes on its merry way to a nice Big Chill end. I hope it's happy when it gets there.
The reason I had to separate the routines is because LabVIEW won't let me open and close subvi windows in an executable. Something to do with security issues.
Can you provide more details on what you are specifically trying to do? Are you talking about problem when getting a reference to an executable?
10-06-2011 02:00 PM
Never mind.
I've included the subVI in the main program so I don't have to worry about passing globals.
Then I changed the subVI properties to open the front panel when called. When I did that the executable was able to open and close the subVIs under program control.