Reading from console
Moderators: TomKerekes, dynomotion
Reading from console
the printf() function sends to the console output. Is there no way to read keystrokes from the console?
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: Reading from console
No sorry there isn't.
Describe what you are trying to do and we can probably find a solution.
Describe what you are trying to do and we can probably find a solution.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Reading from console
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?)?
Alternatively, can the PC issue script commands through the USB connection directly (through the virtual com port?)?
- TomKerekes
- Posts: 2677
- Joined: Mon Dec 04, 2017 1:49 am
Re: Reading from console
Hi pblase,
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.
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.
It isn't clear what on the PC would be sending the commands. Or what "GO" is.I'm trying to figure out how to have a PC send commands to the KFLOP program (mostly "GO").
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: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)
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.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.