LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to differentiate the data in Event handling loop for different objects?

 

 
 

I am try to create the public vis for customer? Which is nothing but just take information from user. Information we will be like Experiment name, Start button, stop button, graph.

Here the experiment vi image. Depending on the user activity event structure will enqueue some data. If User want to create another experiment then they can create another same structure like below pic, and connect both experiments with same queue(red wire).  

 

Capture.PNG




1. how can differentiate the event for different experiments?
I would like to identify the start button is pressed from Experiment 1 or Experiment 2 in event handling loop.

I would like to represent received on graph(each experiment has single graph). 


2. Whenever event handling loop will receive raw data from device. What is good way to transfer experiment 1 data in Experiment 1 loop and Experiment 2 data in Experiment 2 loop?

should I use to another queue or notifies or anything else?


0 Kudos
Message 1 of 4
(1,195 Views)

Pictures are not very useful Please attach the Vi instead. Thanks.

 

(Your red wire is not a queue. What is the mechanical action of your booleans? etc.)

 

0 Kudos
Message 2 of 4
(1,168 Views)

Here I attached the vis with example. (below snap from Main.vi file). 

 

Capture.PNG

It has two experiment, Experiment 1 and Experiment 2 (which will create by customer). The code for MainLoop and  UserEvenetDetector are crated by me.
 
User should be create as many as experiments they wants. They just need to connect Red wire of UserEventDetector.vi

I would like to differentiate the commend of experiment in Mainloop. If user send start command from Experiment 1 then I need to identify in Main loop. Start Commend came from experiment 1.

second things, I will received raw data in Mainloop from one of the queue(which I am not showing in Main.vi). raw data will interpret in  Main loop. If the raw data is for Experiment 1 then I need to report back to Experiment 1.
should I need to use for report back? another Queue or notifies or anything else?  

0 Kudos
Message 3 of 4
(1,137 Views)

any one has idea which is good way to report data back to experiment?

0 Kudos
Message 4 of 4
(1,097 Views)