Is there any method to compress a string in LabVIEW?

Can we compress a string in LabVIEW?

A string is a series of bytes representing ASCII characters. If you want to compress the amount of bytes it uses, here's an idea:
Assuming your string uses a limited character set, you can convert your letters to a 7-bit (or even 6 bit, if you give up capital letters) represention of your own making (let's say that '0' [48 ASCII] is 27 in your representation and not 48), thus saving a bit (or 2) off each byte. You can use the String to Byte Array VI and then the Number to Boolean Array VI.
Now you have an array of bits in which each 6 bits is a character. Break the array into groups of 8 bits, transform it back to a string and (hopefully) you've compressed the string by a quarter.
When you want to decompress, you'll need to reverse the process.
I haven't thought it through, and it probably needs some more work, but I think the basic idea should work.
Try to take over the world!

Similar Messages

  • IPhone calendar appointments set to local calendar, and need to switch to exchange calendar. Have to edit each appointment one at a time and change to exchange calendar. Is there any method to edit all appoints in my calendar at once?

    iPhone calendar appointments set to local calendar, and need
    to switch to exchange calendar. Have to edit each appointment one at a time and
    change to exchange calendar. Is there any method to edit all appoints in my
    calendar at once and change the calendar setting?

    Not sure this will work but if you go into the Keyboard preferences, then click the Keyboad Shortcuts tab, and then the '+', you can add your own shortcuts for any application.  I am not sure what happens if you try to override an existing shortcut since I haven't tried using this.
    Edit/Update:
    Probably against my better judgement I'll also throw this out there - there's an Unsanity haxie called Menumaster which might also allow you to do what you want.  Against my better judgement because personally I stay clear of haxies.  It's (all haxies) probably almost certain to break in Lion.  They always do with each major release.

  • Is there any method to remember the running subtitle and audio stream when navigating through menus?

    I have a language Menu named 'Setup' with 4 buttons 1.English  2.Spanish  3.Spanglish  4.Subtitle Off.
    To reach this page you have to hit Setup button on Main Menu. The setup button takes to a sub-menu of Setup where I have a symbol of 'tick' at Subtitle Off indicating the state of the current subtitle stream. I have 3 more sub-menus with similar buttons but with 'tick' at different languages indicating the state of the current running/selected language, 2nd page has English with tick, 3rd page has Spanish with tick and 4th has Spanglish with tick. My client wants me to jump on the respective language ticked page when you hit the setup button on Main Menu. As far as I understand we cannot assign a code in Encore to a single button to read what subtitle stream is running.
    Is there any method to remember the running stream when navigating through menus?
    I have done this in Sonic Scenarist.
    Regards,
    A Gandhi

    I think this was added in a "newer" version of Encore (meaning anywhere from CS4 up). In any event, it is available in Encore CS6.
    There is a menu (not button) property that allows yoi9u to make the active subtitle track button the default (i.e. selected/highlight shows) just as you want.

  • Is there any method to use network printer without installing driver?

    We have some embeded win7 devices which we cannot install drivers to.
    Is there any method to use network printer without installing driver?

    Hi,
    Please read the following article:
       http://en.wikipedia.org/wiki/Device_driver
    You definitely need this middle man.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Is there any methods to use network printer without installing driver?

    We have some embeded win7 devices which we cannot install drivers to.
    Is there any methods to use network printer without installing driver?

    Hi,
    Please refer to your other post:
      http://h30434.www3.hp.com/t5/forums/replypage/board-id/Printing/message-id/77319
    Thanks.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Is there any method to export the data from oracle 10g in any format !!!!!

    is there any methods to export the data from oracle 10g in the format of excel or csc or txt or anyother. i already downloaded the sql developer tool but it only exports the data of upto one lakh rows ,but i have two tables of more than 3 lakh and 10 lakh rows respectively.for this i used 'where' command to break the file through sql developer but that didnt work
    plz help me out if any thing possible
    i need to again import this data into microsoft sql if there is any direct method plz let me know
    its urgent
    Message was edited by:
    user628031
    Message was edited by:
    user628031

    Take a look at DUMP_CSV function by Tom Kyte.

  • Is there any Method to remove the request from STMS OR SE10 OR SE09

    HELLO ALL ABAP GURUS,
    Is there any Method to remove or delete the request from STMS OR SE10 OR SE09 ?
    Thanks,
    Sumit.

    Hi,
    Before deleting a transport request you need to unlock all the objects in a transport request. Please follow these steps.
    1. Go to SE03. Under Requests/Tasks folder in the left pane you can see Unlock Objects, double click on that.
    2. Enter your request number (sub task) there and click on execute button.
    3. SAP will prompt you with a message, click on Unlock button.
    4. Now go to SE09/SE10 and click on your request number (sub task) and click on delete button on the application toolbar.
    5. Now click on main task and click on delete button to completely remove the request number.
    Hope this will help you.
    Regards,
    Venkat

  • Is there any method to deactivate the execute button?

    Hi Experts,
      I have created a ztransaction for a report program. When i execute the transaction the 'execute' button comes automatically in the application toolbar. Is there any method to disable it??

    Get the function code for that execute button(PLace the cursor on that button using the TAB key and press F1 to know the Fcode for that button).
    then use the following statement in the set pf-status
    set pf-status 'STATUS' excluding '<Fcode for exec button>'.
    Regards,
    ravi

  • Is there any method or function to update/modify an existing trip data?

    Hey, ABAP  gurus,
    Is there any method or function to update/modify an existing trip (PR05) receipts data and cost distribution data?
    Thanks in advance!
    Fisher

    Hi Fisher,
    Please try HRTRV_IF_MODIFY_TRIP.
    Regards,
    Dilek

  • Is there any method in Java to convert from system time to variant time?

    From MSDN:
    A variant time is stored as an 8-byte real value (double), representing a date between January 1, 100 and December 31, 9999, inclusive. The value 2.0 represents January 1, 1900; 3.0 represents January 2, 1900, and so on. Adding 1 to the value increments the date by a day. The fractional part of the value represents the time of day. Therefore, 2.5 represents noon on January 1, 1900; 3.25 represents 6:00 A.M. on January 2, 1900, and so on. Negative numbers represent dates prior to December 30, 1899.
    Is there any method in Java to do this or do I need to write it?

    do I need to write it?yes

  • Is there any method like refresh,reload etc

    Sir/Madam,
    when i m trying to add new controls dynamically, in a Frame ,they are not appeariing until we made a click on the window.Is there any method to reload,or refersh or update to make changes without made a click on window.

    validate(); OR repaint(); OR pack(); //this method resizes the frame though...... after you add components to the frame you should call validate();
    David

  • Is there any methods upload shift plan by personal number?

    In SAP,with T-CODE pp61 we only can maintain shift plan with org unit.Is there any method to batch input shift plan per. employee?thank in advance!!!

    Hi,
    Shift Planning is completely Object ddriven from OM sidea and all the shift are stored in the substitutions infotypes 2003,
    This is much better to use batch data thru this screen rather than maintaininig in infotype 2003. Becasue when you maintain it via 2003 it has lot of fields and cumbsesome.
    Hope i am helpful.
    Regards
    Srikanth

  • Is there any method which reflects the names of classes of java?

    is there any method with which dynamically we can get all the packages's name along with their classes of java(specially core classes of java)?if not how can we do that?

    The resource from which the Java VM loads the classes is considered to be implementation dependent. It may be class files or jar files contained in a file system hierarchy, or some kind of remote database. The now defunct Microsoft VM used a database repository that was able to reside on a remote class server within a network domain.
    Unfortunately, Sun did not design a class resource service interface with a "list resources" function, only a "get resource" function. You can get the class resource for any named class, but you cannot list packages or classes within a package or at the root level.
    This is further complicated by the fact that there is no such thing as an "installed package" as Java does not define any package installation system. The packages available to any runtime instance of the JVM is defined by the classpath properties passed from the OS. Different JVM instances can have completely different sets of available packages because they were passed different classpath values by the OS.
    If you know the class resource of the runtime environment, then you could create a subclass of the sun.misc.URLClassPath class and add to it methods that will list packages and classes found within a package using the interface of that known class resource.
    Most runtime environments use a standard hierarchical file system to hold jar and class files. A subclass of sun.misc.URLClassPath could use the java.io.File class to traverse the file system classpath paths in search of package directories and class files (Watch out for recursive directory links).
    The root packages can be obtained from the three levels of classpath paths in the System properties used by the JVM:     "sun.boot.class.path"
         "java.ext.dirs"
         "java.class.path"The collection of file system paths obtained from these properties would be searched for the names of the root level package directory names. Just remember that this will only work in a runtime environment that only uses this kind of class resource. If you run this where some other resource is also used, you will not see all of the packages available to that JVM.
    One note of caution: A single directory can hold package directories, jar files, and class files that belong to a specific package, but the package may include other package directories, jar files, and class files that are contained in other directories. Pieces of a single package may be strewn throughout the file system. The only way to find them all is to scan all of the classpath paths for that same package name. The directory does not define the package, it only provides more content for that package.
    I hope you find this of some use.

  • Is there any method r table 2 find corresponding printprograms 4 smartforms

    hi ..
    iam unable 2 find print programs for respective smartforms.
    through STXFADM and STXFADMT tables im getting only smartforms.
    and the following smartform print programs r not exits in my pc..
    is there any other method r table 2 find corresponding printprograms 4 smartforms
    thanks

    Hi,
    check the table TNAPR or the tcode NACE....NACT
    Reward Points if it is Useful.
    Thanks,
    Manjunath MS

  • Is there any method that find IP machine?

    Hi!
    Could someone tell me if exists any method that finds the IP of the PC where the program is running?
    Thanks in advance,
    xxdd

    Hum, I'm assuming you are using sockets on your program.
    Oh, and by the way, I don't really know if this will work or even help you... ok ??
    Socket here = new Socket();
    InetAdress local = here.getLocalAddress();
    String ipadress = local.toString();
    Does this make sence?
    Yours
    Rui
    (ps. import java.net.*; in case you haven't)

Maybe you are looking for

  • Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project.

    Every time I place a video into the sequence timeline, this error message pops up, "Sorry, a serious error has occurred that requires Adobe Premiere Pro to shut down. We will attempt to save your current project." and then Premiere crashes. I tried u

  • Logic in query

    Invoice posting date range must use the following logic for determining the From - To range:        To date will be today's minus 1 day to determine last full posting date.        From date will be - determine current month/year based on 'to date' an

  • How-to Guide for Certifications in ME?

    Is there a how-to guide or other document that covers how certifications work in ME? My specific question is about the role of User Groups with respect to certifications.  The online help for Certification Maintenance says: •Control which users can p

  • Pages is selecting different fonts?

    I downloaded a bunch of fonts and they worked for a while but then when i tried to load up pages or word and select "times" it came up with a completely random font that was downloaded. I re loaded it and it does the same thing. Please help. I need t

  • Power cut and now freeze mid start-up

    Help, help, help!!! I had a power cut today and my mac obviously turned off!! When I try to re-start it it comes up with the apple pic and starting Mac OS X window and then goes to a blue screen and freezes. I have booted off the install disc and tha