Controlling Tera Term from labview

Hi guys
In my new project I would like to send commands to Tera Term Pro. Tera Term then responds to the commands from Labview the same way as I would type the commands directly into Tera Term.
I'm able to use cmd.exe with the SystemExecute Vi, but for my program I would like to do the same with Tera Term.
I would like to send commands with a stringcontrol and get the respond in a string indicator, all in labview. Tera Term should run invisible in the background.
So for this I thought using ActiveX would be the best. I have downloaded tera term pro.
In Labview I create this from the ActiveX Palette and select browse on the ActiveX Class.
In the Tera Term folder I find many .dll's:
I have tried to open them all, but I only get this message:
Does this mean it's impossible to use Tera Term with Labview like I described?
I'm not so familiar with ActiveX, only with Excel (which is in the ActiveX Class list), so I might have missed something.
My goal was to create a sub-vi which does the communication with Tera Term, the same way SystemExecute VI is built.
Regards,
Even
Regards,
Even
Certified LabVIEW Associate Developer
Automated Test Developer
Topro AS
Norway
Solved!
Go to Solution.

Sorry for this late reply. I have been using Teraterm Macro (not Teraterm Pro serial terminal) to interface with my previous provisioning app written in LabVIEW.
Teraterm Macro is such a lifesaver in that it can easily interface with your development boards that need: (1) RS-232C, (2) FTP, (3) TFTP or (4) SSH connections. The plain-vanilla 'serial' VI's are just that - serial port only and those need additional code to work reliably. If you need a good serial port VI try Prabhakant Patil's Hyper Terminal for LV 2009 and newer. You will find an ZIP or VIPM package from LAVA (lava.org). I have used his versions countless of times and is 10x more reliable than provided in LV examples.
You will indeed use the System-Exec.VI to call Teraterm Macro since *sigh* no one has written a wrapper for the DLLs (as you mentioned they are built for .Net framework. I have talked with the current developers and they are willing to give anyone the pass to extend Teraterm for LabVIEW so C++ devs out there with good LabVIEW knowledge should re-build the DLLs as static libraries that can be called from within LabVIEW. For now, this is the only way and it is a kludge - but it works - just not in a way you expect.
Here you can see that I am building the command line arguments before I call the system-exec node. Refer to the excellent how-to instructions at:
http://ttssh2.sourceforge.jp/manual/en/macro/commandline.html
Teraterm Macro will be spawned (opened) like it would when called from the command line. Its std input & output are not tied to your VI. You can merely pass arguments to the system-exec node. This is the reasons why we need someone to recompile the Teraterm Macro DLL as a static library (anyone?) so we can build a wrapper VI around the functions. Then its std inputs and outputs can be tied to LabVIEW's controls and indicators - hence, it becomes LV native.
-Relativity

Similar Messages

  • How to access the Custom Data type variable given in Expression edit control To and From LabVIEW

    Hello, I would like to know how to access the custom data type variable given in the Espression Edit Control from LabVIEW and vice-versa
    Say, the FileGlobals.Reference_Handle (Custom Data Type Variable) contains the
    VISA I/O session (Which in turn contains VISA_DeviceName: String, Session: Number),
    Channel1: Number and
    Channel2: Number
    I am expecting the user to give FileGlobals.Reference_Handle as the input at the ExpressionEdit Control in the edit screen of the VI Call.
    I would like to know how to get the values of this custom data type to LabVIEW?
    Say, if I have the Cluster in LabVIEW like VISA I/O session (Deive Name and Session Number), Channel1 and Channel2
    how do i need to set this cluster to the Custom Data type variable in TestStand?
    Thanks and Regards
    Prakash 

    Hi,
    TestStand to LabVIEW: i didnt understand what you r trying to achieve. But if you are using references, Use Property nodes and Invoke nodes to achieve what you want in LabVIEW.
     LabVIEW to TestStand: check the image below: You need to click the button next to 'container'. I have used a cluster output in the VI.
    Hope this helps
    .......^___________________^
    ....../ '---_BOT ____________ ]
    ...../_==O;;;;;;;;_______.:/
    Attachments:
    1.JPG ‏187 KB

  • Control a LabVIEW GUI exe from LabVIEW

    I have a vendor supplied LabVIEW.exe application, it's used to control a device that's part of an automated manufacturing process.   At present we need to manually run the exe from the control PC , read data, make a decision, then input a few values, button clicks etc.   I'd like to automate this step.  Without having the source code for the application, what options do I have for controlling this application from LabVIEW?
    I tried using System Exec.vi, but I got beat when I needed to right-click on a graph indicator to retrieve data.  LabVIEW applications don't accept SHIFT+f10 for right-click.
    What other methods can I use to communicate with this application?

    Dennis_Knutson wrote:
    On the other hand, if the specifications that you provided to the software vendor did not include these requirements, then the vendor would be quite reasonable in asking for additional money to make the changes. You should also have required that the source code be provided.
    Of course, this is true. I was making an assumption, that since the OP has experience in LabVIEW, these sort of things had already been taken into consideration by the buyer.
    Would source code normally be provided when someone purchases an EXE? If there are proprietary pieces in there (algorithms, etc.), I thought it would be more common for the vendor to just provide hooks to the control and data functions.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • Can I control Unholtz-Dickie VWIN ver. 4.61 software from Labview?

    Unholtz-Dickie VWIN is a Window-based application that controls a vibration system. I want to coordinate the vibration control with the acquisition of data from the unit under test.

    Hello,
    I just did a quick websearch and wasn't able to find any information on getting LabVIEW to work with this VWIN software of which you speak. If this software has ActiveX capabilities, you should be able to communicate with it from LabVIEW without any problems...LabVIEW has the ability to control other programs with its ActiveX tools. If your VWIN software does not support ActiveX, however, your options are rather limited...you could use the "System Exec" VI in LabVIEW to launch the VWIN software from LabVIEW, but you would have no control over it from LabVIEW.
    There are other ways of communicating between programs (DLL calls, simple ASCII text file writing, etc.), but these would not be as easy as ActiveX. You may want to contact the manufacturer of this softwar
    e and ask them if they known of any of their customers attempting to control the software externally, and if so, what methods they used.
    I wish you luck with your application. Also, in the future please post LabVIEW-related question in the appropriate LabVIEW forum.
    Have a pleasant day.
    Sincerely,
    Darren N.
    NI Applications Engineer
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How can I control a base ACCESS from labview ?

    Hi,
    I'm working on a projet on labview and ACCESS and I want to say how can I do to control a database from labview ???
    Thanks in advance
    Cordially,
    Hasna

    On Tue, 9 Jul 2002 02:50:12 -0700 (PDT), kiki wrote:
    >could you give me more informations about Database Connectivity
    >Toolset ???
    >
    >I notice that we can write data in excel file thanks to an ActiveX but
    >is it possible with a table ACCESS ??
    DCT it's a suite of VIs (I think Optionals) the contains anything you
    need to connect to to a DB.
    I used them with access... since I'm not really happy with performance
    (read/write max 50 records/sec) it's quite quick to develop
    applications that read/write DB.
    (Write a Cluster it's trivial.... plug the cluster, prepare a table
    with fields of the same type and the same order, yo've did it)
    I think you can also use ActiveX, but I've never did.

  • How to control MS excel from labiew ?

    I'm using Labview 5.1 and i would like to Know if is possible to totally control MS excel from Labview: to write into a specific file of MS excel wich contain already some information.

    Generally you use ActiveX to control Excel from LabVIEW. The best way to understand that would be to run 'Write Table to Excel" example that ships with labview. You can access that example by going to Help>>Search Example and then under "activeX".
    Also for more flexible control of excel from labview you can also use the latest "Report Genaration Toolkit" for labview that allows you to interact not only with Excel but also MS Word.
    http://digital.ni.com/worldwide/bwcontent.nsf/web/all/E899E563ABE94D1D86256A1800718B6D
    Hope this would help.
    A Rafiq
    National Instruments

  • I am using Activex controls from Labview to log the data into Excel spreadshee​t. My applica

    tion is running fine without giving any error messages. But even after the vi stops, excel process does not shutdown. "Excel.exe" process keeps running until I end it from Windows NT Task Manager. Is there any way to end the excel.exe process from Labview?

    tion is running fine without giving any error messages. But even after the vi stops, excel process does not shutdown. "Excel.exe" process keeps running until I end it from Windows NT Task Manager. Is there any way to end the excel.exe process from Labview?I use Excel Active X control frequently to save and then analysis test data. In order to properly destroy the "Excel.exe" process it is important to close all the automation refnums opened when using the Excel active x controls. After completing your desired Excel task wire all the refnums in reverse order they were created into the Automation Close function in Functions->Communication->Active X pallette. This includes all Application, Workbook, Worksheet, or Range refnum. Missing even one of these refnums will mean that Excel.exe will still persist in the task manager and cause problems when excel is opened from outside LabVIEW. I hope this helps.
    Stephan

  • I would like to create a pop-up window appear from Labview Interface. In this window, I will have a slide control and an image taken from a camera. The main VI have to run while pop-up window is open. How can I do ?

    When I pushed a button, this pop-up window has to appear. There will be a slide control and a picture from a camera in this window. Is it possible to make appear this windows while main VI Interface continue to run ? How can I do this ? Thank you for your answers.
    Cyril.

    Here you go. This is simple example. Maybe not the best way, I am just
    beginner in LV and still not comfortable with data flow that much. I prefer
    events, so I would change this to use Event Structures.
    When you click on OK button on SliderMain, it opens Slider.vi. Now both
    windows are open and you can interact with both. Now if you click on OK
    again with Slider.vi open, you run into problems. Only thing I did was
    change VI properties of slider.vi, mainly window appearance.
    vishi
    "Cy" wrote in message
    news:[email protected]..
    > I would like to create a pop-up window appear from Labview Interface.
    > In this window, I will have a slide control and an image taken from a
    > camera. The main VI hav
    e to run while pop-up window is open. How can I
    > do ?
    >
    > When I pushed a button, this pop-up window has to appear. There will
    > be a slide control and a picture from a camera in this window. Is it
    > possible to make appear this windows while main VI Interface continue
    > to run ? How can I do this ? Thank you for your answers.
    > Cyril.
    [Attachment SliderMain.vi, see below]
    [Attachment Slider.vi, see below]
    Attachments:
    SliderMain.vi ‏16 KB
    Slider.vi ‏11 KB

  • Controlling multiple signal generators from labview

    Hi,
    Is it possible to control more than one signal generator at the same time from labview through the 10 MHz clock signal(or any other possibility) on a 33250 signal generator ? I need to maintain the same frequency on both of them but be able to change the phase on one.
    I understand this is possible via ethernet.
    Any suggestions...
    Thanks
    Sri

    Hi Sri,
    Thanks for posting on the NI forums.
    As gwd noted this device has an RS-232 port and indeed does have a GPIB interface, but no ethernet port as per the page three of the 33250A's spec sheet (link below). This means that the instrument can be controlled from your desktop PC via an RS-232 (COM) port (one port per instrument), or via a GPIB card in your PC. As GPIB is a 'multidrop' communication method you will only need one GPIB card to control both instruments in this case.
    http://cp.literature.agilent.com/litweb/pdf/5968-8807EN.pdf
    I assume you are programming in LabVIEW as this post in the LabVIEW section. There is an instrument driver provided for the LabVIEW environment on the NI website which should make it easier to control your instrument(s) (see link below).
    http://sine.ni.com/apps/we/niid_web_display.drv_results?p_app_area=&p_man=agilent&p_keywords=33250&p...=
    I hope this helps. all the best,
    Rob
    Field Sales Engineer | National Instruments | UK & Ireland

  • Read text from a string control in a compiled LabView executable from C#

    I have a third party complied LabVIEW executable and no source code.  I need to read values from the front panel in C#.  I know that LabVIEW controls and indicators are not actual windows.  Is there a way to programmatically access this information(i.e. without using screenshots and OCR)?  I couldn't find this exact question answered in this forum.  I've read a few things about VI Server doing this from LabVIEW, but I don't think you can access VI Server from C#.  Any help would be appreciated.
    Thanks in advance.

    You should certainly be able to access VI Server from C#. LabVIEW has an ActiveX server built in that allows other applications to access a sizeable subset of VI Server functionality. I would guess you could access ActiveX servers directly from C#, but the worst-case scenario would be to wrap the ActiveX calls into a .NET assembly. I've seen this done before. This blog entry is slightly off topic, but might help you.
    Actually, I do need to revise this answer... If you are working with a LabVIEW DLL, the DLL would have to be compiled with the ActiveX Server option enabled. Otherwise, LabVIEW won't include the code that allows the DLL to be hooked into using this method. So if you don't have the source and you can't recompile it, you might be out of luck. Does the DLL really not have a function that exports this string value?
    Message Edited by Jarrod S. on 10-26-2006 01:39 PM
    Jarrod S.
    National Instruments

  • Automating labview tera term x modem transfers?

    Is it possible to automate tera term x modem transfers?  I am doing a serial upgrade and need to figure a way to automate things.  I am currently using tera term for the x modem tansfer but am open to any other suggestions.

    Tera Term is a really old application, and basically a DOS application. As far as the DLL version you would need to use the Call Library Function Node function to call the DLL.
    I would suggest using the OpenG XModem VIs, which a contributor updated to use VISA.

  • Controlling dialog boxes in a DIAdem script from LabVIEW

    I have a DIAdem script that prompts the user for the data file it will process. The datafile was created from a labview test routine.   I can now run the script from LabVIEW using the "DIAdem Run Script.VI", but in the interest of automation, I would like to have LabVIEW place the filename in this dialog.  I would like to keep the dialog in the script, since sometimes we run this script manually. (without LabVIEW)
    Bill W.

    Bill,
    Which dialog are you using to prompt for the file name?  It
    appears that you cannot send any information to the script through the
    Run Script.vi.  However, you can call automation commands using
    the "DIAdem Run Automation Command.vi".  If you want to pass data
    to the script, then you can set a Global Variable, or a DIAdem Script
    Variable.  As an example, you could use the global variable, T1,
    and send "T1 := 'myfile'".  When the script is executed, that
    variable will be accessible within the script and it will be set to
    "myfile".  You could also set the FileDlgName variable to your
    file name.  Then it may be possible to send those variables to
    your dialog so that they are automatically populated.
    Good Luck!
    Tyler Tigue
    NI

  • Control OpenOffice from LabVIEW

    Does anyone know how to automate OpenOffice applications from LabVIEW?

    Are you wanting to have labview automate open excel or word or access. If this is what you are asking then here is an example for word.
    Joe
    Joe.
    "NOTHING IS EVER EASY"
    Attachments:
    View_word_document_file.vi ‏29 KB

  • Control keypad from labview

    Hi,
    I would like to connect a keypad 4x4 and monitor it from Labview.
    In the past I implemented a simple algorithm which scans the rows and coloumns of the matrix, but is there an easier way to do this in Labview?
    I don't mean a virtual keypad, but an actual one. I would like to use Crio with RT as my controller
    Thanks,
    Eyal.

    Hi Braxat.  WHy don't you use the parallel port of your computer?  it's a mini-DIO port.  Just to give you an idea. 
    To just read a keypad, it's a really expensive solution to use c-Rio
    Kind regards,
    BJorn Conjaerts
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012

  • Query works in Tera Term but not in Telnet Read.vi

    I am using Telnet Write.vi to execute a command such as GET_VERSION
    Then using Telnet Read.vi, I am expecting several lines to be returned.
    This works if I manually do this with Tera Term.
    But with LabVIEW, the Telnet Read.vi simply returns the command from the Telnet Write.vi
    What do I have to configure to change this behavior?

    Edit:
    Needed to add carriage return +  newline 
    DUH.

Maybe you are looking for