LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

General question: Looking for the best way to communicate between Main-VI and Sub-VIs

Hi there,
 
I´m asking about the best way to communicate between Main-VI an several Sub-VIs.
 
What is a good solution?
 
- Using notifier?
- Using queues?
- Using references?
- Using global variables?
- Or DataSocket?!
 
At the moment I´m creating a cluster to communicate between the VI´s and references to access them. But every reference allocates system memory, or am I wrong?
 
Thanx for discussion!!
 
 
0 Kudos
Message 1 of 5
(3,048 Views)

Are the sub-vi running concurrently (each in their own thread)?  Are you just sharing data or do events have to be synchronized? Is the data published (All readers and one writer) or it this a 2-way communication.  How big is the data, Large Clusters with dynamic sized arrays or a small flat structure.  Does the data have to be distributed over a network?  There are many considerations when picking the best method to distribute data throughout a system.  Some more detail will aid in the discussion.

 

Paul

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 5
(3,038 Views)

Sorry for missing infos. I just want to know some good solutions fo different scenarios!

A possible scenario might be this:

A main VI samples some data. After a specific time the pool of samples will be written to a database while the main VI still samples a new pool aof data.

The data is sent to another process (another PC, PLC or something), too.

 

The might be a Sample routine, a visualization routine, a storing routine and a routine wich handles the communication with the other PLC (or PC).  They all run in a own thread, the data has a flat structure.

 

This is just an "imaginary" scenario!

 

 

Sascha

 

 

 

 

 

0 Kudos
Message 3 of 5
(3,032 Views)

Hi all:

I have built a labVIEW program to interface with a controller using the Serial cable RS232. Now, I want to remotely use the front panel of this VI. My question is can I use Web publishing tool to remotely  work with the controller. I also have some text files that the VI uses and I have saved them at the server computer. Can I remotely make the controller function or do I need to use TCP communication? If, I can web publize and control the program remotely, will I need LabVIEW at the server computer to remotely work with its front panel, I know I need run-time engine at the client computer?   Hope my question is clear.

 

0 Kudos
Message 4 of 5
(2,991 Views)

Hi Dsurana,

You should probably start a new thread for your question.

You can also start by investigating (doing a search on) the web publishing features of LV, depending on the version that you have.
 
Ray
Message 5 of 5
(2,954 Views)