Hello
Can i control parallel port by Scheduler
parallel port
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Parallel port
Bob Thanks for answer
I would like to send data to parallel port to control my sound matrix
i mean to D0-D7
I would like to send data to parallel port to control my sound matrix
i mean to D0-D7
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
I have no idea what you are doing
, but let me try to help anyway....
It sounds like maybe you have a piece of sound hardware connected to your parallel port vs. the normal printer. The information you are sending may or may not be in a file.
For sample purposes:
1. I will assume that you are sending a file of data.
2. Let's say the name of the file is matrix.dat
3. Let's say the file matrix.dat in the the folder c:\sound\
You can "redirect" output to the printer port by using the > character in the command line mode. So to send the file to LPT2 you could use the "TYPE" command and redirect it from the monitor to the port like this:
type c:\sound\matrix.dat > LPT2
You could test that from a command line in a DOS/Command window.
If that works, then you can add a line to your macro to do that for you.
Windows95/98 use "command.com", WINNT/2K/XP use "cmd". The line to be added to your macro would look like this:
You may also want to look at RP_RESULT if LPT2 to the end of the command line that executes the program. Like: c:\sound\worknow.exe > LPT2

It sounds like maybe you have a piece of sound hardware connected to your parallel port vs. the normal printer. The information you are sending may or may not be in a file.
For sample purposes:
1. I will assume that you are sending a file of data.
2. Let's say the name of the file is matrix.dat
3. Let's say the file matrix.dat in the the folder c:\sound\

type c:\sound\matrix.dat > LPT2
You could test that from a command line in a DOS/Command window.
If that works, then you can add a line to your macro to do that for you.
Windows95/98 use "command.com", WINNT/2K/XP use "cmd". The line to be added to your macro would look like this:
You may want to use some of the MacroScheduler variables like RP_WAIT=0/1, RP_WINDOWMODE=0-3, RP_DISPLAYERROR=1/0.Run Program>command.com /c type c:\sound\matrix.dat > LPT2
You may also want to look at RP_RESULT if LPT2 to the end of the command line that executes the program. Like: c:\sound\worknow.exe > LPT2
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!