Can't find the right way to parse a string

Hi to all,
I am new to Lab-View, coming from a "C" background. I have spent all afternoon trying to get something to work, with no success. I am looking for a way to read files that are named sequentially, with a common prefix. For example:
"abc2004_001.tst", "abc2004_002.tst",... .
These file are not generated by LabView and the problem is that the file counter does not have a fixed width (can be 2, 3, 4, ... character wide) and the file prefix is alpha_numeric.
What I would like to do is to select the first file in the sequence and let LabView generate all other name, incrementing the sequence number, until a file-not-found.
I've tried using regular expression but cannot make it work when the file name prefix contains
a number.
Any suggestion...
Thanks!
MichelB

MichelB wrote in news:5065000000080000000BF00000-
[email protected]:
> Hi to all,
> I am new to Lab-View, coming from a "C" background. I have spent all
> afternoon trying to get something to work, with no success. I am
> looking for a way to read files that are named sequentially, with a
> common prefix. For example:
> "abc2004_001.tst", "abc2004_002.tst",... .
> These file are not generated by LabView and the problem is that the
> file counter does not have a fixed width (can be 2, 3, 4, ...
> character wide) and the file prefix is alpha_numeric.
> What I would like to do is to select the first file in the sequence
> and let LabView generate all other name, incrementing the sequence
> number, until a file-not-found.
> I've tried usin
g regular expression but cannot make it work when the
> file name prefix contains a number.
> Any suggestion...
> Thanks!
> MichelB
Suggestion 1:
Use the "Scan From String" function
(Function palette->String->Scan From String)
Wire your input string to "Input String"
Wire this string constant "%[^_]_%d" to "Format String"
Expand the outputs to get two outputs.
The format string does this (string is divided in three)
%[^_] Extract all characters which is not _
_ Match the _
%d Exctract a decimal number
Suggestion 2:
Use the "Match Pattern" function
(Function palette->String->Match Pattern)
with the string "[a-zA-Z0-9]_" as the "regular pattern" input
The "after substring" output should hold the number(+filename ending)
If you have an array with input file names (e.g. from the "List Directory"
file function) then you have to use a for or while loop.
Hope this helps.
Rolf

Similar Messages

  • I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available?  Any idea why that would be?

  • HT4539 I have 2 year old I-phone 4 that has never been updated. I need to download an update from my computer but can not find the right place on the I-Tunes page. Do you know where is the right place to update a phone that does not have an "update" butto

    My (old, never updated) I-phone has no "update" button in Settings and I would like to update it. I can not find the right place on I-Tunes to download the updates. Do you know where to look?

    Update your iPhone, iPad, or iPod touch - Support - Apple

  • Where can I find the right LIB_DBSL.SAR??

    hi all,
        I want to connect to the other DBMS.The detail is: my BI application server DBMS is oracle, it  runs on linux,64 bit,and the target DBMS is MSS 2000.
        The question is where can I  find the right LIB_DBSL.SAR,could you give me a link address?
        Thx..

    Hi,
    You need to log in to  service marketplacewith S userID& password. After logging into SMP, we need to find the relevant Database to find the Shared libraries that is LIB_DBSL.SAR file & then need to unarchive in order to load the DB dependent shared libraries.
    Regards
    Venkat

  • HT3486 My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right. I've download several but it always give me the same message: Airport uti....can't be installed... The version of OS X on this version is not

    My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right download. I've been downloading several but it always after havingf instal the first 3 steps the same message: Airport utility....can't be installed... The version of OS X on this version
    doesn't support this base station...
    I need help please to find the correcte download so i can my wii-fii work as soon as possible (because my wife is making me crazy, she can't go on Facebook!!!! )
    Thank's for your help,
    Mike

    Use AirPort Utility 5.6 which contains the features you need. It is compatible with Lion as well as Mountain Lion, however, the installer app will refuse to install it on Mountain Lion.
    This dilemma is easily solved though. You simply need to extract the app from the installer package using a package extractor like Pacifist.
    Download Pacifist here: http://www.charlessoft.com/
    Download AirPort Utility 5.6 here: http://support.apple.com/kb/DL1482
    If you happen to have an archived copy of the AU 5.6 app somewhere, such as a Time Machine backup or equivalent, you can simply restore it or drag the app to your Mountain Lion system's Utilities folder. It will run without complaint. It is only the package installer that is the problem.
    Mountain Lion will not allow you to delete its existing version of AirPort Utility. Just ignore it. It and the older version (which will bear the unique name "AirPort Utility 5.6") can peacefully coexist.
    Note: For those with Leopard or Snow Leopard systems you need AirPort Utility 5.6.1 (this is confusing - a later AirPort Utility version for an earlier OS X version - but it is correct).
    Download AirPort Utility 5.6.1 here: http://support.apple.com/kb/DL1536

  • Trying to reset my password (which I have forgot) for elements 13 I have the serial no.  But I can't find the right website to reset? I have "copy & paste " into the browser.

    trying to reset my password (which I have forgot) for elements 13 I have the serial no.  But I can't find the right website to reset? I have "copy & paste " into the browser.

    Go to the main page of adobe.com and sign out if you're already signed in there. Then click Sign In at the upper right of the page. In the next page you will see a Forgot Password link:

  • Re: Satellite A660-12P - can't find the right display driver for Win XP

    Hey everyone, i need some help with this one:
    I just made a dual boot Win7 (x64)/XP (x86) on my laptop, but i can't find the right display drivers for the video controller VGA compatible on XP.
    Does someone know where i can find them?
    Many thanks,

    Yes, you get this message because you cannot install the nVidia rivers only executing the exe file.
    If you want to install such drivers then you have to do this in device manager.
    You have to force the notebook to choose the driver
    You can do this choosing the advanced installation procedure which helps you to point to the driver files!
    PS: might be helpful:
    http://forums.computers.toshiba-europe.com/forums/ann.jspa?annID=78

  • HT2712 Network ip address keeps changing and for some reason I can't find the right settings. The diagnostics says to check with my network  administrator,  but idk whom that is being at a motel and all. I have made. New locations, & changed the ipv4 addr

    Network ip address keeps changing and for some reason I can't find the right settings. The diagnostics says to check with my network  administrator,  but idk whom that is being at a motel and all. I have made. New locations, & changed the ipv4 address. Help plz

    Hmmm, is Network set to using DHCP?
    Go to System Preferences
    Click Network
    Highlight AirPort and click Configure...
    Choose “By default, join: Preferred networks”
    Select your access point and Remove your access point with the minus button.
    Launch your keychain access in Utilities and delete your access point keychain entry.
    Reboot
    Go back to the “By default, join:” page and click the plus this time to add your access point. Enter the correct password, save, reboot.
    Instead of joining your network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed

  • Zoplaza gave me a wrong serial number. Where can I find the right one?

    Zoplaza gave me a wrong serial number. Where can I find the right one?

    from whoever sold you your software.

  • Need to install CSDS from 2013 student version computer crashed. Can't find the right version to download

    Need to reinstall CSDS CS6 from 2013 student version computer crashed. Can't find the right version to download? Serial # won't work.

    CS6 is an OLDER previous version, so try this http://www.adobe.com/downloads/other-downloads.html

  • I can't find the right screen name?

    I can't find a right screen name?

    This is a Flash Player forum. Could you please elaborate the issue? What are you trying to do?
    Thanks,
    Sunil

  • Qosmio F10 with replaced mainboard: Where can I find the right drivers?

    Hello guys,
    Toshiba service replaced the board with a new one including a geforce 6600 gpu on my F10. So, now I formated the laptop and I want to put again back everything to work. But I see now that there are some different devices, like the 6600go gpu.
    Where can i find the drivers (lan, chipset, modem..etc.) On the toshiba web site? If i choose qosmio F10 downloads, I get the drivers for the old motherboard (and graphics card 5700).
    Anyone knows where to get the right drivers? thanks!

    Hello
    Check please THIS page.
    I presume that chipset driver and also LAN driver are the same.

  • Can't find the right clipboard manager

    I need some help finding a clipboard manager that meets my needs. I'm wondering if anyone here has found an app that does these different things and does them well:
    - the obvious requirement to save a specified number of clipboard entries for future use
    - easily allow access to saved items via mouse or hotkey
    - organize saved clips into different folders or projects. For example, one with the name of my business, another with the URLs for key blog posts I continually reference in emails to clients, another with the URLs for books I recommend to clients, etc...
    - the ability to name my clips. Along with the prior requirement, these two are really important in allowing me to organize and easily use my clips. If I can't organize them into different projects or folders, then that's just not going to work. But then if the app allows me to do that but doesn't allow me to name them (like PTH Pasteboard Pro), then trying to differentiate one item from another can be almost impossible if it's a cryptic URL.
    So far, I've seen very few that do both of the last two items. I've tried Clips, and I actually like it a lot but it's a resource hog. They made it into a nice piece of eye candy but it consumes a ridiculous amount of system resources. I settled on iClipboard, and it works OK. The user interface is a little cumbersome, but then it will periodically just 'lose' one of my folders or projects and all the clips in it. That's now happened twice, hence my new search for a replacement. The app is simply too unstable to continue using.
    If anyone has any suggestions, I'd be most grateful. Thanks.

    lol, um, yeah. I've been searching for the right app for a long time now. I've probably demoed over a dozen of them. Have paid licenses to several (either through direct purchases or bundles).
    Am simply amazed that the combo of features I want does not appear to be available in anything other than Clips (which will quickly consume over 400 MB of real memory) or iClipboard (which loses my data).
    I figure there's gotta be something else out there that I'm missing. At least I hope. My requirements don't seem like that big a deal, but apparently they are since so few apps actually do them.

  • Where can I find the right doc for SunStudio For Linux ?

    I can find the docs for SunStudio here, http://docs.sun.com/app/docs/doc/819-5265/6n7c29ck9?a=view
    but it seems that it doesn't right on linux platform.
    #include <stdio.h>
    int main(void)
    #if defined(sun)
            printf("sun defined \n");
    #else
            printf("sun undefined \n");
    #endif
    #if defined(unix)
            printf("unix defined \n");
    #else
            printf("unix undefined \n");
    #endif
    #if defined(sparc)
            printf("sparc defined \n");
    #else
            printf("sparc undefined \n");
    #endif
    #if defined(i386)
            printf("i386 defined \n");
    #else
            printf("i386 undefined \n");
    #endif
    #if defined(__sun)
            printf("__sun defined \n");
    #else
            printf("__sun undefined \n");
    #endif
    #if defined(__unix)
            printf("__unix defined \n");
    #else
            printf("__unix undefined \n");
    #endif
    #if defined(__SUNPRO_C)
            printf("__SUNPRO_C defined \n");
    #else
            printf("__SUNPRO_C undefined \n");
    #endif
    #if defined(__sparc)
            printf("__sparc defined \n");
    #else
            printf("__sparc undefined \n");
    #endif
    #if defined(__i386)
            printf("__i386 defined \n");
    #else
            printf("__i386 undefined \n");
    #endif
    #if defined(__SVR4)
            printf("__SVR4 defined \n");
    #else
            printf("__SVR4 undefined \n");
    #endif
            return 0;
    }[luoyi@qpd06 test]$ suncc -o test test.c
    [luoyi@qpd06 test]$ ./test
    sun undefined
    unix defined
    sparc undefined
    i386 undefined
    __sun undefined
    __unix defined
    __SUNPRO_C defined
    __sparc undefined
    __i386 undefined
    __SVR4 undefined
    where can I found the correct docs for SunStudio For Linux ?

    You can refer to cc man pages. Here is about predefinitions:
    Predefinitions:unix
    sparc (SPARC)
    i386 (x86)
    sun
    The above are not predefined in -Xc mode.
    These predefinitions are valid in all modes:
    __BUILTIN_VA_ARG_INCR
    __SUNPRO_C=0x590
    __SVR4(SPARC)
    __SunOS(Solaris)
    __SunOS_OSN.N(Solaris)
    __amd64(x86 with-m64)
    __gnu__linux(linux)
    __i386(x86)
    __linux(linux)
    __linux__(linux)
    __sparc(SPARC)
    __sparcv9(with-m64)
    __sun(Solaris)
    __unix
    __�uname -s�_�uname -r�
    __x86_64(x86)
    linux(x86,linux)
    The following is predefined in -Xa and -Xt modes only:
    __RESTRICT
    The compiler also predefines the object-like macro
    __PRAGMA_REDEFINE_EXTNAME,
    to indicate the pragma will be recognized.
    ...

  • I have not been able to get to the Firefox Sync setup page. I can't find the right Firefox button to push. A number of buttons and Can't see "Set Up Sync"

    I have tried to find the page where I can click on the Firefox button and get to the "Set Up Sync" page. I have tried every Firefox home page and web page I can find and there is no button that gets me to the "Set Up Sync" page. Please help me. I just want to set up the Sync page on a number of computers I own.

    Have you read these support articles? <br />
    https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync <br />
    https://support.mozilla.org/en-US/kb/add-a-device-to-firefox-sync

Maybe you are looking for

  • InterCompany Billing Scenario-Foreign Trade Missing Data

    Hi Friends, My scenario: Company code:1000(US), ReceivingPlant:1000,Sales Area:1000/10/00 Company Code:2000(UK),Supplying Plant:2000,Sales Area:2000/10/00 Endcustomer 100010 in US has given the order to company code 1000(US) ,created deliveryfrom sup

  • Authorization problems

    I opned my book with adobe without authorizing my computer.  I had to reinstall adobe now I cant authorize my computer or read the book.  When i try authorizing it replies the vendor account you entered is not associated with the item you are trying

  • Xcopy without a command window....

    Hi, I need to download from the network a folder, not always the same folder as this will hopefully be pragmatically controlled, along with its sub folders, if present. As far as I can see the best option is xcopy, with its switches, or is there anot

  • Source to learn about cell phone programming etc...

    Hi, I'm new to forum. I would like to learn all I can about programming, modifying and messing with cell phones ( Droid X would be my preference but would like to learn all). Is there books, a site or anything else that I can buy to learn more? Getti

  • How to set applet  parameter in java code?

    Hi All, Instead of setting applet parameters in JSP page, Now I have a need to set applet parameters in java code. But I can't find a method that allow me to do this. There is only getParameter but seems no setParameter method. Any help is appreaciat