| Return to Index | Read Prev Msg | Read Next Msg |

Slink-e / CDJ Discussion Archive #1

Re: Reading slinke parallel port

Posted By: Colby Boles <cboles@s...>
Date: Wednesday, 2 September 1998, at 12:41 p.m.

In Response To: Reading slinke parallel port (Letcher Ross)

OK. I've made a new version of SlinkX which allows you to poll the parallel port and receive low-level events. All you have to do is load the lowlevel.cde file and send the parread[] command. You will get back a par[XX] message which tells you the port data in hex. I have also added a feature to send you back un matched IR / S-Link codes the way CDJ does. You can read about these things in the readme.doc file as well as the lowlevel.cde files. You code should look something like this:

Private Sub Form_Load()
Dim devID As Long
Dim slinkenum As Long
Dim portnum As Long
Dim devfile As String

If (Slinkx.NumSlinkes < 1) Then

MsgBox ("The server as found no Slink-es. This application cannot run.")

End
End If

devID = 1
slinkenum = 1

Rem show unmatched data (this is a new option)
Slinkx.ReportNoMatch = 1

Rem demonstrate the use of low-level commands
Rem this also causes lowlevel events to come back
devfile = App.Path + "\lowlevel.cde"
x = Slinkx.AddDevice("lowlevel", devfile, devID, slinkenum, 0)
x = Slinkx.Send("lowlevel", "parread[]")

| Return to Index | Read Prev Msg | Read Next Msg |

Password:

Slink-e / CDJ Discussion Archive #1 is maintained by slinke-bbs-owner@nirvis.com with WebBBS 3.21.