|
It certainly is possible, but will be very
> hardware dependent (what is the light connected to).This point can't be stressed enough. Basically you need to go find or make a device that the iSeries can talk to. There are a bunch of possible solutions that involve a photosensor, relay and PIC microcontroller, all using a serial port (which iSeries can drive/query via an ASCII controller and ICF file.)
An alternative is to use a PC to control the light and to control the PC via remote command, which you can evoke through RPG via system(), QCAPCMD, QCMDEXC and so on. See RUNRMTCMD for details.
--buck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.