LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Type Casting bit array

I store a set of booleans as a bit-array tag to insure that they are not being
updated while a vi makes multiple read tag requests. The booleans start in a
strict type def control, converted to an array, and written to the tag. When I
read the tag I want to be able to apply the same strict type def structuring to
allow use of the unbundle-by-name function. So far the olny way I have been
able to do this is to add the strict type def control to all vi's that read the
tag. The controls are used only as a type reference. Is there a way to prevent
having unused controls? Can type information be accessed without having an
"example" control on the front panel?

Randall Miller
0 Kudos
Message 1 of 3
(2,520 Views)
Put the control in a global VI or on the output connector pane of a "do
nothing" VI.
You acces the type with a reference to the global or calling the VI.

Jean-Pierre Drolet


----- Message d'origine -----
De : Randall Miller
Groupes de discussion : comp.lang.labview
Envoyé : 24 mars, 2000 09:28
Objet : Type Casting bit array


> I store a set of booleans as a bit-array tag to insure that they are not
being
> updated while a vi makes multiple read tag requests. The booleans start in
a
> strict type def control, converted to an array, and written to the tag.
When I
> read the tag I want to be able to apply the same strict type def
structuring to
> allow use of the unbundle-by-name function. So far the olny way I have
been
> able to do
this is to add the strict type def control to all vi's that
read the
> tag. The controls are used only as a type reference. Is there a way to
prevent
> having unused controls? Can type information be accessed without having an
> "example" control on the front panel?
>
> Randall Miller
0 Kudos
Message 2 of 3
(2,520 Views)
I was out of my mind...

Just put a constant on the diagram that is linked to the strinct typedef....
Use the Select a VI... dialog on the function palette and select your
typedef.
It will create a constant on the diagram that is linked to the typedef

Jean-Pierre Drolet


Jean-Pierre Drolet a écrit dans le message :
38db8767@newsgroups.ni.com...
> Put the control in a global VI or on the output connector pane of a "do
> nothing" VI.
> You acces the type with a reference to the global or calling the VI.
>
> Jean-Pierre Drolet
>
>
> ----- Message d'origine -----
> De : Randall Miller
> Groupes de discussion : comp.lang.labview
> Envoyé : 24 mars, 2000 09:28
> Objet : Type Casting bit array
>
>
> > I st
ore a set of booleans as a bit-array tag to insure that they are not
> being
> > updated while a vi makes multiple read tag requests. The booleans start
in
> a
> > strict type def control, converted to an array, and written to the tag.
> When I
> > read the tag I want to be able to apply the same strict type def
> structuring to
> > allow use of the unbundle-by-name function. So far the olny way I have
> been
> > able to do this is to add the strict type def control to all vi's that
> read the
> > tag. The controls are used only as a type reference. Is there a way to
> prevent
> > having unused controls? Can type information be accessed without having
an
> > "example" control on the front panel?
> >
> > Randall Miller
>
>
>
0 Kudos
Message 3 of 3
(2,520 Views)