Is there a way to differentiate string containing characters vs. numbers?

Hello, I am creating an application to read data from a serial port device. The problem is that the device, on startup, outputs a block of text containing characters describing the device. Shortly after, it outputs a command prompt "Command:" It is at this point that I want my VI to input the command to begin taking measurements.
I was looking at the VISA Wait on Event and it looks like that could be used to wait for the device to output a "Serial Character" but there is no differentiation between letters and numbers that I can tell.
If the device is outputting numbers in the read string, of course, I do not need to input the command to begin taking measurements again, that will only probably confuse the device. In that case, I would like my VI to continue taking measurements with VISA Read.
The reason for this is that when I run the application, the device may have already been turned on. Sending that command to the device using VISA Write is unnecessary at that point.
Any advice would be appreciated. Thanks.
Solved!
Go to Solution.

That makes it alot easier.  In that case this will do the trick.  You'll notice that the bottom case does not match even though it has valid vaules inside of it.  The only thing that will match is if the entire string is of the form XX.XXXX.  By the way, since we are only matching numbers now, you can remove the "ignore case" boolean as it no longer matters.
Message Edited by SiegeX on 11-24-2008 03:58 PM
Attachments:
regex.png ‏4 KB

Similar Messages

  • Is there a way to differentiate from two iPod touches that are on the same iTunes acct when using iMessage? When one child sends a message the other gets it and it says it's from our email address.

    Both of my sons have iPod touches. I set them both up on my iTunes account. The problem we are having is when they are using iMessage. When one sends a message the other also receives it. The message is labeled as from my email address. Is there a way to differentiate the 2 iPods?

    See:
    MacMost Now 653: Setting Up Multiple iOS Devices For Messages and FaceTime

  • Is there a way to get string in *ai file without Illustrator?

    Hi. I have a question.
    1. Type 'hello' in Illustrator document and save.
    2. open file to text editter.
    3. find 'hello' in text editter.
    4. text editter alert "Cannot find 'hello'"
    Is there a way to get string in *ai file without Illustrator?
    If you have answer, share me please.
    Thanks for reading.

    You can convert songs to Mono.  First, go to iTunes > Preferences > General > Import Settings.  Under the encoder menu is another drop-down menu for Settings.  Choose "Custom" and you'll be able to select a choice for Mono.  Once that is set, use the iTunes > Advanced menu to create a mono version.  The original stereo version will remain in your library unless you choose to delete it.

  • Is there any way of extending a polynomial trendline in Numbers '09?

    Hi,
    The question title says it all really.  Is there any way of extending a polynomial trendline in Numbers '09, beyond the data that I currently have?  I can do this in Excel, but would like to be able to do this in Numbers too.
    Thanks,
    Nick

    Unfortunately there is no "forecast" feature for trendlines in Numbers. Wayne showed how to use the trendline equation from the chart to create additional data points for the chart.  This is by far the simplest way to do it in Numbers but it has two drawbacks:
    If your data changes, you'll need to manually readjust the coefficients for your forecasted point(s).
    The precision of the coefficients is only three decimal places. The forecasted Y values using these coefficients might not be as accurate as you would like. For example, compare the forecasted Y value in Wayne's table at X=20 to the one in the table below.
    You can avoid both problems by calculating the trendline coefficients in your table using the LINEST function. it is a little more work in the setup but it might save you time in the long run if your data changes a lot. Here is an example of for 2nd order polynomial:
    The last "real" data point is in row 10.
    Formula for column D =A
    Formula for column E =A*A
    F2 = the coefficient for X^2 =INDEX(LINEST(B2:B10,D2:E10),1)
    G2 = the coefficient for X =INDEX(LINEST(B2:B10,D2:E10),2)
    H2 = the constant =INDEX(LINEST(B2:B10,D2:E10),3)
    Note: If you later need to add an additional data point at the end of your data, go to the last row of your data (in this example it is row 10) and "add row below".  This way the formulas for the coefficients will adjust automatically to include the new row.

  • Is there a way to import iCal data into a numbers spreadsheet?

    Is there a way to import iCal data into a numbers spreadsheet?

    If you want to import lots of calendar events into Numbers, the general way to proceed would be to:
    export in CSV (character-separated values) from iCal (Calendar)
    import the CSV into Numbers.
    1. can be accomplished via AppleScript (perhaps in an Automator workflow) or, perhaps more convenient, a dedicated exporter app such as Export Calendars Pro or competitors.
    2. Importing into Numbers is usually as easy as File > Open and choose the CSV file.
    SG

  • Is there any way to differentiate between R12 gl records and 11I?

    Hello all,
    is there any way we can tell if a record is r12 or 11I aside from basing this on when we upgraded? We run reports that use reference_XX data from the g_je_lines table. The references have changed for R12 so we need to get the required data 2 different ways.
    Thanks.

    You can use je_header_id.
    Since it is sequential, you can say je_header_id >= x is R12.

  • Is there a way of passing a mixed cluster of numbers and booleans to teststand

    Hi,
    I have a labview VI that contains an output cluster containing both numeric and boolean results and would like to pass this to Teststand. At the moment I have coverted all my boolean results to  '1/0'  so that I can create a numeric array and can quite easily pass this to Teststand (using multiple numeric limit test). 
    Is there a way to pass mixed results to Teststand and write in the limits (example PASS and GT 5V) or do I have to stick with what I have?
    Chris

    Which test step type to use depends on what you have to analyze - a boolean condition? String? Number(s)? I can't tell you because I don't know what's in your cluster. If you click on the plus sign next to the parameter name "output cluster" you will see all paramters and their types, which are passed from the VI to TestStand.
    You can either create a variable for the whole cluster, or you can assign all or just some values from within the cluster to variables.
    The name of the variable (Locals.xxxxxxx... or FileGlobals.xxxxx...) ist what you type in the value field. You can also choose the variable from the expression browser by clicking on the f(x) button.
    Are you new to TestStand, do you know how to work with variables in TS?
    Maybe the attached picture gives you an example, there I am assigning the values from VI output "VoltageOutputArray" to the TS variable locals.VoltageMeasurement.
    This variable ist used again on the tab "Data Source" as the Data Source Expression.
    Regards,
    gedi
    Attachments:
    stepsettings.jpg ‏89 KB

  • Unique regular expression to check if a string contains letters and numbers

    Hi all,
    How can I verify if a string contains numbers AND letters using a regular expression only?
    I can do that with using 3 different expressions ([0-9],[a-z],[A-Z]) but is there a unique regular expression to do that?
    Thanks all

    Darin.K wrote:
    Missed the requirements:
    single regex:
    ^([[:alpha:]]+[[:digit:]]+|[[:digit:]]+[[:alpha:]])[[:alnum:]]*$
    You either have 1 or more digits followed by 1 or more letters or 1 or more letters followed by 1 or more digits. Once that is out of the way, the rest of the string must be all alphanumerics.  The ^ and $ make sure the whole string is included in the match.
    (I have not tested this at all, just typed it up hopefully I got all the brackets in the right place).
    I think you just made my point.  TWICE.  While the lex class would be much more readable as a ring.... I know all my brackets are in the correct places and don't need to hope.
    Jeff

  • How can I get my Recently Added back to how it was before I reset? Also, is there any way to sort a playlist by the numbering (i.e. 1, 2, 3)?

    Basically, I reset my computer (not rebooted; reset, as in wiped it clean) and backed up all my music. After putting the songs back onto my iPhone, the playlists like My Top Rated and Recently Played were empty, of course. For Recently Added, all of my songs were in there. I imported my playlists and most were back to normal. However, the first 13 songs in my Recently Added were the same as before I reset my computer, which I found really odd, so I figured that they were sorted somehow for that to happen--they had to be. The rest of the songs were all of my other songs.
    Anyways, I can't find a way to get my Recently Added to just have those 13 songs and it's really irritating me. Is there a way??? Yes, I've tried limiting to 13 items. I've also tried sorting by name, and the "most recently/least recently added" options didn't work either. How can I sort it by numbering, as in the actual numbers next to the Artist name???
    Also, notice how the first 13 songs are sorted by Name and after those songs, the rest are sorted by Artist Name. So, I'm thinking this issue is fixable. It's peeving me!

    lil9lovely3 wrote:
    For Recently Added, all of my songs were in there. I imported my playlists and most were back to normal. However, the first 13 songs in my Recently Added were the same as before I reset my computer, which I found really odd, so I figured that they were sorted somehow for that to happen--they had to be. The rest of the songs were all of my other songs.
    A smart playlist like "Recently Added" is based on the date that a track is added to your library.  Since you erased your computer and re-built your library from scratch, all your tracks are considered "recently added" because iTunes assigned a new date to each song as it was re-added to your library.
    Instead of re-building your library from scratch, and re-importing certain playlists you had saved, it might've been better to have simply recovered your "iTunes Library.itl" file.  That is the index that points to where all your song files are, and contains all your playlists, and has properties such as ratings, last played date, and date added.  As long as the native files for your songs are in the same place, you could re-use your "iTunes Library.itl" file if you saved a copy before you erased your computer (always back that file up along with your native files, the .itl file IS your library).
    As far as why the Recently Added playlist starts with 13 particular songs, then proceeds with the rest of all your songs in alphabetic order, it is possible that either you (or iTunes) started adding the songs back with the 13 most recent songs you had previously added to your library before it was erased, and once those were added then things proceeded by artist in alphabetical order.  Not sure, but there's really nothing you can do about that other than replace your .itl file with the original version if you still have it somewhere.

  • HT4399 I have a Mac Book Air and have purchased individually numbers and pages.  I was given an excel file on a thumb drive and cannot open it.  Is there a way to open the xcl file in numbers?

    I have a MacBook Air, and have purchased individually Numbers and Pages.  I was sent an Excel file on a thumb drive but cannot open the file.  The message states that the Excel file is encryeted.  Is ther any way to open a PC file on my Mac Book Air?
    Pat and Bob

    Excel does not use the .xcl extension for any of its native file formats?  The only files I've ever seen with xcl as the file extension were associated with embedded application code projects.
    If this is in fact an Excel file, but an encrypted one, you cannot open it (in excel or any compatible application) without the decryption password.

  • While use of IL01, is there a way to enforce entry of characters?

    When creating a new functional location using IL01,  is there a way to enforce entry of a character in each space?, to ensure there are NO blank spaces?
    I have a new FLoc Structure created.
    NNNNA-XXXXXX-XXXXXX-XXXXXX-XXXXXX
    The business is asking if there a way to enforce entry of a character in each space?, to ensure there are NO blank spaces?
    Can anyone know of way to enforce entry or has done this before?
    Thanks,,
    David.

    Hi David,
                  There isnt any standard solution for your requirement because for Blank Spaces also the system considers to be a Character.
    Regards,
    Yawar Khan

  • Is there a way to register non-speaking characters as characters?

    Last question for today, I promise:
    My script has a lot of non-speaking characters. I would like them to show up on the character reports. Obviously, whenever I highlight their names in the script and set them to "characters", their names are centered and formatted for dialogue, which makes the script totally confusing. Is there another way to mark these characters, whose names only appear in the "action", as characters?
    Thanks!

    You can manually enter "Non-speaking characters" for a scene from the "Scene Properties" panel on the right side.
    Also, if a word has been user as "Character" element at least once in the script, then in case it is appearing in Action element, it'll automatically be detected as a Non-speaking character.
    Thanks

  • Is there any way to open an .xlsb file in numbers?

    Our ad department has recently upgraded their windows PCs, and it seems the new default for Excel to save is .xlsb (excel binary workbook). Is there any way to open this in Numbers, or is my only answer to go over to them again and again, to get them to resave in .xls or .xlsx?

    jamilKC wrote:
    Our ad department has recently upgraded their windows PCs, and it seems the new default for Excel to save is .xlsb (excel binary workbook). Is there any way to open this in Numbers, or is my only answer to go over to them again and again, to get them to resave in .xls or .xlsx?
    Ask them to resave as .xls
    If they are polite enough, I'm quite sure that they may change their default format to .xls.
    Yvan KOENIG (VALLAURIS, France) jeudi 1 avril 2010 18:24:03

  • During diction, is there any way to differentiate between the number "2" and the word "to ?

    :

    Well, what you have just been witness to is the lack of A.I.  Without AI, a computer cannot properly comprehend certain convesational criteria.
    Humans and other animals do not take actions or words at basic face value.  They apply learned data from past experiences to better match the context of the actions or words presented to them.  Once their brain settles on a % of correctness, it spits out a response value for it.  Computers don't currently do that... at least not yet and those that have wannabe AI logic on them still have a hard time making the right decision.  For the most part, they go with face value based on programmed parameters that are always applied the same way.
    It's like the thermostat in your house.  It's been told that if it's below a certain temp it needs to kick the heater in, if it's above a certain temp, it needs to kick in the AC.  But, if the temp is below a certain value and you just happen to have a sweater on which is keeping you warm, the termostat won't know that it's OK for it not to turn the heat on to warm you up.  It's a crude example, but you get the idea.

  • Is there a way to create entry form/fields in Numbers.

    Can anyone let me know if there's a way to create an entry form/field in Numbers. The idea would be to have already created a list of contacts, then at an event on an iPad, people can check off if that person is there and also enter new contact info. Thanks in advance.

    Isnt this just a table? A list of people, with a check box field in the second column, followed by a few columns for contact info to be entered in?
    Jason

Maybe you are looking for

  • Multiline cell table problem

    hi all i found in this forum a class that implements TableCellRenderer and that should allow my table to have multiline cells. i need it because if the content of my cell (retrieved via jdbc from a db) exceeds the cell width is truncated and a "..."

  • Unable to connect to Salesforce using webservices (SOAP protocol)

    Hi Team, Our requirement is to consume Sales force WSDL (SOAP) with out PI involvement. We are having two WSDL's, one for Login to Salesforce and second one to exchange data. We have created consumer service and logical port's. A proxy class with few

  • Can't get footer div to show

    If anyone would like to help me here, I'd greatly appreciate it. I have given a single background image to a div surrounding my main content in a "faux column" layout. Problem is, my footer isn't showing up, even though I close the div tag before the

  • Solution Manager - Error when executing Job SM:EXEC SERVICES

    Hi, I am trying to get the data from the earlywatch alert report and when i start the job SM:EXEC SERVICES. The jobs starts but i get an error during is execucion: Runtime errors         SYNTAX_ERROR                                                  O

  • Resource management - headcounts

    Hi Experts, Has any of you have some experience on managing the role demand in terms of headcount (instead of week, days, hours)? Could you please share the approach to these solutions? Thanks in advance. Best regards, Neil