LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket

Hi
I want read some shared variable (boolean tipe) with Datasocket, see my VI attached...
If I run the VI with Highlight Execution it works for  the most part of the shared variable that is reading and give just sometime the error at the block "convert variant to data" ,
if I run in normaly mode it give me always the error.
I developed this block how many example explain, what I wrong?
Thanks 
Download All
0 Kudos
Message 1 of 8
(3,144 Views)
Hi enzo78,
are you sure you receive boolean data? There is an OpenG vi, with which you can check the type.
Hope it helps.
 
Mike


Message Edited by MikeS81 on 06-20-2008 11:51 AM
0 Kudos
Message 2 of 8
(3,139 Views)

Where can I find this OpenG?

 

0 Kudos
Message 3 of 8
(3,136 Views)
Hi enzo78,
here is the link to the package: http://wiki.openg.org/Oglib_lvdata
Mike
0 Kudos
Message 4 of 8
(3,126 Views)


@enzo78 wrote:

Where can I find this OpenG?



As Mike mentioned, you want the lvdata library.  This is the specific VI that you want:

Get TDEnum from Data




Message Edited by Jim Kring on 06-20-2008 04:55 AM
Message 5 of 8
(3,115 Views)

Hi

first of all, thanks for the help.

I haven`t in my library that block, I can`t find it, but I put an indicator on that variant and it give me this output:

FALSE

5 Attribute(s):
   'OdcFlags' -> 7
   'Quality' -> 0
   'Status' -> 0
   'TimeHigh' -> 29938356
   'TimeLow' -> 2686954624

What means? Can it be helpfull?

Thanks

 

0 Kudos
Message 6 of 8
(3,104 Views)
Hi enzo78,
i think it is a cluster, so that´s why you get the error, you can´t convert cluster to boolean.
Mike
0 Kudos
Message 7 of 8
(3,102 Views)


@enzo78 wrote:

Hi

first of all, thanks for the help.

I haven`t in my library that block, I can`t find it, but I put an indicator on that variant and it give me this output:

FALSE

5 Attribute(s):
   'OdcFlags' -> 7
   'Quality' -> 0
   'Status' -> 0
   'TimeHigh' -> 29938356
   'TimeLow' -> 2686954624

What means? Can it be helpfull?

Thanks


> I haven`t in my library that block, I can`t find it,

You need to install OpenG in order to find this VI:

FAQ: How to Install OpenG libraries onto LabVIEW?
0 Kudos
Message 8 of 8
(3,097 Views)