07-16-2009 03:05 AM
I need to use a queue to interface between 2 programs to send details of graph plots from one to the other. I can't find any examples on how to do this are there any out there that I could use?
Thanks,
Matt.
07-16-2009 03:31 AM
Matt,
queues can only be used in a single application. So if your "programs" are two different executables, queues will not meet your needs.
Possible mechanism in this case are:
- TCP or similar
- Shared variables (based on TCP)
- Files (not suggested for network)
hope this helps,
Norbert
07-16-2009 03:35 AM
Ok I've got it working with global variables but I came across the toruble that it wouldn't easily transferre between computers is there a way to combat this?
Thanks,
Matt.
07-16-2009 03:50 AM
Matt,
global variables are not capable to pass data between different applications as well. Due to other restriction, it is recommended not to use variables anyways....
If the data transfer should be possible between different PCs, you have to use network capable protocols.
Refer to TCP or Shared Variables (networkpublished) for this.
Another nice high level API for messaging is STM. Maybe you should go for this.
hope this helps,
Norbert
07-16-2009 04:03 AM
Hi Math,
I can't really help you out with this. But tell me something else have you worked out the other issue you were having in showing 1 VI or another? I found 1 example that might help if don't have that solved. Let me know if you want me to attach it.
07-16-2009 04:09 AM
Yes I did solve the first problem thanks for the help on that. I'll have a look at the TCP stuff.
Thanks,
Matt.
07-16-2009 04:12 AM
I'm not sure how the TCP protocol will help though because they're both running simultaneously on the same machine.
Thanks,
Matt.
07-16-2009 04:14 AM
Just to clarify when I mean tranferring between PC's I mean takign the VI on a pendrive and running it on another computer.
Thanks,
Matt.
07-16-2009 04:18 AM
Sure it will. Just open the Data Server and Data Client using the Example Finder (Networking >> TCP&UDP) and run it on your machine. You have to start the Server first...
hope this helps,
Norbert
07-16-2009 04:24 AM