LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
cancel
Showing results for 
Search instead for 
Did you mean: 

Allow Unflatten from String to also accept an Unsigned Byte Array as input

Traditionally LabVIEW has treated Strings and Unsigned Byte Arrays as being the same. This is nowadays a little unfortunate as all UI systems use some kind of encoding so Strings are not generally interchangeable with Byte Arrays anymore.

In trying to stay for binary data as much as possible with Byte Arrays instead of Strings, since that would be the sensible thing to do, the Unflatten from String (which should rather be called Unflatten from Stream) puts a totally unnecessary wrench into this.

I always had hoped that LabVIEW would change the default binary data stream format to a Byte Array at some point but this while it would be possible, is a fairly pervasive change that would require many backwards compatibility decisions that I unfortunately don't see NI going to spend time on anymore. This change however would be a very small change that has zero backwards compatibility concerns and almost no work to add to the existing LabVIEW software.

This same change has been for instance made to the TCP Write node some versions back already and could be also applied to the VISA Write! Smiley LOL

Rolf Kalbermatter
Averna BV
LabVIEW ArchitectLabVIEW ChampionLabVIEW Instructor
2 Comments
Member

Note that LabVIEW NXG appears to use byte arrays as the default binary format.  This idea would help people get used to that before transitioning to NXG (and potentially make converting code between the LabVIEW types easier).

http://www.ni.com/documentation/en/labview/latest/node-ref/flatten-to-byte-array/

Proven Zealot

rolfk: The changes you are requesting are fully implemented in LabVIEW NXG. We have no plans to make any variations in behavior for LabVIEW 20xx. Although I freely acknowledge that this would be a straightforward change to make with few downsides (and has the advantages noted by TomOrr0W), I do not expect us to expend any of the remaining development effort of LabVIEW 20xx on string-byte array handling issues.

 

Having said that, I will leave the idea open for kudos and see how it develops.