LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

OPC-Boolean

hallo,
i want to learn, how i can demonstrate the values, which i get them from OPC server, in Boolean form.
i mean, form Opc, i get "0" and "1", and i want to put a swicht, which shows the value of Data.(for example, when it is 0, it must be off,and when it is 1, it must be On )
i can do it, with "Nummer to Boolean Array", as you see, it is an Array format.
i want to do this in a simply way. with a Data Socket... but with Boolean it is impossible...(for me, now :((
i need your helps..
thanks
0 Kudos
Message 1 of 8
(4,145 Views)

Hi hakan_s

Up to know I've got three test rigs running, where I access a Siemens OPC-Server and I have not found yet another than reading a number and then convert it to a boolean (unless you use the DSC module I think).

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 8
(4,145 Views)

hi thomas,

is it a question or answer?:)

when i get value 1 from server, i want to switch on my ampel

that's what i'm trying

0 Kudos
Message 3 of 8
(4,137 Views)

also what kind of indicator, that u use?

can u please send me a foto?

0 Kudos
Message 4 of 8
(4,137 Views)
Here is a picture of a solution. If you have just a range from 0 to 1, one boolean indicator is enough. Otherwise I would display an array.
 
 
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 8
(4,128 Views)


@hakan_s wrote:
...i mean, form Opc, i get "0" and "1", and i want to put a swicht, which shows the value of Data.(for example, when it is 0, it must be off,and when it is 1, it must be On )
i can do it, with "Nummer to Boolean Array", as you see, it is an Array format.
i want to do this in a simply way. ....

hakan_s,

Apologies if I'm misunderstanding, but  the Not Equal To 0? primitive may be what you are looking for.

=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 6 of 8
(4,127 Views)

thanks for replys

i see, when i use National Ins/OPC demo, it works..

i mean,boolean  with data socket.

may be, something wrong with my opc server...

thanks alot...

0 Kudos
Message 7 of 8
(4,117 Views)
The datasocket vis read a variant and cast it to a specific type.
 
And as I said - it was just a solution. There are always several solutions.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 8 of 8
(4,110 Views)