LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous Input Handling

Hello

I do have the following problem and need a hint how to tackle it:

I have a set of measurement VI's which are embedded in a kind of control
structure. This control structure allows to react on user inputs and on
inputs which come from the measurement system (e.g. endswitches
connected through a DIO or an analog input card).
The problem now is, that the states of these inputs do not get polled
all the time which leads to a situation that certain buttons (user
input) are only active, if the control structure is in a certain state
(e.g. end of measurement, wait untill user opens testdevice which leads
to an open switch)
In the case of an Emergency button or endswitch (hardware) or an Exit
button on the screen it is necessar
y to react to these inputs
immediately without being in a certain state.
Is there a possibility to react to such inputs (like in a event driven
programming language such as Delphi) immediately?
How does a control structure have to be designed to have the possibility
to priorize such inputs (emergency inputs = immediate reaction, other
inputs = reaction after a "maschine cycle", least important inputs =
reaction if in a certain state)

Best Regards,
Justus
0 Kudos
Message 1 of 2
(2,466 Views)
You could have a while loop on your main diagram running parallel to your
main program and have your inputs going to globals there.

"Justus Bernold" wrote in message
news:3AC0A3D5.CD2648@cedes.com...
> Hello
>
> I do have the following problem and need a hint how to tackle it:
>
> I have a set of measurement VI's which are embedded in a kind of control
> structure. This control structure allows to react on user inputs and on
> inputs which come from the measurement system (e.g. endswitches
> connected through a DIO or an analog input card).
> The problem now is, that the states of these inputs do not get polled
> all the time which leads to a situation that certain buttons (user
> input) are only active, if the control structure is in a cert
ain state
> (e.g. end of measurement, wait untill user opens testdevice which leads
> to an open switch)
> In the case of an Emergency button or endswitch (hardware) or an Exit
> button on the screen it is necessary to react to these inputs
> immediately without being in a certain state.
> Is there a possibility to react to such inputs (like in a event driven
> programming language such as Delphi) immediately?
> How does a control structure have to be designed to have the possibility
> to priorize such inputs (emergency inputs = immediate reaction, other
> inputs = reaction after a "maschine cycle", least important inputs =
> reaction if in a certain state)
>
> Best Regards,
> Justus
0 Kudos
Message 2 of 2
(2,466 Views)