LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call HyperTerminal in Labview

Hi All
 
Could someone advise me how do i call Hyperterminal in Labview or simulate the same function of Hyperterminal in Labview?
 
I need to to send a programming file to my device under test (DUT) through serial port. There is a function in Hyperterminal called "Send File" (see attached picture). So i have to select the programming file (binary file) that i need to download to DUT (see attached picture) and click Send in Hyperterminal. The file size is 2760kb. The total programming time is 4.5mins using Hyperterminal
 
How do i do this in Labview? Can i send a file through using the write port vi or i have to break the file to few strings to fit the capacity of serial port (255 bytes max?)? If Labview can't send a file, how should i call Hyperterminal and is there any shell function that can be used? Please kindly advise. Thanks
 
regards
rebecca
 
0 Kudos
Message 1 of 6
(5,808 Views)
Here are attachments
Download All
0 Kudos
Message 2 of 6
(5,803 Views)
Hyperterminal does not have an automation interface of any kind. You can't use ActiveX or run a script. It's big brother from Hilgraeve does. The problem with using LabVIEW directly is that you are not using straight binary transfer. You are using the zmodem protocol and afaik, no one has ever implemented that in LabVIEW. If your DUT can be set for straight binary or ASCII transfer, then you can just use a VISA Write to send the file. Other terminal emulation programs can be used or you can search for a dll that implements zmodem. I would suggest you search the forum for zmodem to see some other responses on the subject.
0 Kudos
Message 3 of 6
(5,793 Views)

Hi

I tried to download some trial dll for Zmodem protocol such as Megapipe and COM-DRV but doesn't seem to be working well. I wanted to try VISA Write. the file size is 2.7Mb,  can I read the file and break the content to 1kb packet size and send multiple time using VISA write?  Do i really have to use ZMODEM protocol? Thanks a lot!

0 Kudos
Message 4 of 6
(5,758 Views)
As I said, if your DUT can be set for straight binary and not zmodem, then you can use the VISA Write. Zmodem is a specific protocol and a simple VISA Write will cause the transfer to fail.
0 Kudos
Message 5 of 6
(5,735 Views)
I worked on a project before that I needed to transfer files via zmodem and I found a neat little program to do this.  It is Telix  it is an old program but has some scripting languages that make it pretty powerful.  What I did was to script sending the file in Telix, then there is an option within the program to use a startup script.  The way I used it was to record a script of manually sending the file then editing it in the script editor.  You can add things such as looking in a file for a parameter that labview put there previously and there is even a command to terminate Telix thus if you use the system exec vi to call telix initially when the script terminates telix it will return control back to labview.
 
 
- James

Using LV 2012 on Windows 7 64 bit
0 Kudos
Message 6 of 6
(5,724 Views)