LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference between bot these ways of reading a shared variable value

Hi,

 

I have a confusion reagrding various methods of reading shared variable value using Data Socket VIs.

 

What is the difference between the two methods of reading the shared variable value using data socket APIs

 

Methods for reading shared variable

 

 

Regards,

Mirash

Coding is a combination of intelligent and creative work - someone
0 Kudos
Message 1 of 2
(2,397 Views)

Well, the first method is implicitly doing the same thing except that you have no control over the open and close.  If you needed to do successive reads then you would not would want to keep opening and closing the ds connection.  Also you might consider using the newer Shared Variable API for such things.

0 Kudos
Message 2 of 2
(2,374 Views)