LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ajuda com múltiplas tarefas

Bom dia, Boa tarde e Boa noite

Gostaria de um auxilio com meu programa, a ideia principal é entrar numa condição quando estiver uma determinada temperatura, realizando dentro dessas condições o controle de tensão e corrente do circuito dentro do LV, através de um DAQ uma fonte e uma carga (Já baixei os softwares necessários).

Meu maior problema está sendo na execução dos dados, eu achei que seria possível fazer uma comparação simultânea e amostragem dos dados para entrar nos while de controle de V e I, mas isso não foi possível, acredito que seja o LV que não realiza varias funções ao mesmo tempo (achismo de uma leiga) vou deixar meu code fixado, caso alguém consiga me dar um norte do que realizar, desde ja agradeço. 

0 Kudos
Message 1 of 2
(1,232 Views)

Hi peron,

 


@Peronpamela wrote:

I would like some help with my program, the main idea is to enter a condition when it is a certain temperature, performing within these conditions the control of voltage and current of the circuit inside the LV, through a DAQ, a source and a load (I already downloaded the required software).

My biggest problem is in the execution of the data, I thought it would be possible to do a simultaneous comparison and sampling of the data to enter the control whiles of V and I, but that was not possible, I believe that it is the LV that does not perform several functions at the same time (a layman's guess) I'll leave my code fixed, in case anyone can give me a north of what to do, I thank you in advance.


Your biggest problem is to "THINK DATAFLOW!".

LabVIEW can easily execute several things in parallel, but you  need to program with parallel execution in mind!

 

Right now there is no parallel execution as you have lots of data dependencies in your code. Btw. using sequences (nearly) never solves any executions problems…

 

On your VI:

  • Why do you need two local variables of "Temp (C)"? Why not use wire instead?
  • Why do you need to compare for ">=23" two times? Do you expect different results for the same wire?
  • Which result do you expect when you wire a boolean stop condition from outside into those while loops? (THINK DATAFLOW!)
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(1,195 Views)