How can I get a variant's string data?

Greetings!
When I view a variant indicator, I see a (generally) human-readable block of text.  This makes sense to me, since, as I understand it, a variant is, internally, a kind of flattened string.  My question is:  is there a way that I can get that string in LabVIEW, and can I then load that string back into a variant?
I'm trying to preserve the human-readable aspect of the variant data.  Flatten to/Unflatten from String is not human readable, and the variant versions of Flatten/Unflatten drop the variant's attributes.  I've also tried Flatten to/Unflatten from XML, which drops the attributes AND does not unflatten correctly.
Any help you can offer would be appreciated.
Thanks!
Allen C. Smith
Ktech Corporation

I think Allen wants to have access to the plain string that is displayed in the variant container and I have not found a way to get it. The method should require no code and should be independent on the complexity of the data contained in the variant.
I agree this could be somewhat useful and should be supported. For example, we could have a readable property for the variant indicator similar to the text.text property of string indicators.
The text.text string property gives the text formatted as shown in the indicator and thus depends on the display style (normal, '\'-codes, password, hex). It can be e.g. used to convert a plain string to a plain string that incorporates '\'-codes that is available to the code. (See image). This could be useful in a case where you want to mix '\'-codes and plain codes in a descriptive display, for example containing the following three lines:
"The received string in '\'-codes is:
ABC\tDEF\tGHI\n
please verify there are no unexpected characters"
Message Edited by altenbach on 01-17-2007 09:40 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
StringDisplay.png ‏10 KB

Similar Messages

  • How can I get missing contacts, notes, calendar dates and reminders that are just on my old iphone onto the iCloud for transfer to my new iPhone upgrade?

    Dear wise & wondeful people:
    How can I get missing contacts, notes, calendar dates and reminders that are just on my old iphone onto the iCloud for transfer to my new iPhone upgrade? Half of my contacts, notes, ect. were on my iCloud so have happily moved to my new iPhone but the rest are completely resistant. For example, on my iCloud I have 14 missing contacts starting with the letter A alone, however they are happily viewable on my old iPhone 4S and won't budge over into the iCloud.
    There are also 3 notes missing yet still acessible on my onld iPhone 4S, the list goes on.
    Your help would be most appreciated. Thank you so much.
    BCHR

    Hi BCHR,
    If you are having issues transfering your content from your old iPhone onto iCloud so it can be transfered to your new iPhone, you may find the following articles helpful:
    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device
    http://support.apple.com/kb/HT2109
    iCloud: Troubleshooting iCloud Contacts
    http://support.apple.com/kb/TS3998
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/TS3999
    iCloud: Notes overview
    http://support.apple.com/kb/PH12081
    Regards,
    - Brenden

  • HOW CAN I GET THE PURCHASE ORDER RELEASE DATE

    Dear All,
    HOW CAN I GET THE PURCHASE ORDER RELEASE DATE - any reprot is there?
    Thank you
    Ahmad

    Hi,
    u goto that PO and select Environment on top line .under that select header changes if u click on that u will get entire details who reased when released, date , time etc
    regards,
    Srinivas Kona

  • How can i get the timestamp of first data at continue sample mode?

    how can i get the timestamp of first data at  continue sample mode?
    6023e pci , and c++ code
    thanks !

    The tangent ist the derivative of the curve in that point. You can try to use a numerical derivative vi or keep it simple an approximate with a line through the adjacent points.
    Gabi
    7.1 -- 2013
    CLA

  • I have a mac book running leopard software, 10.5.8 how can I get my computor up to date as loin requires minimum 10.6.6

    I have a mac book running leopard software, 10.5.8 how can I get my computor up to date as lion requires minimum 10.6.6.

    You can upgrade from 10.5 to 10.6 with no problems. Any program that runs under 10.5 should run under10.6. See this list for compatibility with 10.6: http://snowleopard.wikidot.com/  You might have to upgrade some drivers for printers, etc.... And you will have to install Rosetta if you have any Power PC applications http://www.macobserver.com/tmo/article/snow_leopard_installing_rosetta/  
    To upgrade your iLife and iWork. If you only want iPhoto or other single apps from iLife '11 you can get them from the App Store after you've upgraded to 10.6.6. iPhoto, iMovie or Garage Band for $15 each and Pages, Keynote or Numbers from iWork '09 for $20 each.
    You can order a Snow Leopard 10.6 install disk for $29 as long as you have at least 1gb of RAM and 5gb of free space on your hard drive. http://store.apple.com/us/product/MC573Z/A?mco=MTY3ODQ5OTY
    Once you are at 10.6.8 you can buy Lion for $29 from the App Store if you have at least a model 2,1 MacBook. Lion will require at least 2gb of RAM but really needs 4gb to run smoothly. As for programs see this list for compatibility with 10.7 http://roaringapps.com/apps:table Also Lion doesn't run any Power PC programs. To see if you have any Power PC programs go to the Apple in the upper left corner and select About This Mac, then click on More Info. When System Profiler comes up select Applications under Software. Then look under Kind to see if any of your applications are listed as Power PC. Universal and Intel will run under Lion.
    Before Mac switched to Intel processors they used Power PC processors from 1994 to 2005. Power PC 601 through 604, G3, G4 and G5. Applications written for the Power PC processors need the application called Rosetta to run on Intel processors. This was part of the Operating System in 10.4 and 10.5 but was an optional install in 10.6. With 10.7 Lion Apple dropped all support for Power PC applications.

  • How can I get some text from string like AB_CD_9.9.9_Sometext

    How Can I get
    only 9.9.9 from  string "AB_CD_9.9.9_Sometext" with powershell and regular expression?
    Thank you,
    Lei

    This works.
    if('AB_CD_9.9.9_Sometext' -match '\d\.\d\.\d'){$matches[0]}else{'notfound'}
    ¯\_(ツ)_/¯

  • My iTunes music folder is almost 1.5x the size on disc as my iTunes library. How can I get rid of this extra data?

    When I look at the iTunes music folder in Windows Explorer, it shows as 28.0 GB. In the iTunes library, it says my music is 18.3 GB. I would like to get my 10 gigs back.
    I've tried to add the media folder to my library - it just duplicated maybe 10 songs, didn't add any new ones. This suggests that there isn't any extra music in the folder. So why is it 10 GB larger? How can I get rid of the extra non-music data?

    Apparently there are some mp3 files that aren't adding despite importing the folder...
    That is actually a very common problem, due to iTunes being strict/finicky/incompetent (pick your own interpretation) about slight variations in MP3 formats. The problem can usually be corrected by treating the files with a 3rd party tag cleanup program, such as MP3 Validator.
    i don't know how much of the missing 9.7 GB this will apply to, but definitely worth a try.

  • How can I get rid of the extra data page on a pdf?

    Whatever happened to the old pdf creater?  It was so easy to use!  Now I get this extra page of data and the other pages are reversed.  How can I get back to what works?

    Oops!  I use Primo PDF and Nitro, and they both produce the same extra
    page!  I'll ask them, thanks.
    RB

  • How can I get my emails sorted in date order?

    how can I get my email page to read in date order

    Thank you for this. Now the emails are in reverse order but at least they are in date order. Can you help me get today message at the top?

  • How can i get my emails listed by date

    How can i get my emails listed by date

    Thank you for this. Now the emails are in reverse order but at least they are in date order. Can you help me get today message at the top?

  • How can I get Chinese characters in the date and calendar?

    The other night I was using a friend's Japanese iBook. I noticed that she the day displayed with a Chinese character in the menu bar and in the calendar widget (e.g., Her clock said 月4:27 instead of Monday 4:27), but her interface was in English (no Japanese menus).
    How can I set the day to display with a Chinese character?
    iBook G4 12   Mac OS X (10.4.8)  

    System Preferences/International/Formats/Region/Japan

  • How can I get an unsigned char string with nulls from a dll into LabVIEW 6i?

    The following ethernet packet data is contained in an unsigned char * string returned from my dll (it's formatted on printing):
    Received A 230 Packet On Adapter 0x008F0070
    Ethernet Dest: 01.E0.BB.00.00.15 Src: 00.E0.BB.00.DD.CC Type: 0x8868
    000000: 01 E0 BB 00 00 15 00 E0 : BB 00 DD CC 88 68 48 41 .............hHA
    000010: 00 E0 BB 00 DD CC 80 B3 : 00 00 FF FF 00 02 00 01 ................
    000020: 01 00 F0 18 FF 7F 7F FF : FF 7F 7F FF FF 7F 7F FF ................etc., etc.
    However, when I read this string into LabVIEW 6i, I only get the following:
    01E0 BB
    Which is the data before the first NULL or 00 information. I found a "Remove Unprintable Chars.vi" but it
    just sees more data before the above string, nothing after, as seen here: 5C30 31E0 BB.
    Anybody have any suggestions for how to get the rest of the string? Is there something I can do to further reformat my dll? The dll I'm using is already a wrapper around another dll so I have some flexibility, but the bottom line is, the data I want is in the format of an unsigned char *.

    Excellent advice, this mostly works so I have some further questions:
    I am just reading network traffic off my ethernet card right now, but here is what I get using my C program to test:
    000000: 01 E0 BB 00 00 15 00 E0 : BB 00 DD CC 88 68 48 41 .............hHA
    000010: 00 E0 BB 00 DD CC 80 B3 : 00 00 FF FF 00 02 00 01 ................
    000020: 01 00 38 3C FF 7F 7F 7F : 7F 7F 7F FF FF 7F 7F FF ..8<............
    000030: FF 7F 7F FF FF 7F 7F FF : 7F 7F 7F FF FF FF FF FE ................
    000040: FE FF FF FF FF 7F 7F 7F : 7F 7E 7E 7F 7F 7E 7E FF .........~~..~~.
    000050: 7F 7F 7F 7F FF 7F 7F 7F : 7F 7F 7F FF FF 7F 7E 7F ..............~.
    000060: 7F 7F 7E 7F 7F 7E 7F FF : FF 7F FF FF FE FF FF FE ..~..~..........
    000070: FF FF FF FF FF 7F 7F FF : FF 7F 7F FF FF FF FF FF ................
    000080: FF 7F 7F FF FF 7F 7F FF : FF 7F 7F FF FF 7F 7F FF ................
    000090: FF 7F 7F 7F FF 7F 7F 7F : 7F 7F 7F FF FF 7F 7F FF ................
    0000A0: FF 7F 7F 7F 7F 7E 7E 7F : 7F 7F FF FF FF FF FF FF .....~~.........
    0000B0: FF FF 7F FF FF 7F 7F FF : 7F 7F 7F FF FF 7E 7F FF .............~..
    0000C0: FF FF 7F FF FF 7F 7F FF : 7F 7F 7F FF FF 7F 7F FF ................
    0000D0: FF 7F 7F FF FF 7F 7F 7F : 7F 7F 7F FF FF FF FF FE ................
    0000E0: FE FF FF FF 00 01 : ................
    And here is what I get using LabVIEW to call the dll:
    0015 00E0 BB00 DDCC 8868 4841 00E0 BB00 DDCC 80B3 0000 FFFF 0002 0001 0100 9600 7F7F 7F7E 7F7F 7F7F 7F7F 7F7F 7F7F 7F00 B405 4300 3300 0000 0000 0000 01E0 BB00 0015 00E0 BB00 DDCC 8868 4841 00E0 BB00 DDCC 80B3 0000 FFFF 0002 0001 0100 9600 7F7F 7F7E 7F7F 7F7F 7F7F 7F7F 7F7F 7F00 F405 1B04 0C04 0000 0000 0000 8000 0000 0000 0000 0800 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
    The first thing I notice is that the first 4 bytes are chopped off, and after about 50 bytes, the data is corrupted until the sequence starts to repeat, but this time it starts with the missing 4 bytes and still corrupts after about 55 bytes.
    I am expecting the data in LabVIEW to look very similar to the C data because the network packets I am grabbing are pretty consistant, only a couple bytes will vary between them, not the number I am seeing in LabVIEW.
    Another side effect I'm seeing is that I can only run my labVIEW code once, if I try running it again it crashes with failures such as:
    memory could not be "read"
    For reference, I am opening and closing the network adapter inside the read function of my dll, but the pointer seems like it should be intact...
    Attachments:
    zListAdapters.vi ‏30 KB
    listAdapters.dll ‏201 KB
    Reading.dll ‏213 KB

  • HOW CAN I GET USERNAME,PASSWORD,HOST STRING?

    I have installed oracle 9i personal edition, when i tried to open sql plus, i was asked to fill username,password and host string. When i type anything it shows error message ora-12154.Is anyone can help me? Thanks

    The error you gave can appear for lots of reasons.
    You don't give any information about how the install
    went - did you check the logs for errors? Have you
    shut the machine down since you did the install?
    Are you actually running SQL*Plus on the same machine
    as the database? Is your database running? Can you
    connect using "/ as sysdba"? What hints that even
    a simple google search gives did you try?
    -- CJ

  • How can i get list elements as Strings?

    Hi!
    I have the following..
    List  home_list = results_doc.selectNode("//"+CONSTANTS.HOME_TEAM_SCORE);
    home_list.get(0);What i'd like to do... is to get the the return of home_list.get(0) which is an Object, and get it's string value(...and pass it to a String). Is that possible?
    Br
    Charalambos

    What i'd like to do... is to get the the return of
    home_list.get(0) which is an Object, and get it's
    string value(...and pass it to a String). Is that
    possible? Depends on what the ACTUAL object is. For instance, if the object represents a Person, does it really have a "string" representation?
    Anyway, all objects have a toString() method implementation which returns some kind of string, but that might not be what you have in mind.

  • How can I get Back all of my data after restoring and back up ? I lost my data and I did back up

    when I did restore and update .. I lost all of my data , then I pressed to back up buttom , when I try to restore data , its disapper . is there anyway to get back all data lost ?

    If you are backing up to your computer, check iTunes/Edit/Preferences/Devices, if there are nay other backups listed.
    Since each backup replaces the old one if not used to restore from, your data might be lost since you seem to have backed up a phone without any personal data.
    Check this article about how to restore from backups:
    iOS: Back up and restore your iOS device with iCloud or iTunes

Maybe you are looking for

  • Camera Connector doesn't work with Nikon DSLR?

    I just got the camera connector, and when I connect it to my Nikon D5200 to directly download photos to my iPhone 5, it tells me my Nikon isn't supported.  If it's just reading an SD card, I don't see how this should be an issue.  Am I just missing t

  • How can  I have items in the Dock show up as lists

    How can  I have items in the Dock show up as lists rather thanimages?

  • IPad not connecting to AirPrint

    I've been searching for weeks for a solution that will allow us to use iPad or iPod Touch to print at home.  MacBook Air (mid-2012) connected to Canon MX870 printer via WiFi.  I've tried Lantronix's xPrintServer and Printopia.  The Lantronix device c

  • T42 vista and microphone issues

    My mic for t42 running basic vista does not function right. It wont pick up sounds hardware untility says might not be working check device. What should I do?

  • HELP! how can I get my outbox emails back- they vanished without sending!!!

    I just came off 8 hour transatlatic flight the entireity of which I spent dealing dealing with email and deflagging as I hit send. When we touched down and I connected to wifi expecting to see the 27 messages in my outbox send....  But they didn't.