07-21-2020 07:44 AM
Hello!
I'm just wondering if anyone knows if it's possible to have a command terminal (like command prompt in Windows) accessibly in a VI with a serial connection? An internal program in one of my project devices is set up to wait for a user to hit and send the "enter" key on a keyboard and then send back directions, but I'm not sure how to implement that in LabVIEW. It's originally done in PowerTerm 525, but my new set up requires LabVIEW.
Should read/write do the same thing? I attempted a normal read and write serial VI, but not sure if it'll just send the enter key.
07-21-2020 07:51 AM
@cm_ee wrote:
I attempted a normal read and write serial VI, but not sure if it'll just send the enter key.
Depending on your device, it is a Carriage Return and/or a Line Feed. It is most likely just a Line Feed (ASCII value 10, 0xA).
07-21-2020 11:34 AM
Recreating an interactive terminal window (e.g. using a string control with a fixed-with font) on the front panel is a very different problem than just sending/receiving certain characters via serial port. Can you tell us a bit more about the requirements?
07-21-2020 01:48 PM
07-21-2020 02:57 PM
@cm_ee wrote:
SpoilerI can tell you everything I know which isn't much (I'm coming into a project without much knowledge, resources, and time). . . The current program used is powerterm 525 and when you press enter an input line comes up to enter a new number and that "call' comes from an internal program that is waiting for the "enter" key. I need an interactive terminal that allows me to press enter and have the input line pop up. Does that make sense?
If I understand, you're being asked to replicate an interface in LabVIEW that currently uses PowerTerm.
In PowerTerm (which I've never used), you push "enter", and then you can input a new number to send to an "internal program".
As far as you can tell, the input request is something PowerTerm is receiving from the internal program, and then the internal program waits for the new number.
Am I getting what you're saying?
To revisit altenbach's question,
@altenbach wrote:
Recreating an interactive terminal window (e.g. using a string control with a fixed-with font) on the front panel is a very different problem than just sending/receiving certain characters via serial port. Can you tell us a bit more about the requirements?
Or, maybe,
Related: PowerTerm 525 can be used for a few different communication protocols (quick google search says Telnet, Serial, LAT, and CTERM, among others). Do you know which protocol is being used in your application?
07-21-2020 03:05 PM
Yes, that is exactly what I know about this project.
I'm currently trying to attempt to just send the enter key and see what kind of response I get, but I'm also open to any solutions that might be out there.
07-21-2020 03:20 PM
I am not sure what you are after.
If you just want a user input box to come up when the user presses enter you could do something like this...although I suspect I have misunderstood what you are after.
07-27-2020 12:10 PM
Thanks all, but I'm going to look into using the system execute vi to access Tera Term. . . If anyone has advice on this and is willing to share, that would be appreciated it/