Is there a way to differentiate the string containing the characters and numbers?

Hello, I created an application to read data from a serial port device. The problem is that the device, at startup, displays a block of text that contain characters describing the device. Shortly after, he displays a command prompt "command:" it's when I want my VI to enter the command to start to take action.

I was looking at the VISA waiting on the event and looks that could be used to wait for the output device, only a "Serial character", but there is no distinction between the letters and numbers that I can tell.

If the device is out of numbers in the reading string, of course, no need to enter the command to start to take action once again, which will probably only confuse the device. In this case, I want my VI to continue taking measures with VISA Read.

The reason is that when I run the application, the device may have already been turned on. Send this command to the device using VISA Write is not necessary at this time.

Any advice would be appreciated. Thank you.

This makes it much easier.  In this case, this will do the trick.  You will notice that the bottom of the case does not match even if it has valid values inside.  The only thing that will match if the entire string is of the form XX. XXXX. Incidentally, since we are only matching numbers now, you can remove the "ignore case" Boolean as there is more important.

Tags: NI Software

Similar Questions

  • Is there a way to copy the drivers and setup of the drive from the computer and transfer them to the reader of the dead computer?

    Separated from this thread.

    Is there a way to copy the drivers and setup of the drive from the computer and transfer them to the reader of the dead computer?

    Hello

    You cannot copy the drivers installed anyway.

    Saving your files:

    You can remove the hard drive and put it in a hard drive USB enclosure > plug it into another computer > and try to read and copy your data in this way.

    See you soon.

  • Is there a way to parse a string containing % (percentage symbols) using the function 'analysis of the chain?

    I am communication in series with a mirror device and the syntax of the input string contains this text: "% hr ="

    I was not able to find a way to say to the function that the percentage here is not a format specifier. Is it possible, or should I just try to use a different function?

    Thank you.

    Use %% in your format string for what he knows to use the percent literally.  So % RH = %f

    EDIT: Darin has one here in front of me.  It seems to be-% and % both work.

  • Is there a way to disable the melody and the optimization of the variables?

    There are moments where you want to disable all the variables TUNE because when all are active, it is quite difficult to find the desired height variable and it may be lag sometimes.

    If I want to disable all the TUNE and or optimization of the variables at once, is there a way?

    A quick way to access to * all * the Tune and the optimization variables is through the DISPLAY VARIABLE BROWSER or SHIFT + F7 menu item.

    The first picture shows the sample LPF_lumped project variables unsorted.

    Left-click on the column header will sort and pull all verified variables to the top where they can be easily selected.  A second click will reverse the sort.

    The second photo shows the columns sorted and ready for clearing.

    Please try this and see if it works for you.

    Best regards

    Vivek.

  • Is there a way to set the header and footer of page up/down banners?

    We use the Apex 4.2, recently a new requirement came for our standard header and footer banners to be attached to the page.  Does anyone know how to do this?  I searched the forum and have not found something that works so far.

    We use the 24 theme, currently our header and footers are defined on each page using the page "header text" level and

    fields 'footer text.  We use "a level tabs - no sidebar" page template.

    Currently our header and footer banners are scroll with the content of the page and now it is no longer acceptable.  Somehow need to fix these so there always visible at the top and bottom (similar to the toolbar) developer on wallpaper.

    Any help would be appreciated.

    Thank you

    Joe

    Joe,

    You can create the header/footer within a region of html with a div. something like this:

    This is the footer text

    Where at the bottom: 0; It fixed to the bottom of the screen, as the developer tool bar Apex and top: 0; It fixes to the top of the screen.

    I would create this html area on page 0 so that you can display on all pages.

    If you want to get real fancy, create the region html page 0 with a div with a class name of "footer":

    (Once again, for the header to create a similar class with top: 0 ;))

    Then, create a dynamic action on the zero page that fires on the action "Resize" and runs the following javascript code:

    $(«__div.footer").css ({}

    left: ($(window) () .width / 2)-($("div.footer").width () / 2)

    });

    In this way the header/footer will be always centered.

    Let me know if it helps

    Christoph

    http://ruepprich.WordPress.com

  • Is there a way to limit the volume and not only for music?

    Hello

    I have a child who loves the max volume. However, it is not only bad for his ears, he pushes the rest of the family crazy.

    As much as I saw him, he has no control master volume where you can limit the volume - that it JUST for music, leaving the rest of us stranded.

    I tried mental health of volume app, but since it's an app, it can be disabled without a password and so my child understood how close. So that one does not work.

    Anyone know of another way to limit the amount of EVERYTHING?

    Hi Makkapakka777,

    I understand that you like to limit the volume on your iPad so that it cannot be increased beyond a certain point. Fortunately Restrictions allows you to set a volume limit that requires an access code to remove. The article below the link provides more information about the configuration and use of the Restrictions.

    Restrictions of use on your iPhone, iPad and iPod touch
    https://support.Apple.com/en-us/HT201304

    Kind regards!

  • Is there a way to hide the warning and error messages?

    Hello!

    In the context of a client project, we will convert PDF old forms of IFD (JetForms, designer of output).

    AS the IFD files are old technology, there are a lot of problems when I import them into LC Designer and a lot, a lot of warning and error messages come on the form, makes it difficult to edit and correct the fields and other objects, such as messages keep clutter it.

    Now, is it possible to delete these messages temporarily to make my life easier?

    Thanks for the tips!

    Marcos

    In the designer in the menu Tools/Options/wizards and advice, uncheck checkboxes settings in this menu.

    Paul

  • Is there a way to smooth the zooms and pans which are not consistent throughout?

    Shot some footage using a digital SLR camera and a tripod grip of squeeze, images is good except the zooms and pans are not too smooth

    how I wish that they. Anyway to fix this?

    Reshoot cos it's hard impossible.

  • decoding-best way to decode the characters to numbers using a conversion table

    I string input that contains mostly the numbers, but in the end there is the 2-character code which means a country, like "EE" for the Estonia, or 'LV' for the Latvia and so on, see example of input value:
    select '9999123456789012EE00' input, null output from dual;
    I want in the output column value where these 2 characters are decoded/replaced by numbers with the following algorithm:
    1. replace in the input string of characters 9999123456789012EE00 numbered 14 and 14 the output would be 9999123456789012141400.
    2. the 14 was especially the letter 'E', all the alphabet is encoded as follows:

    A = 10
    B = 11
    C = 12
    D = 13
    E = 14
    ..
    Y = 34
    Z = 35

    Thus, the '9999123456789012LV00' value must be converted to 9999123456789012213100 (L = 21, V = 31).

    What is the best way to achieve this decoding in sql/plsql?

    Published by: CharlesRoos on March 16, 2010 03:52

    Maybe

    SQL> with t as (
      select '9999123456789012LV00' input from dual
    )
    select input,
           regexp_replace (input,  '[[:alpha:]]+',
                           (ascii (regexp_substr (input, '[[:alpha:]]')) - 55) || (ascii (regexp_substr (input, '[[:alpha:]]',1,2)) - 55))output
    from t
    /
    INPUT                OUTPUT
    -------------------- ------------------------------
    9999123456789012LV00 9999123456789012213100
    1 row selected.
    
  • BlackBerry smartphones is there other way next to the copy and paste a number to add it to an existing contact?

    Is there an easy way to save a number to an existing contact next to copy and paste the number? I received an sms, I wanted to record the number of the person who send it, but I don't want to create a new contact profile. Any ideas?

    Thank you.

    Within the existing native OS, copy / paste it.

    I bought an app very simply wonderul who does what it takes... AddToContact, can add to an existing contact.

    http://www.blackberryapps.com/product.asp?ID=28446&n=add-to-contact-2

  • Is there a way to change the parameters of PSI of documents without loss of information?

    Hello - we got a Kodak scanner and a program he is come with to scan old files (real files, not the files) for storage, then we could free up space. We have just started using this, but I have a question about the PDF files that stay us with.

    For starters, the scanner is set to 600 lb/po2, hoefully we can change that and the program Kodak that it came with. I think that the program reads the text in the scans to register as memory. When they are finished, we can search for a name, the word, the date, place... to find and it automatically will give us a list of locations.

    Here's the number one question, if change us the parameters of PSI to 150 lb/po2 or 72 lb/po2, he will still get this info, or should it remain at 600 lb/po2 FYI text?

    Secondly, we now have the scans that we have scanned at 600 lb/po2, but the files are huge!  2000 pages = 400 MB - is there a way to lower the PSI and keep data of the pages stay in the files? It is very difficult to work with a 400 MB file with 2000 pages without my Acrobat gel, and Yes, it is a complete program of Acrobat 8 and not just a player. I know in Photoshop/Illustrator, I can change the psi and shrinks the file size, but it also changes the print options later.

    Just try to find some other info before going any further.

    Thanks for any help, I know I asked what model scanner and Kodak program we use, but currently, I don't have this info. I was wondering the information is erased if the PSI file is reduced.

    Sean

    I would keep the 600 absolutely no less than 300. More DPI is greater the accuracy of the conversion. You end up with too many artifacts that cannot be converted when you go to less than 300.

    You and always optimize the PDF file after conversion.

  • Is there a way to replace the series I use?

    I was using a student permit until the last few days and now bought a lot. Is there a way to replace the serial and more key reinstall the plug-in?

    Thank you.

    With the plugin the first raise after deactivation takes you back to the mode of trial in silence.

    If you raise again if she must invite for a new SN.

    -Chris

  • Is there a way to differentiate between a conference and music?

    Is there a way to differentiate between a conference and music on my I Pod Touch?

    By the title/subject.

    In iTunes, you can change the media type between;

    -Music; goes in the music app

    -Podcast, go to podcast app

    -iTunes U

    -Audio book, and

    -Voice memo

  • I replaced my original Apple Watch with a watch of S2. When I install and associate the new shows, is there a way I can restore all applications, configuration information and data of the original of the new shows so I don't have to start from scratch?

    I replaced my original Apple Watch with a watch of S2. When I install and associate the new watch and my iPhone 7 more, is there any way I can restore all applications, configuration info and data between the original and the new shows, so I don't have to start from scratch?

    Try this procedure

    Cancel the twinning of your iPhone - Apple and Apple Watch Support

    Spend your Apple Watch a new iPhone - Apple Support

  • Is there a way to change the returning to the previous lock screen "click on" sound?  In the last update, the sound has changed.

    In the last update, lock/nattering screen changed, is there a way to change the click / sound, so that it is similar to the sound of the previous version?

    # Which is integrated into the iOS and there is no user input that can change.

Maybe you are looking for

  • Best storage for Mac Book Pro?

    I'll take a new MacBook Pro 512 g tomorrow. It will take place at El Capitan. Should which remote hard drive I expect with her? Speed and durability are my biggest concerns. Thank you in advance.

  • FN button can be disabled?

    Hello: HP Pavilion 27 All in One PC On my new American Eagle keyboard function keys do not work unless I also press the FN key. My last keyboard function keys who worked with a single press of the function button. Is there a way to disable the button

  • Intel HD Graphics

    I had an upgrade of the system board, not having the BIOS on my M92z all-in-one. Now who is solved, but I more the Intel HD graphics device, but simply a feature of AMD graphics. How to bring back the Intel graphics? I don't see no entry in the BIOS

  • A1 battery charge

    I charged my battery yesterday b/c, that we travel. Off WiFi (always disable it by not using) until it has received a green light. This morning, when I went to use battery warning at 2%. My battery down never really 'sleep' mode. Any ideas what's hap

  • vFoglight storage 2.0.2 for 3PAR storage

    Hi all I would like to ask whether it is possible to add storage HP 3PAR with the latest version of the SAM downloaded directly through the console of vFolight. I found the following KB that specifies that this was listed as a future improvement on t