How to make a terminal program (similar to windows hyper-terminal but more powerful)?

I am a new Labview user, Im trying to write a monitor program for use with uControllers. The main problem I cant seem to get over is to have a section of the screen where I can type in commands (that are sent only once!) then recieve a reponse from the uController directly under the command. Has anyone tried this?
I am using the VISA read/write functions for serial communications, are these interrupt driven?, does anyone have ideas on this.
Thanks in advance
Dave Zdanowicz

Hi,
Doesn't your device maybe have an "echo"? Than, I guess, the easiest
way would be to have two independently running VIs, one of which is
repeatively checking the serial interace for incoming bytes and
eventually displaying them in an apropriate indicator (e.g. a string
indicator where all incoming new characters are appended to the old
string via a shift register of a loop). The other VI then could be
responsible for sending commands.
It did something similar just resently. It works quite well. The
command sending VI had some buttons to send kind of macros (several
commands, often needed in combination, bundled together) and
furthermore checked the keyboard with the keyboard VIs from the NI
pages for additional inputs from the user, which were then just sen
t
to the serial interface byte by byte.
Regards
Arno
On Tue, 17 Apr 2001 16:20:10 -0700 (PDT), Dave Z wrote:
>I am a new Labview user, Im trying to write a monitor program for use
>with uControllers. The main problem I cant seem to get over is to have
>a section of the screen where I can type in commands (that are sent
>only once!) then recieve a reponse from the uController directly under
>the command. Has anyone tried this?
>I am using the VISA read/write functions for serial communications,
>are these interrupt driven?, does anyone have ideas on this.
>Thanks in advance
>Dave Zdanowicz

Similar Messages

  • How to make a Java program that recognises a function of two variables...

    How to make a Java program that recognises a function of two variables to assign values to that?
    First I will give an example and then do the question.
    Ex1.
    We have any function, eg.y = x ^ 2 + 1 (read 'y' equals 'x' high to the square), a function of the second degree.
    To build the graph of this function attach values to 'x' to find the values of 'y'
    And thus mount the pair ordered (x, y) which represents a point on the Cartesian plane.
    Assigning values to 'x' 'we can build up a table that gives us the pairs ordered:
    We can use any numbers, but arfer interval [-3.3]
    X | y = x ^ 2 + 1
    -3 | Y = (-3) ^ 2 +1 = 10
    -2 | Y = (-2) ^ 2 +1 = 5
    -1 | Y = (-1) ^ 2 +1 = 2
    0 | y = (0) ^ 2 +1 = 1
    1 | y = (1) ^ 2 +1 = 2
    2 | y = (2) ^ 2 +1 = 5
    3 | y = (3) ^ 2 +1 = 10
    We then ordered the pairs:
    (-3.10), (-2.5); (-1.2), (0,1), (1,2), (2,5), (3,10)
    Tabem that can be represented by a table:
    X | y
    -3 | Y = 10
    -2 | Y = 5
    -1 | Y = 2
    0 | y = 1
    1 | y = 2
    2 | y = 5
    3 | y = 10
    Now I begin to explain my doubts.
    See this program:
    Ex2
    * To change this template, choose Tools | Templates
    * And open the template in the editor.
    Encontrando_o_valor_de_y package;
    * @ Author des Soldat Gottes
    Import javax.swing.JOptionPane;
    Public class (Main
    * @ Param args the command line arguments
    Public static void main (String [] args) (
    Int x, y;
    String x1;
    X1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',"); / / receives a value for the function y = x + 1
    X = Integer.parseInt (x1); / / tranforma String in int
    Y = x + 1; / / receives the value of 'x' and calculates' y '
    JOptionPane.showMessageDialog (null, "The value of 'y' is: \ t \ t" + y);
    / / Displays the value of 'y'
    System.exit (0);
    We see that the program receives above a value for 'x' and replaces the function contained in the program, y = x + 1, and so is the value of the variable 'y'.
    In: x1 = JOptionPane.showInputDialog ( "We have the function y = x + 1 \ n" +
    "Assign a value for 'x',");
    The entry is a number and that number is assigned aa ja existing function in the (y = x + 1).
    The question is: would it be possible to come to a function?
    Ex: the program ask: DIGITE THE FUNCTION?
    The USUARIO DIGITARIA A FUNCTION ANY, TYPE: y = x ^ 2 +1
    The program would recognize the function and give numerical values to that function as Ex1, at the beginning of this text.
    And then to find the values of the x and y launch a table.
    It would be possible that?
    By invez of entering with a number so that the program sustitua a function ja existing as Ex2, seen above, entering with a function quaquer (type: y = x ^ 2 +1) for the program atribuisse values to that function and then create a table of values as Ex1.
    I hope it has been easier to understand my doubts now.
    Thank you for your attention!
    God bless!

    rafaelmenezes wrote:
    Thanks for the explanation, could understand what fly said.
    But as it applied to a program?
    How to create a program that recognizes that the entry coefficients?Are you asking about how to parse out the coefficients from the string "3x^4 + 4x^3 - 8x^2 + 5x^1 + 2x^0"? If you define the format to strictly follow that example, this should get you started:
    Strip out the spaces
    Split the String on "x^"
    That should give you [3, 4+4, 3-8, 2+5, 1+2, 0]
    Split each resulting String on "+ | -", preserving the operator as a token so you can apply the correct sign to the coeff.
    That should leave you with [3, 4, +, 4, 3, -, 8, 2, +, 5, 1, +, 2, 0]. Every other number is a coeff, the rest are the degrees.
    You can strip out the +, since those coeffs are already positive, and strip out the - after negating the following number. This is all assuming that you have to write this yourself. There is no doubt already a library or 5 out there that does this for you.

  • How to make add the program system.out messages to a applet text field?

    How to make add the program system.out messages to a applet text field?
    System.out.println("I wanna displany this message on a applet text field, thanks");

    You may wish to change the output destination to a JTextArea. Please have a look at this link that likely shows what you want:
    [http://forums.sun.com/thread.jspa?forumID=54&threadID=640376|http://forums.sun.com/thread.jspa?forumID=54&threadID=640376]
    If you need other examples, search the forum. I found the search terms -- redirect system out textarea -- very helpful.
    Good luck

  • How to make a java program, that can be used by c++ application

    I'm developing a Java web application (WEBapp), but I have also a c++ program.
    C++ program must use WEBapp method to communicate on the web.
    How to make a Java public function that accept value, elaborate, then return the resul to c++ application?

    jschell wrote:
    You have C code.
    You have Java code.
    The two must communicate.I have a c++ program, and a Java program.
    C++ program wants to communicate on the web (send text), and I'm trying to add this functionality to it creating a Java program.
    NOW THE PROBLEM? How c++ program can use java-program (in local) to send data on the web?
    You can just JNI to communicate either from java to C++ or from C++ to java. That is direct communication in that there is a single process involved. Thus you will no longer have a java application and a C++ application but rather a single application.I don't know JNI, i found http://java.sun.com/docs/books/jni/ and I think is too difficult to implement?
    You can use files or sockets to communicate. Using sockets allows for any number of additional protocols including the previously mentioned web services. Those methodologies would allow more than one application to exist.I developed yesterday a java-side-interface using socket (in local host 127.0.0.1). So the c++ program must write or read to/from the socket to comunicate to java (then the java program send data on the web).
    Finally it might be the case that you have a C++ application which you cannot modify. In that case then you MUST use whatever input/output mechanism that it supports. There is no choice. And until you have fully determined what those mechanisms are it is pointless to discuss a solution.I can modify the application, but I don't have developed it. The c++ application use a third-part dll (taken from SKYPE) to comunicate on the web: I have to remove the dipendence from this dll, and add the java program: java program must substitute the dll. It must be non-invasive to the c++ program. DLL calls can be "send(data)" or "receive(data)" or similar.
    For this do you think that JNI is a must, or I can use soket on local host?

  • How to make a simple program in numbers that i can use on my iphone

    how can i make a touchable program in numbers that i can trasfer to my iphone and use out in the field of work? i am pretty good at excel sheets,but am still new with my macbook.

    Excel can't make an iPhone application, it can only make a spreadsheet. You would need an iPhone app capable of reading a spreadsheet produced by Excel.

  • How to make a java program run as a background process.

    </pre>
    writing a client server application.
    a program is supposed to run on a the client right from the time the client turns on the computer till the computer is turned off.
    the catch is the client should all the time be unaware of the program running in his computer, no dos prompt window, no icon on the taskbar,etc. can i convert it the class file into an exe file through software and put the exe filename in autoexec.bat. But then i think that the dosprompt window will open up on starting, but the client should see nothing.
    please help
    </pre>

    </pre>
    Thanks Daniel and jesper,
    could not really fully understand what you mean.
    creating a batch file is okay, but do you configure it
    to run in a an hidden mode.
    Also I have no idea of how to make a window
    service.can you please elaborate a bit
    </pre>

  • How to make an ABAP program run for a specified number of times ?

    assalamoalikum all!!!
    Can some 1 plz tell me that How can I make my ABAP program run ONLY for 2 times (after it went in production etc)
    AND when the program runs for 2 times It then gets hanged/Locked foreever.
    Suppose my program is:
    REPORT twice002.
    write ' I will run only twice bye bye'.

    Well, I guess the only full proof way is to create a custom "Z" table which will hold the counter, in your program you would update this table every time the program runs. In this same program before updating the counter, you would retrieve the counter and check if it is = 2, if so, then write a message and RETURN.
    Regards,
    Rich Heilman

  • How to make inactive ABAP Program in production system

    Dear Expert,
    I have a lot abap program in production system which are not used anymore and my company plan to upgarde our SAP system, therefore to reduce the effort for the SAP upgarde I will  deactivate the unused ABAP program.
    My question how to change the active abap to inactive in production system ?
    Thank you in advance.
    Best regrads,
    Tjandiagung

    Program details are stored in the table REPOSRC.
    Primaray keys are PROGNAME and R3STATE.
    Suppose if the program zxy is in active state, then enry will be
    ZXY  A
    Suppose if we made some changes to it and saved, so the program is in inactive state. so one more entry will be there in the table
    ZXY A
    ZXY  I
    So if you add like this for the program which you want in the table REPOSRC, then that programs will be in inactive state.
    Regards,
    Nikhil

  • How to make in a program periodical​ly switched relay.

    I have a FP-1000(rs 232 controlled) with FP-DO-400 module.
    I need to switch it on(off) periodically. Something like switching it on every 30 seconds for 1 second.
    I just do not know how to make using LabView 7.0. I can control it switching manually but I'd like to make it automatically. Can someone give a couple of hints how to do it?
    Thanks.

    Hi,
    Thanks for posting your question on the NI forem.
    I have attached an example to make switching a simple boolean led on every 10 seconds for 1 "Minute"
    Essentially you would need a while loop, ever 10 sec the virtual led lights up in front panel the select vi resets the shift register every 10 sec and the loop exist after 60 sec (minute)
    Hope this helps!
    Thanks,
    Kurt App.Eng.
    Attachments:
    226838.vi ‏19 KB

  • How to make a website fit to browser window?

    How to make your created flash catalyst project/website fit to every window browser size?
    This means that I want it to fit in the window size, because I don't want the browser to create scroll bars since I have them inside my project...

    I have tried this a number of ways and it makes no difference. This is where I am with it right now in FB4.
    I would love to get this to work. If anyone can help me with it please?
    <?xml version='1.0' encoding='UTF-8'?>
    <s:Application xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:lib="assets.graphics.Republic_1920.*" xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:flm="http://ns.adobe.com/flame/2008" xmlns:graphics="assets.graphics.*" xmlns:ai1="http://ns.adobe.com/ai/2008" xmlns:lib1="assets.graphics.tomorrow_text.*" xmlns:lib11="assets.graphics.perfect_text.*" xmlns:lib111="assets.graphics.intel_text.*" xmlns:lib1111="assets.graphics.history_page.*" xmlns:components="components.*" xmlns:lib11111="assets.graphics.CaseStudiesText.*" xmlns:lib111111="assets.graphics.RolexText.*" xmlns:lib1111111="assets.graphics.slider.*" backgroundColor="#000000" height="1200" preloaderChromeColor="#000000" width="1920">
    <fx:Style source="Main.css"/>
    <fx:Script><![CDATA[
    private function init():void
    stage.align = StageAlign.TOP_LEFT;
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    protected function buttonEnter_clickHandler():void
    const state:String = currentState;
    if ( state == 'Home' ) {
    currentState='Tomorrow';

  • How to make a terminal multiplexer in Python

    How does a terminal multiplexer work? Like screen, tmux, dvtm, and dtach.
    Is it possible to write one in Python?

    Hi,
    Doesn't your device maybe have an "echo"? Than, I guess, the easiest
    way would be to have two independently running VIs, one of which is
    repeatively checking the serial interace for incoming bytes and
    eventually displaying them in an apropriate indicator (e.g. a string
    indicator where all incoming new characters are appended to the old
    string via a shift register of a loop). The other VI then could be
    responsible for sending commands.
    It did something similar just resently. It works quite well. The
    command sending VI had some buttons to send kind of macros (several
    commands, often needed in combination, bundled together) and
    furthermore checked the keyboard with the keyboard VIs from the NI
    pages for additional inputs from the user, which were then just sen
    t
    to the serial interface byte by byte.
    Regards
    Arno
    On Tue, 17 Apr 2001 16:20:10 -0700 (PDT), Dave Z wrote:
    >I am a new Labview user, Im trying to write a monitor program for use
    >with uControllers. The main problem I cant seem to get over is to have
    >a section of the screen where I can type in commands (that are sent
    >only once!) then recieve a reponse from the uController directly under
    >the command. Has anyone tried this?
    >I am using the VISA read/write functions for serial communications,
    >are these interrupt driven?, does anyone have ideas on this.
    >Thanks in advance
    >Dave Zdanowicz

  • How to make a java program that will give you the list of files in the dir

    How can you make a program in java that will list all the files in a directory with out useing the File,FileWriter,FileReader,InputStreamReader,FileInputStream,RandomAccessFile etc. classes

    What is with these instructors? So far today I have
    seen
    Do something 100 times, but don't use a loop
    Format numbers, but don't use NumberFormat
    and now this.
    What are these people trying to teach?
    Java??? I don't think so.Perhaps it is because these instructors are learning Java at the same time as their students. They are only one chapter ahead of the students. :(

  • How to make a frequencycount program??

    how would i make a frequency count program that requires me to keep count of the words that are entered like example
    Word Count
    cat 2
    dog 4
    rat 6
    Total 12
    Total of distinct words 3
    What steps would i have to take to make this program work?

    if i create my own class,how would i do that?Based on your posting history probably you would do it ineptly.
    Off you go then!
    Sun's basic Java tutorial
    Sun's New To Java Center. Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.

  • How to make a modular program in java

    hello friends,
    i want to know that how i can make my program in a modular way.
    Thanks in advance
    Rakesh

    hello sir,
    thanks to notice me.
    modular program means, i have a large program which contains about 1500 lines. now i want to subdivide this program in multiple files and after call all files in a single main file . and want to run overall program from a single main file.
    regards,
    Rakesh

  • How to make a java-program to a exe file runing on windows?

    i kown that there were many topics on this problem.
    i want to kown how many kinds method to do this i can use now!
    i met a java-program can run on windows,but i don't find ant *.class
    files and *.jar files.it's extended file type is ".ese".
    thanks very much

    There are commercial products that allow you to do this (e.g. InstallAnywhere from http://www.zerog.com).
    One issue is that you have to decide whether you want to bundle a JRE with your program or not. If you do (and you should, in these days of XP shipping without any VM of its own), your program will be a minimum of about 9MB + whatever you actually add as part of your program :-).
    In any case, this is not a trivial undertaking.

Maybe you are looking for

  • Ipod120gb unable 2restore not recognized in itunes & corrupt "other"=100gb

    This is weird - I have a ipod classic 120 gb all was well was buying and synching as usual when the next day my ipod was no longer showing on the Itunes panel when connected as if it was no longer being recognized and also on looking at my ipod sudde

  • Parent templates

    G'day My parent templates are not loading up and therefore not accessed through contribute CS3. This is stopping me from creating new pages using the templates. The templates files are .dwt files. In addition when I want to repeat an editable region

  • Touchup object tool will not load Photoshop

    I am running Acrobat 7.0 Professional on Mac OS 10.4.11.  When I attempt to use the touchup object tool, Photoshop will not activate.  It is chosen as my touchup object tool in touchup preferences.  I have uninstalled and reinstalled Acrobat and Crea

  • Help!  InDesign CS4 Unused Paragraph Styles Alert message

    Below is the script that I have download from Adobe Forum. This script deletes all the unused paragraphstyles from active document in InDesign CS4. I want to modify this script to show only alert message for unused style and save report as a text fil

  • Cannot connect to iTunes store account.

    Somehow I can access the regular iTunes store and browse the music & apps there, but as soon as I try to access my account, either by clicking on "Account" on the right hand side or on my apple ID on the upper right, iTunes tries to connect but times