parallel port

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
vadim
Newbie
Posts: 3
Joined: Mon Jan 12, 2004 5:15 pm

parallel port

Post by vadim » Thu Jan 29, 2004 6:52 pm

Hello

Can i control parallel port by Scheduler

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jan 29, 2004 7:59 pm

I suspect that the answer is YES, but what do you mean by
Can i control parallel port ?
Provide explanation of what you are trying to do, what operating system, etc.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

vadim
Newbie
Posts: 3
Joined: Mon Jan 12, 2004 5:15 pm

Parallel port

Post by vadim » Thu Jan 29, 2004 8:29 pm

Bob Thanks for answer

I would like to send data to parallel port to control my sound matrix

i mean to D0-D7

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Jan 29, 2004 10:46 pm

I have no idea what you are doing :lol: , 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\

:idea: 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:
Run Program>command.com /c type c:\sound\matrix.dat > LPT2
You may want to use some of the MacroScheduler variables like RP_WAIT=0/1, RP_WINDOWMODE=0-3, RP_DISPLAYERROR=1/0.
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!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts