LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Queue Help

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.

0 Kudos
Message 1 of 11
(3,633 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 11
(3,622 Views)

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.

0 Kudos
Message 3 of 11
(3,619 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 11
(3,610 Views)

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.

 

 

TN
Currently using LV 8.5
logo
0 Kudos
Message 5 of 11
(3,603 Views)

Yes I did solve the first problem thanks for the help on that. I'll have a look at the TCP stuff.

 

Thanks,

Matt.

0 Kudos
Message 6 of 11
(3,597 Views)

I'm not sure how the TCP protocol will help though because they're both running simultaneously on the same machine.

 

Thanks,

Matt.

0 Kudos
Message 7 of 11
(3,595 Views)

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.

0 Kudos
Message 8 of 11
(3,591 Views)

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 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 9 of 11
(3,578 Views)
So, what you want is to run your VI in another computer? If it's that, why don't you install LV on it, instead of going through configuring a server, etc..
TN
Currently using LV 8.5
logo
0 Kudos
Message 10 of 11
(3,574 Views)