Jump to content

Communication between two Application(LV10 & LV 14 ) OOP


Recommended Posts

Hello Everyone,

i am creating a LabVIEW Application in OOP  that communicate with two different version of LabView(10 & 14) through TCP\IP..

In procedural programming I do by converting cluster data to string(Flatten to string) but in OOP should I also use class and Flatten to string function? whether i will receive correct information.?

1.png

Link to comment

This does work, I have used it many times.  Anecdotally, the main issue I have run into when flattening classes to string is getting the versions correct on both sides.  If you have changed the class in one app but not another, you can get a 1403 error in certain cases (LabVIEW:  Attempted to read flattened data of a LabVIEW class. The data is corrupt. LabVIEW could not interpret the data as any valid flattened LabVIEW class.).  

Some additional reading on the subject:
LAVA Thread

NI KB

 

  • Like 1
Link to comment

Even without oop NI sometimes changes the internal type information. Data from 2010 to 2014 should (probably) be unflattened fine, but 2014 to 2010 may not work at all. This KB is what I've used to handle 2014->2013 communication.

http://digital.ni.com/public.nsf/allkb/45E2D7BE36CE3E8B86257CCF0074D89B

I dont know how this works with oop. However with objects I almost always add a 'flatten' and 'unflatten' for the object which generates a custom format string and never deal with the automatic stuff.

Edited by smithd
  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.