LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Update Datasocket VIs?

Solved!
Go to solution

I've inherited the maintince of several VIs.  They make pretty extensive use of datasockets.  However, I think they all use an older version of the datasocket VIS.  For example most of the reads are done with "Datasocket Read Double Vector.vi".

 

Is it worth the effort to replace these with the modern datasocket VIs in LabVIEW 8.6?  What differences are there in the VIs?

0 Kudos
Message 1 of 4
(2,927 Views)

Wart,

 

It shouldn't be hard at all to update these vi's, the one change is that the data type defaults as 'variant', and on the new read vi, you have to wire a data type input to this to define the data type output.  Here is a picture after I wired a blank array constant into 'variant' input.  If you wired a U32 scalar, it would adapt to tha Let me know if you run into any problems

 

 

Message Edited by Rob_K on 11-24-2008 11:01 AM
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 2 of 4
(2,898 Views)

Thanks for getting back to me.

 

I'm not worried about the difficulty of updating the old VIs.  I'm really just wondering if there is anything to gain from it.  For example is there any sort of performance increase to be had?

0 Kudos
Message 3 of 4
(2,893 Views)
Solution
Accepted by topic author Wart
There are no performance upgrades that I know of...as long as it opens and runs in later versions, you should be fine.  The only concern that I may have, is that we may still support the older style of that vi now, but maybe phase it out in the future thinking that everyone was using the newer version, so you may be forced to change it anyways in the future.  But if the program is extensive, then maybe you are right and the effort isn't worth it - 'If it ain't broke, dont fix it,' right?
Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
Message 4 of 4
(2,891 Views)