NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
ouadji

Rotate String

Status: New
by Active Participant ouadji on ‎03-19-2012 06:45 PM

 

                     this time, I hope this idea was not already proposed! :smileyfrustrated:

 

 

original6.png

 


Comments
by Active Participant X. on ‎04-03-2012 03:32 PM

ScreenHunter_006.jpg

by Member QFang on ‎04-05-2012 11:05 AM

As a question to X.'s suggestion:

 Is it correct to say that the "string to byte array" and "byte array to string" simply change how we choose to view the data (no data or structure change) and as such there is extremely low (no?) overhead with these functions? I would hope the compiler can do it that way.. (I have wondered this many times, but never could be bother to benchmark or ask before..)

If that is the case (very low/no overhead) then I don't see much point in making that functionality a new palette item, but on the other hand it would be a very easy thing for NI to do..

 

 

by Active Participant X. on ‎04-05-2012 11:50 AM

My point in suggesting the obvious was that there is very little code to write to get the desired functionality. Personally, I never had to rotate a string, but I would suspect that this is a pretty rare need.

As far as what the function does, I can only guess, but strictly speaking, in other languages, a string is not JUST a byte array (see for instance this discussion). However, to confuse things a bit, if you look at the allocated buffers in the code below:

 

ScreenHunter_005.jpg

 

there does not seem to be any buffer allocated specifically for the string to U8 operation; you get the same buffer allocation in this situations:

 

ScreenHunter_008.jpg

 

and there is certainly none in the reverse operation:

 

ScreenHunter_009.jpg

 

This being said, even if there was data copy, these are only strings... so unless you want to rotate the Encyclopedia Britannica (and even then!), I really wouldn't worry about overhead issues...

 

Latest LabVIEW Idea Exchange Blog Posts
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!
Idea Statuses
Top Kudoed Authors
User Kudos Count
133
85
74
66
63
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page