LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

realtime information

Hi, i'm making a program with as target to control a machine (autoclave). The data i send, i want to control by comparing the data i send (input) with the data i receive (output)(this a dummy program). I make this comparation with a graphic that both signals visible make. The problem is that the comparason occurs at the end of the traject, and not realtime. I want to ask you how it is posible to make a realtime comparison? I send you my dummy program so you canunderstand me better. Thanks!
0 Kudos
Message 1 of 2
(2,648 Views)
Hi, I took a look at your program, but the code is not very clear. I guess with input and output in you mean the AI one point and AO one point function calls. However they are running in parallel, so you cannot say which one goes first and which one goes second. You can use a sequence structure to make sure they run in the correct sequence. (now the AI one point can happen after the AO one point; place a sequence in the while loop and put the AI one point in the first frame). You can put your X-Y graph inside the while loop if you want to view the results on the fly. With realtime I suppose you mean, while gathering data and controlling the process you want to do a comparison. You can do the calculation inside your while loop.

Best regards,
ErikvH
Appli
cations Engineering
National Instruments
Message 2 of 2
(2,648 Views)