LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use data in productor obtained in the consumer

Hello everybody, I am doing my final degree proyect and I have a doubt doing it. I have to create 2signals in order to comando a valve and acquire an other one that comes from a preassure sensor. I have to substract the signal of the preassure sensor from one of the other I create and operate in a block. I have done this with a Productor/Consumer archytecture and it works in terms that at the final of the block I obtain the values I want to get, but the real case implies that this current value must be added to one of the simulated signals and the pass to the BNC2120. I attach one picture of the structure below.

 

I have tried to get out the DAQmx from the first while and make a "second consumer", but it does not work properly (in fact it stops because of an error). Then I have tried to use a global variable (the most easy solution) but it works only with the first value the global variable had in the first iteration; I have use wait structures to try if with more time the global variable updates itself but does not fit. Other "solution" I have tried is make this activity in a State Machine but has the same problem of the "second consumer".

 

I any of you have an idea of how can I continue, please tell me, I will be very greatful.

Below are the structure and a picture of the VI.

 

Thank you very much.

Sinceresly,

Miguel.

Download All
0 Kudos
Message 1 of 2
(2,329 Views)

Do not worry about this topic, I have obtained the result by myself, it can be done with global variables. The error was in the initialization of some of the variables involved.

Thank you any way and forgive me for the disturbance.

Sinceresly,

Miguel.

0 Kudos
Message 2 of 2
(2,317 Views)