LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiporcessing en labview- URGENT

je dois développer une interface maître qui contient plusieurs données. Ces dernières, je veux les utiliser dans d'autres interfaces esclaves, dont les entrées/sorties vont être communiquées de l'interface maître. je cherche à réaliser ça de façon que j'applique la notion de multiprocessing, c a d, les différentes interfaces peuvent être exécutées en mm temps et je peux aller de l'interface maître à l'interface esclave et vice-versa, sans que je reste bloqué dans une interface et je ne peux aller à l'autre que si j'arrête son exécution. Merci de m'aider c'est très urgent!
0 Kudos
Message 1 of 5
(2,446 Views)

Here's a translation:

 

I need to develop a master interface containing some data. I want to use this data in other slave interfaces, in which the inputs and outputs will be sent back to the master interface. I plan to implement this using a multi-processing method, that is, the different interfaces can run at the same time and I can switch from the master to slave interface and vice versa, without being stuck on one interface and unable to switch to another without first stopping the current one. Please help, this is very urgent!

 

It would help if you could provide more details. Have you started any work on this? Can you provide front panels showing the different interfaces, and how they relate, even if you do not yet have code behind them? There are lots of ways you could pass data around. Do you want the master to be the central storage for all the data, and the slave interfaces just provide different ways to access that data? Or, is each slave a separate device with its own data, and the master should query each slave for the data? Figure out what sort of model will suit your needs.

0 Kudos
Message 2 of 5
(2,428 Views)

thanks for your reply. Concerning the interaction between my master interface and slaves interfaces, i can say that what i want to develop is in reality a combination of your two suggestions.

In fact, in my master interface, i want to regroup all the data needs in  the whole program, to display it and then give the possibility to the user to manage with all of that data. But in reality, every part of that data will be given through slave interfaces. So, if the user want to intervene to manipulate that data, he will be forced to switch from the master interface to the slave interface without stopping the current one.

So, how can i do thiis please?

0 Kudos
Message 3 of 5
(2,402 Views)

Can you post some screen shots of your code to help give a better idea of what is happening in your code? 

 

Regards,

 

Shane C

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

Let me see if I understand correctly. The master interface is only for display of data. To make changes, you must use one of the slave interfaces. Are the slave interfaces are all independent of each other, or does some data overlap between the slaves? What is the interface for - a device, a file of data, etc?

 

I can think of several possible approaches, but the information you have provided is still too vague to provide a specific recommendation. No one is going to be able to give you working code for what you want; you will have to write it yourself based on your needs. One approach would be to make each interface a separate program, that accepts TCP connections from the master interface. The slaves would send data back to the master over this TCP link, either in response to a command from the master, or at regular time intervals, or whenever something changes (such as the user modifying a value). You could also do something similar with queues, if you want all of the interfaces to be contained within a single program.

0 Kudos
Message 5 of 5
(2,373 Views)