07-02-2008 07:07 AM
07-02-2008 07:18 AM
The typical answer is that the "other" program would have to be written in Labview.
I've never tried to access LV Global Variables using some other language, so I do not know if it is impossible... anything is possible, you just have to find the way.
If both programs are in Labview, then yes, you can share acess to the Global Variable. You will have to be careful about how they acess the information (ie: are both allowed to read and write to it?). It is to avoid a race condition.
RayR
07-02-2008 07:23 AM
Thank you very much for your quick reply,
Both programs will be writen in LabVIEW.
Do you have tips to avoid race-conditions?
Just to make absolutely sure, this still works when you use the application builder to make *.exe of both programms so that they are essential 2 seperate programs?
07-02-2008 07:33 AM
07-02-2008 07:56 AM
there's another thread? 😮
😉
07-02-2008 09:33 AM
I'm sorry to ask this a second time...
I looked into TCP/IP and the Server VI.
By TCP/IP I don't like the fact that you have to change the network settings on every pc you install the programs, that will give a lot of problems and I don't think it is a clean solution, because TCP/IP is for networking, not for communicating between software on the same pc. Please proof me when I'm wrong because I'm really stuck on this subject.
At Server Vi, I do not really get this one. It looks like it does the same as if you put the VI on the blockpanel and open it as a sub-VI. Also I always have to select the path of the VI to make a refnum, but I do not have a path or VI, because my target is a compiled labView program (*.exe). The other thing is that I can only sent data to the sub-vi once, opening it in the process, but I want to do it continuesly.
Please help my 😞
Maybe you guys have an easy example.
Thx you for you time 🙂
07-02-2008 09:58 AM
Yes, and the requirements were quite vague in the other one as well.
@JoeLabView wrote:
there's another thread?
07-02-2008 10:28 AM
I have been trying to do a similar thing. Shared variables work pretty easily...I have them working well between two machines by following the shared variable concepts serach materials ....(in project explorer, add new library, then add new variable, then click help on the variable panel...) but deploying them requires following the directions about deploying libraries pretty closely.
If you are using the Project expolorer...you can put both vi's in the project...open a library (new library)...then add a shared variable (new variable). When you define the variable (which you do in the new variable process) you can make it whatever name and type you need, and then you would pick the publish to the network (if your vi's are going to be running on two different computers)...or single-Process (if the vi's using the variable will be on the same computer).
I built a little example project but will have to send all the part in sections since you can only publish 3 attachments per page.
Hope it helps.
The Hummer.
07-02-2008 10:32 AM
Next installment of the project.
.... the attachment feature does not allow the sending of attachments with the extensions included in the project...someone at LabView ought to look at that...I would like to send an entire project....but can't because some of the extensions on some of the project files are not allowed as attachemnts.
Hope the explanation is enough.
I'm using 8.5 Pro Dev
07-02-2008 10:39 AM - edited 07-02-2008 10:40 AM