LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Datasocket connection with units

Hi there,

I'm using Labview 6i with Datasocket V4.0 (367) (So it says on
Server|Help|About)
and cannot get a front panel datasocket connection to work with units.

I can connect two VIs together, so an indicator on one follows a control on
the
other, but as soon as I make the units indicator visible and enter a unit on
one
of the VIs the data connection breaks down. This behaviour persists even
when I
hide the units indicator, suggesting that the units stay attached to the
control
once they have been placed there.

I've tried everything I can think of here. Is this lack of functionality
documented
somewhere and does it get fixed in v6.1 or am I doing something wrong ?

regards


--
Remove "spamkill." when replying to this message
0 Kudos
Message 1 of 4
(2,430 Views)
Do you have the same units applied to both ends of the Datasocket connection? When you define a units for a value, that unit definition becomes part of the signal's type definition. If the client doesn't match the server that could certainly break the connection.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,430 Views)
I managed to reproduce this behavior in LabVIEW 6.0.2 with a data socket writer and reader both using units (MHz). The reader would not change numeric values although it worked when no units were used. I took the units off the reader and the value without any scaling came through. It may be a little inconvient to rescale the value (you can put the controls beyond the visable borders of the panel), but it will do the job.

I tried the same experiment with LabVIEW 6.1. The reader and writer both used units, and it worked like a champ. Values came through properly scaled with units.

Attached are the LabVIEW 6.0.2 programs.

Jeremy Braden
National Instruments
Download All
Message 3 of 4
(2,430 Views)
Thanks Jeremy, I'm glad that it is the behaviour of the version of LV I'm using and that:

a) It's not just me
b) It'll go away when I get the uni to upgrade to 6.1

ta
0 Kudos
Message 4 of 4
(2,430 Views)