LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DataSocket Problems

I hav an array of datasockets and an array of corresponding values. The datasockets do not get updated with the correct values as the vi shows. I have included a screen shot of the tag monitor to indicate this. If the first two items are reversed then the datasockets get the correct values. Has any one encountered this type of a problem ?
0 Kudos
Message 1 of 4
(2,651 Views)
I am curious why you are writing directly to datasocket using the primative rather than creating tags connected to the datasocket points and writing to them.
0 Kudos
Message 2 of 4
(2,651 Views)
Hello Bhaskar,

Thank for modifying the VI. The problem is interesting. Can you attach your scf file? What deadbands have you set for these tags? When you switch the first two items, are you also switching the first two values in your array?

Regards,

Kristi H
Applications Engineer
National Instruments
0 Kudos
Message 3 of 4
(2,651 Views)
Try opening the connections with the DataSocket Open primitives. You could do this by iterating through the URLs with a loop. The DataSocket Open will create a DataSocket refnum for each URL. Then iterate through the refnums with a loop, and wire a refnum into a DataSocket Read primitive.
0 Kudos
Message 4 of 4
(2,651 Views)