LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DOS Window Emulation in LabWindows/CVI

I want a *.uir that behaves like a DOS terminal (80x24 characters) and accepts data from the keyboard and from a serial COM port.

Is it possible to use a text window and directly type in text that is then sent out a serial COM port and also display the received data (in a different color) from the COM port in the same text window?

 

My initial findings is that I require a send button to write the data to the serial port. Can an <Enter> be used instead of a send button?

0 Kudos
Message 1 of 3
(3,144 Views)

you should be able to achieve your goal with a multiline text box: write an event callback function for your text box, and test for an EVENT_KEYPRESS event. if the key pressed is ENTER (eventData1 == VAL_ENTER_VKEY) then perform the action.

Message 2 of 3
(3,134 Views)

Thanks.

 

I decided to use a List Box so that I can have different color text for Tx and Rx.

0 Kudos
Message 3 of 3
(3,096 Views)