Page 1 of 1
Reading from console
Posted: Tue Apr 30, 2019 3:50 pm
by pblase
the printf() function sends to the console output. Is there no way to read keystrokes from the console?
Re: Reading from console
Posted: Thu May 02, 2019 3:40 pm
by TomKerekes
No sorry there isn't.
Describe what you are trying to do and we can probably find a solution.
Re: Reading from console
Posted: Mon May 13, 2019 3:40 pm
by pblase
I'm trying to figure out how to have a PC send commands to the KFLOP program (mostly "GO"). Correct me if I'm wrong, but the program running on the KFLOP can access the RS-232 serial port (via the KANALOG, as per
http://www.dynomotion.com/Help/RS232/RS232.htm) but can't access the USB connection except to print to the console. Correct? It would be nice if I could just use the USB connection and not have to have a second serial line.
Alternatively, can the PC issue script commands through the USB connection directly (through the virtual com port?)?
Re: Reading from console
Posted: Mon May 13, 2019 4:45 pm
by TomKerekes
Hi pblase,
I'm trying to figure out how to have a PC send commands to the KFLOP program (mostly "GO").
It isn't clear what on the PC would be sending the commands. Or what "GO" is.
Why not have the PC send commands to KFLOP using our
Libraries in the normal way as intended? See the
block diagram here. You might take a look at
all the included examples.
Otherwise yes KFLOP can receive script commands via RS232 instead of USB by calling the function:
EnableRS232Cmds(RS232_BAUD_57600);
Or C Programs on KFLOP can send/receive RS232 Data while KFLOP still receives USB script commands
Or Script Commands can be sent over USB with the Virtual COM port driver. See
here.