LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Turbo C++ Functions to LabVIEW

I used to use Borland Turbo C++ (DOS Systems) before labview. I am trying to find out if it is possible to control cursor location as well as output control and text characters to the crt. I have read the discussion forums that use the graph.vi, but I would like to be able to control the cursor and output characters without the graph.vi property nodes.
 
The Borland C++ Functions were as follows:
 
gotoxy(row,col); This moved the cursor to the row and column values.
printf("%c",dec); This sent ASCII control characters in decimal.
putch(); This sent ASCII characters to the screen.
 
In summary, can ASCII text be put to the screen at fixed row and column locations independent of string indicators or graph.vi property node attributes?
 
Any help would be appreciated.
 
Ron Kocol
0 Kudos
Message 1 of 3
(3,076 Views)
The indicator that gives you that amount of control is the picture control. If you open the example finder and do a sarch for pictures, yu will find several examples.
0 Kudos
Message 2 of 3
(3,056 Views)


@Drummer wrote:
I used to use Borland Turbo C++ (DOS Systems) before labview. I am trying to find out if it is possible to control cursor location as well as output control and text characters to the crt. I have read the discussion forums that use the graph.vi, but I would like to be able to control the cursor and output characters without the graph.vi property nodes.
 
The Borland C++ Functions were as follows:
 
gotoxy(row,col); This moved the cursor to the row and column values.
printf("%c",dec); This sent ASCII control characters in decimal.
putch(); This sent ASCII characters to the screen.
 
In summary, can ASCII text be put to the screen at fixed row and column locations independent of string indicators or graph.vi property node attributes?
 
Any help would be appreciated.
 


Dennis is right. The Picture Control gives you a vector oriented drawing control. Turbo C++ is DOS based entirely and since you moved to Windows you have to rethink quite a bit. No application in Windows (or any other GUI system for that matter) is supposed to control the CRT screen directly anymore.
And to put ASCI text in a row and column location you really should use the table or possible multi- column listbox. They do a lot of nitty gritty work for you you would otherwise have to deal yourself with.

When I had learned LabVIEW, just for fun I took the task of implementing a Turbo Pascal program I had written before during an internship to acquire analog data and graph it on screen. I had implemented the entire waveform graph in Turbo Pascal using those graphic commands you had mentioned and the writing of that program took me more than two months in Turbo Pascal with some extra details such as the possibility to also send the graphic to an HPGL plotter. I did mostly the same (less HPGL plotter) in LabVIEW in less than half a day and the most difficult part was figuring out how to write and read the binary file format we had used to store the data. The graph which took me the better part of all that time was simply a drop in of the graph control and therefore done in 2 minutes.

Just because you used to have to do certain things the hard way, does not mean you can't use the features at hand expecially if they do almost exactly what you intend to do. I doubt you really want to go back to crude DOS text formatting when you can just deal with the actual data you want to be displayed instead and have LabVIEW do the rest for you. Y will soon find out that there is still enough work to do to get the right font, text color and size, alignment and overal look of your front panel, all things you probably never even thought of bothering with before, since to get the data being made visible at all was already such hard work.

Rolf Kalbermatter

Message Edited by rolfk on 03-19-2007 08:39 AM

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 3 of 3
(3,041 Views)