Hi Torge,
Torge Szczepanek wrote:
> One big while loop with one button for ending the program
> Within this while loop I have two main tasks:
>
> 1. Data acquistions in a Sub-Vi, using calls to a DLL Library (ADS DLL from
> Beckhoff Industry electronics to access profibus devices). The Sub-Vi writes
> the data to a hidden display element (cluster).
> 2. Display of this data. A button is associated with a Sub-Vi whichs pops up
> a new dialog. The Display SubVi is connected to the display element
> (cluster).
As to 2 of above, do you connect a logical signal from a button
to a case structure involving a sub-Vi to pop up a new dialog ?
Only to make sure, not offense meaning.
> The current status is, that after one cycle of data acquisition (about 2
> seconds). data is updated in the display.
>
> I am also able to take a deeper look into the data by pressing the button,
> which then pops up a dialog and displays a more specific view of the data.
>
> Now my two main problems:
>
> 1. After pressing the button for the pop-up dialog it takes up to two
> seconds before the dialog pops up (this is no wonder, because the Sub-Vi for
> Data acquisition must have finished before)
> 2. In the dialog I see the data, which was taken before the dialog popped
> up. When I am looking at the dialog no data ist updated (this is also clear,
> because the only Vi which is executed is the Sub Vi of my dialog)
I think of a simple way using attribute node instead of
subVi to pop up. Please take copies of the cluster on the
display subVi and parts of data processing on the diagram,
then paste on the main Vi's front panel and diagram.
In the diagram, if right click on the pasted cluster value,
you will be able to look at attribute node, involving variable
attributions of the value. And then, please select a mode
of "Visible" and connect the logical signal from the button.
Please do as same for the display data on the main Vi with
only one difference that the connected logical signal is
contradicted.
You will look at a more specific data instead of a main
data by pushing a button. If you would like to look at
both simultaneously, such a simple way will be mean less(-;)
Hopefully, my description might be a referential knowledge,
any way.
Thanks,
Tom