Simple comport problem

Hello

I have problem to find the difference between the example vi and mine. I just sent an ascii code simple with 3 characters and CR LF at the end. If I run ' basic series write and Read.vi "in the examples, it works fine. BUT, if I accumulate by myself, even if I use the same components, it not send \r \n as characters as commands.

Can someone cause a glance on it?

MFG Rainer

LV 8.5.1

Hey Rainer,.

When you insert your string to write? If you use the "Schreibpuffer" entry, you must change the type of view for "code view" and then insert the "\r\n". Right-click on the control (in the public Service) and select "display-Code.

At the moment you send '\n' as the latter sign. If you don't want it, then change the Boolean constant false.

It will be useful.

Mike

Tags: NI Software

Similar Questions

  • Very simple ExternalInterface problem :)

    Hello world

    I have a simple question/problem here that in my opinion should be very easy to fix, but I can't find examples of work there!

    What I have now:

    A simple .swf with a function that makes a movieclip (ball_mc) moves to the right called when a button is clicked in the html page:

    import flash.external.ExternalInterface;
    import flash.events.Event;
    
    ExternalInterface.addCallback("sendDataToFlash", moveBall); 
    
    function moveBall():void 
    
         {
              ball_mc.x = ball_mc.x + 20;
         } 
    

    And in my html, I have the following javascript code:

    <script>
    function moveBallOnClick() {
    getFlashMovie("ExternalInterfaceExample").sendDataToFlash();     }   
    </script>
    

    And then I call this function as follows:

    <form>
    <input type="button" onClick="javascript:moveBallOnClick();" value = "Move Ball" />
    </form>

    AND IT WORKS BEAUTIFULLY!

    It's just a simple button and I have a click and move the movieclip

    What I want to do:

    Instead of using the button on the form, I just want to do exactly the same thing but with a hyperlink instead.

    I use the button on the form in my html code now is because after 5 days of internet research, I just could not find a single example of running only a simple function. They were all examples of the sending of forms of text and so on, so I just simplified there from there.

    I want to just do exactly what Im doing now, run the function moveBallOnClick, but not with a form button, just with a normal hyperlink!

    Thank you very much in advance for anyone who can take a look at my problem and may offer assistance :)

    Good bye

    I think that you can just do something like this:

    Move the ball

  • simple table problem

    I have read some data from a text file and form a table according to my requirement (the illustrious photo attached).

    What my problem was when I used this table in an other vi through the connector components, all the lines in the resulting table the width of the line of maximum size, and are filled with zeros.

    How do I remove it? I need the lines ending with its own values, here in my case two first rows should have 5 items in the table, the elements of line 7 third and so on...

    Your VI makes no sense. Why not autoidenxing? Why "delete from table?

    Here's a simple possibility (just to write the resulting string in a file).

  • Simple variable problem

    It is a really simple problem and I'll probably be a little dim but as I do not code things very often simple things tends to leave my brain.

    Summed up quite simply I have an if statement which, instead of using the current value of a variable appears to be implemented.

    More detailed description:

    I have 2 symbols, 'Olive', which is a three marked positions timeline animation, ' open, 'enabled' and 'closed' who defined the value of the variable 'positionO' as a result. I tested this little with alerts and is very well.

    When I mouse over the second symbol I want to retrieve the variable and play different parts of the animation depending on its value, well?

    I have this piece of code on the mouseover element:

    var myVariable = sym.getComposition().getStage().getSymbol("Olive").getVariable("positionO");
    if (positionO = 'open'){
    alert (positionO);
    }
    

    Now to me, this should trigger the alert if the variable is set to 'open' and do nothing if the value is something else, but what he is doing is setting the variable 'open' and shooting alert anyway.

    Thanks in advance,

    Alex.

    Try this (equal) 2 for comparison:

    if (positionO is 'open') {alert (positionO) ;}

  • SIMPLE ILLUSTRATOR PROBLEM... HELP PLEASEEE

    INTRO
    Hey if I design a logo for my uni course and its due soon and I need help on something very simple.

    OVERVIEW
    I drew a picture using the online tool, all the lines are connected by creating various forms...

    PROBLEM
    I need to know how to fill it with the color... I don't can slect the forms I want to fill and use the object-live paint-making. but tht means I can fill only... I need to be able to use the NET tool to create effects...

    any help would be greatly appreciated. Thank you

    Problem is when you use the online tool, where the two lines intersect, they remain as separate entities. In other words, the online tool was design to create a line. However if you want to take the time, you can use the point selection tool (one on keyboard in lowercase) slide select the corner where they intersect, right-click, and select attach (windows) (also oppose > path > will work join or ctrl-j), select the type of angle you want, and then click ok. And repeat for each corner.

    When you're done you can give it a fill or a color path and size.

    Or create a new layer (optional: change the color of the path to make it easier to see what you are doing)

    lock the old layer,

    Select the pen tool and click on the top of each corner (point or anchor).

    When you reach the last point, the cursor will change to tell you that you close the path.

    At this point, you can change the size/color fill and path.

  • Very simple messaging problem...

    I want to go back to the mac mail view where each piece of e-mail show content, including graphics.  When you scroll to this topic you can see this because it is located in the mailbox.  Hard to describe.  but when we work to add gmail for e-mail, the e-mail screen has changed and I can't find a way to get it back to the old style.

    Hi Revkurtak,

    Thank you for using communities Support from Apple! I'm sorry to hear you're having this problem with your Mac. If you use Mail in 10.7, you can see if the option "available classic use" is selected; It is found in Mail > Preferences... > watch one, near the top of the window. You can try to turn this option on or off and see if you get your favorite Mail view.

    See you soon

  • A simple keyboard problem.

    My keys are does not record the symbols to the right. The letters are OK, but are not symbols. I use a basic wired keyboard that isn't any driver disk.

    For example, the @ product key "- and vice versa."
    I don't know where to find the pound sign!
    I recently had to reinstall Windows XP and have done everything to British English. Perhaps, I missed a setting inadvertently.
    I'm sure it's a simple framework, but do not know where to look.
    Any help would be appreciated.
    Kind regards
    Alex Knell

    My keys are does not record the symbols to the right. The letters are OK, but are not symbols. I use a basic wired keyboard that isn't any driver disk.

    For example, the @ product key "- and vice versa."
    I don't know where to find the pound sign!
    I recently had to reinstall Windows XP and have done everything to British English. Perhaps, I missed a setting inadvertently.
    I'm sure it's a simple framework, but do not know where to look.

    Any help would be appreciated.
    Kind regards
    Alex Knell

    You use the wrong keyboard layout...

    To change it, click the start ORB, click Control Panel, and then click on the region and language. Click the keyboards and languages tab and then change keyboards and choose one that suits you.

  • Simple Regex problem with symbols

    I need split a text and get only the words, numbers and hyphenated compounds-words. I need to get words from latin too, then I used \p{L}, which gives me e u u a and so on. The example is:

    String myText = "of the latin text with symbols? 987 (cutting-edge Southeast of the island stands the Notre-Dame Cathedral, which was at its completion in 1330, one of the largest cathedrals West):! @ # $ % ^& * ( ) + - _ #$% " ' : ; > < /--------| "here some is wrong... * + (e)-

    Pattern pattern = Pattern.compile("[^\\p{L}+(\\-\\p{L}+)*\\d]+"); "
    String of words [] = pattern.split (myText);

    What is the problem with this regex? Why it matches symbols like "(", "+", "-", "*" et "|"?) "

    Some results are:

    dress / / OK
    Southeast / / OK
    West) / / BAD
    987 / / OK
    () / / BAD
    (a / / BAD)
    * / / BAD
    -/ / BAD
    + / / BAD
    (/ / BAD)
    | EVIL

    P.S.:
    The explanation of the regex is:

    [^ \p {L} + (\-\p {L} +) * \d] +

    * Word breaker will be:
    * [^  ...  ] No sequence in:
    * \p{L}+ any Latin letter
    * (\-\p{L}+)* possibly a hyphen)
    * \d or numbers
    * [...] + one or more times.

    Try to divide as it will always be difficult as you try to match what you don't want. I would use Pattern.find () looking for things I want. Something like

    
           Pattern p = Pattern.compile("(\\p{L}+([-']\\p{L}+)*)|\\d+");
                Matcher m = p.matcher(myText);
            while (m.find())
            {
                System.out.println(m.group());
            }
    
  • ? simple printer problem

    iMac 21.5, Fusion 3, XP, HP5610 AIO

    My printer, above, will only print in XP when I suspend XP.  In the "Printers and faxes" window the printer is laballed 'ready', but the box is black and white and not green.

    Have you read the above linked Articles and followed the steps to try to solve your problem?

    The information you presented at the opening of this thread, I have to agree with the assessment of Eric and do what he suggested, or at least how to move the printer is connected directly between the host and the guest via USB and unplug the printer USB of the virtual machine.

  • Activation of DPS simple editing problem

    Last week, should apply in the creative cloud.

    Unique Edition of DPS ipa, zip store always why not?

    DPS simple editing (ipa, zip down and submit to appstore). I would like to use.

    qaadobe.jpg

    You can create a simple editing in this way with creative cloud application.

    Open the Panel builder folio in InDesign and choose Create App.

    Bob

  • Simple CSS problem... I hope.

    Hello world

    I am very nw web design and I have a very basic problem, which is:

    CSS background on the body. (using DW CS3)

    All I would do is have an image in the top, left, and repeat-x, I can get it, is the easy part, the problem I have is that nothing else shows when I Preview in the browser, NOTHING else, without tables, text, iamge, just repeat body background image?

    any help would save my mind of the explosion, thank you.

    What do you mean nothing else shows?

    I just copied the html and css code and I see the table and the text very well. However, I'm on CS4.

    I notice you have a lot of empty table cells. Try to insert nonbreaking spaces - & nbsp;  (remove the space after the &) in empty cells. I don't know if CS3 has had a problem with the empty table cells.

  • Simple game problem

    I'm trying to lay the groundwork for a simple platform game. I start the game, a short animation applies when the controlled player character collides with an invisible (alpha = 0) object. This seems like it should be very simple, but after searching the web for a long time, I have not been able to find a piece of actionscript code that does this simple task. I work in Flash MX and tried many variations on this code, and none of them have worked:

    onClipEvent (load) {}

    {if (this.hitTest (_root.char))}

    gotoAndPlay (2);

    }

    }

    I tried to put this code in the actions of the invisible trigger of the animation, as well as to put a piece of code by replacing ".char" with ".triggera" in the actions of the character

    I put it in place so that the game playable is frame 1, and the short animation is frames 2-90, concluding in another form of game.

    Help, please!

    probably your hittest must run repeatedly (unless you don't want to run a hittest loading your object).  for this reason, place the hittest in a onenterframe loop.  You should also attach any code to objects.

  • Simple interpolation problem

    Hello I just started to play round with Flash.  I'm a tutorial on interpolation but am having a problem.

    All I'm trying to do is move a chart (converted to symbol) from one side to the other.

    However, when I try to put it in the "motion tween" keeps telling "multiple items are selected, you must convert them to a symbol in order to interpolate.»  You want to convert and create a Tween? " If I click 'Ok' it happens with ' interpolation can not apply to some of the selected frames."  This could be due to the image containing the ActionScript, several objects, non-interpolable objects or be on a layer that may not be a Tween layer'

    Can someone tell me why they think that what is happening?

    I'm sure its really easy, but its frustrating me and I've been sitting trying to get by for centuries!

    Thank you!

    Hey clemas, I had the same problem as you. You look at these tutorials? The creation of 2D animation to help animate CC | Tutorials of CC animate Adobe . I discovered that I had not converted to separate symbols. F8 is the shortcut. Hope this helps.

  • simple variable problem and question preloader

    I am new to AS3 and have a problem with the following code:

    Stop();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var homeText:URLLoader = new URLLoader();
    var slideLoader:Loader = new Loader();
    var sprContainer1:Sprite;
    var projectPath:String;

    LOADING XML

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);

    xmlLoader.load (new URLRequest("XML/main.xml"));

    function LoadXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    ParseCategories (xmlData);
    }

    PARSE XML
    function ParseCategories(projectInput:XML):void {}
    This. Title.Text = projectInput.category.project[0].@name;
    projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
    trace (projectPath);

    }

    LOAD THE TEXT FILE

    homeText.addEventListener (Event.COMPLETE, onLoaded);
    homeText.load (new URLRequest (projectPath + "/ text.txt"));

    function onLoaded(e:Event):void {}
    this.homeTxt.text = e.target.data;
    }

    IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE

    sprContainer1 = new Sprite();
    homeImg.addChild (slideLoader);
    slideLoader.load (new URLRequest (projectPath + "/ image2.jpg")); < < CURENTLY LOADING AN IMAGE

    The above code shows how to load an XML file that contains the path to the text and image files, I am able to trace the path correctly in the service of ANALYSIS above, but I'm not able to recover the variable (or he also traces) in the TEXT section of the LOAD, please help.

    As I continue to code, I would also like to dynamically load images multiples (in the section LOAD IMAGES) using the projectPath and iterate through each image appearing in an XML file. I'm still not at this time, but my question is how to create a preloader/progressbar that overall progress is displayed for all URL requests (the text file and several images contained in the XML file). Thank you immensely.

    :

    Stop();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var homeText:URLLoader = new URLLoader();
    var slideLoader:Loader = new Loader();
    var sprContainer1:Sprite;
    var projectPath:String;

    LOADING XML

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);
     
    xmlLoader.load (new URLRequest("XML/main.xml"));
     
    function LoadXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    ParseCategories (xmlData);
    }

    PARSE XML
    function ParseCategories(projectInput:XML):void {}
    This. Title.Text = projectInput.category.project[0].@name;
    projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
    trace (ProjectPath);

    useProjectPathF();

    }

    LOAD THE TEXT FILE

    function useProjectPathF() {}

    homeText.addEventListener (Event.COMPLETE, onLoaded);
    homeText.load (new URLRequest (projectPath + "/ text.txt"));

    }

    function onLoaded(e:Event):void {}
    this.homeTxt.text = e.target.data;
    }

    IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE

    sprContainer1 = new Sprite();
    homeImg.addChild (slideLoader);
    slideLoader.load (new URLRequest (projectPath + "/ image2.jpg"));

  • Need help with a &amp; quot; simple &amp; quot; problem :)

    Hello everyone!
    I would be very happy if someone could help me! I created a test with AW and it works very well. My problem is that in the file ".txt" is created (appendextfile), 'firsttrycorrect' responses continue to add themselves among the exercises. How can I do to set the meter to zero, so that each exercise has is own number of right answers? What I have to restart each time the file? !
    Thanks in advance...

    Just to be clear: you want to use the FirstTryCorrect variable;
    the FirstTryCorrect variable to reset when you access the following year? Try
    Initialize (FirstTryCorrect) at the beginning of the next fiscal year.

    HTH;

    Amy

    "oukaischunomai" wrote in message
    News:fmo42t$s7o$1@forums. Macromedia.com...
    > Thx reading me :) I'll try to be clear, but I'm sorry that I don't know AW
    7 >
    > very well and my English is not good...! If I create a program:
    > first
    > first, the person must enter its name ("username") and a .txt file
    > is
    > created in his name. The person must then click on a button
    > to
    > choose what he or she wants to study (he or she has the choice between 3
    > exercises:
    (> active/passive/parent phrases). In all the exercises, the person must
    > read a
    > wrote the sentence and then choose the image corresponding to the sentence
    > between 4
    > choice and finally click on it (I created an interaction and 3 answers
    > have
    (> the status of 'bad' and only 1 has the 'correct' status). Then it goes to
    > the
    > following sentence. At the end of each fiscal year (active/passive/parent), the
    > results are documented in the file .txt created previously (I put simply:)
    > AppendExtFile (username ^ ".txt";) FirstTryCorrect)), so I can have a
    > your comments
    > on the performance of the person... I hope it is clear enough for the
    > time? :) My problem is: when the person starts the 2nd exercise
    > (passive).
    > maintain the correct answers in addition to them from 1
    > exercise
    > (active). So my question is, how can I do, for the good answer «»
    ' > counter "is back to 0 at the beginning of each new fiscal year?
    >

Maybe you are looking for

  • Dismiss the iOS 10 Timer

    Does anyone know of a way to change the style of the iPad in iOS 10 timer notifications? In earlier versions, a timer at the end of the notification was similar to an alert HTML he had an OK button visible on the background. This allowed quick refere

  • My new iPhone is nagging me to enter my password for an Apple ID, I have not used for years

    I have been using my current Apple ID for about 5 years with no problems until now. Having lost my old iPhone and bought a new 6s, I launched a de-iCloud-backup restore on, this new phone is tenacious in all sorts of random times on my previous Apple

  • Manufacturer of dough/paste heat stock in Mac

    Hello! Anyone know who is the manufacturer of thermal paste stock, apple uses in Mac, especially in the MacBook Pro since their introduction? And Apple provides their service centers all over the world with it?

  • Information about syncing between a mac and another mac?

    I use notes on my MacBook, my iPhone and iPad. They all have the sync very well in all directions. I also share my notes with my wife. She also has a MacBook Air, an iPhone and an iPad. To do this, I added my iCloud account to its devices and use it

  • Satellite M40-237: CD Boot does not not + is possible startup USB key drive

    * Model: Satellite M40-237 (PSM40E) *. I decided to reinstall windows, my hard drive is now formatted. So as usual, boot from the Windows CD is necessary to start the instalation but it does not start. I never had problems like this, always worked bo