How can I use LabVIEW to send the equivalent of a CTRL D (in VT 100 format) out the serial port of my computer?

I am trying to write a vi that interfaces with a piece of OEM equipment that is set up to talk with a VT 100 terminal. I can't seem to locate the ASCII equivalent string (if there is such a thing) of a CTRL D. Is there a vi that emulates VT 100 commands?

If I recall, CTRL-D is EOF on most ASCII tables.
You'd probably have to use an escape sequence
or if you can use an unsigned 8-bit that might be
easier.
In article <[email protected]>, TLS
wrote:
> How can I use LabVIEW to send the equivalent of a CTRL D (in VT 100
> format) out the serial port of my computer?
>
> I am trying to write a vi that interfaces with a piece of OEM
> equipment that is set up to talk with a VT 100 terminal. I can't seem
> to locate the ASCII equivalent string (if there is such a thing) of a
> CTRL D. Is there a vi that emulates VT 100 commands?

Similar Messages

  • How can I use LabVIEW to ground floating SCXI-1520 channels (in order not to lose scanning capabilities from the multiplexer)?

    Currently I am reading quarter bridge strain with several SCXI-1520s. When in MAX I noticed my values were no longer reading after a certain gage and as I attempted to troubleshoot, found out that the multiplexer in this module will not scan past any open channel (or if it does, channel results are not consistent) for a very logical reason. If I lose a gage, I usually lose any data from any subsequent gages which we really cannot afford.
    Are there any suggestions programming in LabVIEW (right now i'm using NI-DAQmx with an analog task set up)so that each time my loop executes, the program will check for any open channels and either not collect that data or change the order of acquisition (i.e. place the open channels last on the scan list?
    I'm open to anything that might be of help

    Yes, by "open channel" i mean that there is no signal returning from the gage because it has broken off the structure or the signal to the terminal block has been disconnected somehow.
    When I lose data, I'm referring to the data that is acquired on following channels. The behavior appears to be fairly random (which was a troubleshooting nightmare ) but usually if a channel is open, then that and those behind it in the scan order do not return any data. It returns a number like 10.357E-6 and I do not pick up any noise or fluctuations. As far as I understand, the multiplexer stops scanning at this point (open channel) because it has nothing to ground to and subsequently "hangs" - not (or randomly) scanning the following channels. I have gone through the bridge configuration and as of yet, have not figured out how to fix this using any hard-wiring techniques. I emailed NI, and was sent a library file to "ground the channels" but it actually resets the Analog input Task I have defined each loop.
    I am new to NI-DAQmx so I do not know if this will alter any configurations I already have in MAX for NI-DAQmx. Will it override? I am concerned it will slow my loop time, and also I cannot see the code for this sub.vi so am a little skiddish about using it if i do not know if it can be tailored to my app.
    What do you think? Am I on the right path?

  • How can I use LabView to control Altera Scripting

    Hi
    I have kind of run into a stone wall. I am building a production test executive based on LabView. Part of this process includes loading an FPGA image on to a CFI flash that is in the JTAG chain. I am trying to make so that the production operators don't have to open a second application, select the right FPGA and Flash navigate to the file then load it, then go back to LabView and run the rest of the tests.
    Altera has a command line interface that will let me load .cdf file.  The problem is that nowhere in Altera’s documentation does it show me how to first load the “Parallel Flash Loader IP” into the FPGA. The flash loader acts as a temporary bridge between the JTAG input and the CFI Flash.  I have looked on Altera’s Forums and have had an open ticket with Altera’s support engineers for more than a week.
    I can’t be the first person to want to do this; I am hoping someone here has done it before. I would really rather not try to use the activeX controls to manipulate the windows based program.
    Any suggestions would be greatly appreciated (Note I am not trying to put LV code on the FPGA/Flash just use LV to control the process)  
    Thanks in advance
    Below is the error message and the script I am using. It almost works just missing the flash loader IP
    C:\altera\12.1sp1\qprogrammer\bin>quartus_pgm -c USB-BLASTER -m JTAG  S_FPGA.
    cdf
    Info: *******************************************************************
    Info: Running Quartus II 32-bit Programmer
        Info: Version 12.1 Build 243 01/31/2013 Service Pack 1 SJ Full Version
        Info: Copyright (C) 1991-2012 Altera Corporation. All rights reserved.
        Info: Your use of Altera Corporation's design tools, logic functions
        Info: and other software and tools, and its AMPP partner logic
        Info: functions, and any output files from any of the foregoing
        Info: (including device programming or simulation files), and any
        Info: associated documentation or information are expressly subject
        Info: to the terms and conditions of the Altera Program License
        Info: Subscription Agreement, Altera MegaCore Function License
        Info: Agreement, or other applicable license agreement, including,
        Info: without limitation, that your use is for the sole purpose of
        Info: programming logic devices manufactured by Altera and sold by
        Info: Altera or its authorized distributors.  Please refer to the
        Info: applicable agreement for further details.
        Info: Processing started: Thu Oct 03 18:16:53 2013
    Info: Command: quartus_pgm -c USB-BLASTER -m JTAG S_FPGA.cdf
    Info (213045): Using programming cable "USB-Blaster [USB-0]"
    Info (209060): Started Programmer operation at Thu Oct 03 18:17:19 2013
    Error (209062): Flash Loader IP not loaded on device 1
    Error (209053): Unexpected error in JTAG server -- error code 5
    Error (209012): Operation failed
    Info (209061): Ended Programmer operation at Thu Oct 03 18:17:21 2013
    Error: Quartus II 32-bit Programmer was unsuccessful. 3 errors, 0 warnings
        Error: Peak virtual memory: 376 megabytes
        Error: Processing ended: Thu Oct 03 18:17:21 2013
        Error: Elapsed time: 00:00:28
        Error: Total CPU time (on all processors): 00:00:03
    Solved!
    Go to Solution.

    Hi Eric,
    I got it figured out today, basically you have to load the Parallel Flash Loader first into FPGA ram. It is a special .sof file (pfl_epXXXX.sof) based on your FPGA. Code is actually pretty straight forward, using the Sys Exec VI. Use the windows based programmer to generate the .cdf file that identifies your FPGA, attached Flash and .pof file .
    Syntax was odd going into Sys Exec. Note the extra "C" in in front of the "quartus_prm.exe" I have no idea why that was needed, but I was getting an error until I just happened to put it in there (Blind Luck :-))
    I used a 2 element array going into a four loop
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG -o P;pfl_epXXXX.sof
    cmd /cquartus_pgm.exe -c USB-BLASTER -m JTAG S_FPGA.cdf
    Defining the working director C:\altera\12.1sp1\qprogrammer\bin
    And added match string with "Successfully performed operation" on the output in the loop to make sure everything loaded correctly then adding the array to give me a overall P/F
    To anyone doing this same thing Altera's documentation is poor to say the least. It took most of a week to figure this out Not allowed to upload code, so anyone wanting details just post here and I will try to help. This was painful, with lots of lessons learned.
    Thanks for the interest though
    Best regards John

  • How can I use notifications to send data from different sources to thesame chart?

    Hi,
    I am using the "Continuous Measurement and Logging" template project that ships with LV 2013.
    It is extremenly helpful for figuring out messaging between the acquire, graph, and log loops. (Thanks NI!)
    I've run into a snag however.
    I would like to modify it so that my graphing loop receives data notifications from two acquisition sources via notifiers.
    I'm having trouble getting data from both sources to display on the same chart.
    I've isolated the issue in the attached vi.
    Here's what happens:
    1. I create data from 2 parallel loops and send the data to a third parallel loop with notifiers.
    2. The third loop receives data from only one of the loops because one of the receiving notifiers just times out instead of receiving data.
    Can someone suggest how I can fix this?
    Thanks.
    - Matt
    Solved!
    Go to Solution.
    Attachments:
    test notification loop.vi ‏42 KB

    Here is my modification of your VI. I put notes on the block diagram to explain the changes. It uses a queue for the data transfer to avoid loss of data. It uses a notifier to stop the loops. All local variables and Value property nodes have been eliminated.
    The way the loops are stopped will likely leave some data in the queue. No more than one or two iterations of each of the data acquisition loops. If you need to guarantee that all data has been displayed (or saved in a real application), then you need to stop the acquisition loops first and read the queue until you know it is empty and both of the other loops have stopped. Then stop the display loop and release the queue and notifier.
    Lynn
    Attachments:
    test notification loop.ldj.vi ‏1036 KB

  • How can i use labview for communicating with pic18 microcontroller through usb port?

    Hi all,
    I want to make a DAQ card using pic 18 microcontroller which has a built-in usb protocol. I have the firmware of this
    controller which will  make it as a usb device. How can i receive the analog voltages from this DAQ card in Labview? or i mean to say that how i can communicate labview with the Pic 18 microcontroller through usb port? I have also the
    mpusbapi.dll file which is for Visual C++. Can i make changes in this dll file to make it compatible with labview?

    Which labview version do you have. Up to labview 7.1 it was no USB raw communication options. I have heard it did not work well in 7.1, but from 8.x most of the errors were fixed.
    Here is a link it should be useful http://forums.ni.com/ni/board/message?board.id=170&message.id=340676&query.id=365864#M340676
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • How can i use labview.tl​b to control Labview from an external applicatio​n?

    Hi,
    I've been told by a labview engineer that i could use the file
    labview.tlb located in the labview install folder to control labview
    from an external application (in my case, a C# app). I'm using Labview
    6.1 under Windows 2000. This article confirms that:
    "ActiveX and LabVIEW"
    http://zone.ni.com/devzone/conceptd.nsf/webmain/54​01BE584FBAEECE862567C2006D36C7?opendocument
    But i've not been able to find out how to use this file to achieve
    what i want. I just want to be able to open/close labview, open/close
    a vi, start/stop a vi, hide/show a vi from a C# application. The above
    web page talks about activex but i really don't see the realtion
    between activex and that labview.tlb file.
    Is there so
    mebody around who knows how to use that file? Why does NI
    tell us that it's possible to do what i want to do but doesn't explain
    how (or hides this info very well)?
    Thanks

    Hi,
    > Hi I am fighting a similar problem and so far I found this: Calling
    > LabVIEW from C++ Using ActiveX
    >
    > http://sine.ni.com/apps/we/niepd_web_display.DISPL​AY_EPD4?>p_guid=B45EACE3E21356A4E034080020E74861&p​_node=DZ52051&p_submitted=N&p_rank=&p>_answer=&p_s​ource=External
    Thanks for the link, i actually already found this link before. I've
    found yesterday how to use Labview.tlb, just add it to the references
    of the project, it was probably too easy for me at that time:-) But
    now, i'm still stuck as there is no doc about using the interfaces and
    classes of this activex to control labview.
    The example given on your link is made is C++ and for some reasons,
    the wrapper generated for Labview.tlb when i added it to my c# project
    doesn't seem to expose the same
    interfaces and classes as the one used
    in the C++ example. I therefore can't use the C++ example in C#.
    I've tried to do something like:
    LabVIEW.ApplicationClass a = new LabVIEW.ApplicationClass();
    Just this line causes labview to launch but then immediately throws an
    exception: "Query interface for interface LabVIEW._IApplication
    failed".
    Does somebody knows how to use that control in C#/VB.NET ?

  • HT3819 How can you use Home sharing to play music on an xbox 360 for example thats connected to the same WiFi network?

    My console is running under the same WiFi service as my itunes, iphone, and all the content i have saved in my library. How can i link, perhaps through HomeSharing, my content from my phone or computer to my xbox console?

    You can't.  Homesharing allow to share your iTunes content over Apple's devices.  XBox isn't made by Apple but Microsoft.

  • How can I use Labview to recall saved states on my HP8920B RF Test Set

    I need labview6.1 to recall saved states on my RF Tester. There is a recall button on the front of my tester, all you have to do is select the state's name and it opens up on the screen. I want Labview to do this work with a click of the mouse. I am using the HPIB (GPIB) interface, which seems to be working with the HP8920 driver (I couldn't find one for the 8920b). If anyone could help me out, that would be great.

    Try *RCL [State name]. Send this command to the 8920B. Sample code included.
    Attachments:
    8920_State_Recall.vi ‏11 KB

  • How can I use LabVIEW 6 on a SCXI-FRQ8 module?

    Hi, here is a description of our problem. We hope that you will be able to help us.
    We bought from NI, a few years ago, some SCXI-FRQ8 modules. (Those modules were made by a company called Developpement Ingenierie in France) The problem is, we can not update to the version 6 of labview since we do not have the drivers to install Labview 6. The drivers we have are for Labview 5.x and 4.x.
    Furthermore, we can not update those drivers by ourselves, since we do not have acces to the diagram of these VI drivers. We tried to contact that company, but no one answers. So maybe the company does not even exists anymore.
    We would like to be able to install Labview 6 on these modules and if we can
    make it work, we will probably buy some new SCXI-FRQ8 modules(if we can still buy them).
    Thank you

    The driver for the SCXI-FRQ8 provided by DI originally did not include the block diagrams. So if you try to use them in a newer version of LabVIEW, you will receive error messages because LabVIEW needs the source code to recompile the code into the newer LabVIEW format.
    National Instruments can provide you with the code you need to use this module with LabVIEW 6. Request this code at http://www.ni.com/ask.
    Raecine Meza
    Applications Engineer
    National Instruments

  • How can I use bluetooth to send data to my mac book pro?

    I can connect my smartphone (nokia) to my Mac Book Pro, but if I try to send something from Nokya to my Mac using bluetooth, that's impossible. The only way is to search what I wanto to store in my Mac, using the Mac and browse my Nokia with Finder.
    Is this correct ??
    Is the bluetooth an univesral protocol to send and receive data between two sources ???
    Why my Mac is unable to receive the data sended by another source ?? (the same question is valid using an iPhone and another smartphone to try to send/receive data).
    Many thank for your response.
    Ezio

    I have many movies I made in iMovie and need to burn to DVD for players.
    You need this:   http://www.apple.com/findouthow/movies/idvd.html#custom
    IDVD is a wonderful piece of software and well worth the low cost of $40.
    http://www.amazon.com/Apple-MC623Z-A-iLife-VERSION/dp/B003XKRZES/ref=sr_1_1?ie=U
    http://dealmac.com/lw/artclick.html?1,527850,1872219

  • How can I use Labview to create a graph of digital voltage signal vs. Time?

    I am measuring a digital voltage signal and I need to generate a graph vs. Time and be able to add user controls to start/stop the graphing and be able to export the graph to other programs such as MS Excel. Any help you could give would be much appreciated. Thank you.

    You probably want to use a chart. Place it inside a while loop that runs continuously. The chart should be in a case structure so it is bypassed depending on the boolean pause/continue switch.
    To save the data, get the "history data" of the chart via a propery node and save it to a file. It is probably easiest to save it to an ASCII file. Most other programs will be able to read it.
    See how far you get. If you get stuck, post your VI and we'll help you.
    LabVIEW Champion . Do more with less code and in less time .

  • How can i use labview for notebook

    i want to know spec of notebook for install labview programm.
    thank you vermuch.
    sattaya

    Sattaya,
    here you can find the system requirements for installing the LabVIEW development environment.
    Please post merely LabVIEW related questions to the LabVIEW board. The LabVIEW community is much bigger than the motion control community, so you will get answers quicker there.
    Regards,
    Jochen Klier
    National Instruments

  • How can i use labview to acquire temperature from optical fibre sensors

    i am trying to develop an application that would enable a user to acquire temperature data from optical fibre sensors and display the profile on a PC screen but i have got no clue of how to go about it

    To provide some assistance, I will need to know:
    1) What type of output does the device produce? (volts, current, frequency ...)
    2) What type of conditioning does the signal require? (gain, filter, excitation, bias resistors ...)
    3) What type of calibration does the vendor provide? (how the output signal relates to temperature)
    These characteristics have already been determined by the manufacturer (or the engineer who developed the interface electronics).
    You have made no mention of the computer, OS, software, or hardware you will use. I could try to walk you through the selection process; however, I would probably take up too much space trying to discuss all of the possible combinations.
    Could you provide some additional information about hardware and soft
    ware you will use? I will look for a response.

  • How can I use LabVIEW as an OPC-client, without using datasockets ?

    I heared that would be possible with the newest edition.

    The Datalogging and Supervisory Control (DSC) add-on module makes LabVIEW an OPC Client (and a Server).

  • How can i use an ipod on my itunes that is not connected to my itunes without deleting the song already on it

    it is an ipod a friend gave me because i lost mine but i want to keep some songs that are already on the ipod and i also want to delete songs off

    Well, the best way is to restore the backup that you made before you reformatted the Windows machine.
    Barring that, open iTunes, go to Preferences, Devices, and check the box to disable automatic sync. Then connect the phone to your computer, and go to the File menu, Devices/Transfer Purchases. This should copy all of the iTunes content on your phone to your computer.

Maybe you are looking for