K8055 alongside K8062 USB-DMX interface

Hi

I’ve a project currently using the K8062 USB-DMX interface to which I’d now like to add a digital input and output (apart from the DMX signal)

My question is therefore can I use the K8055.dll alongside the K8062.dll without any problems??

Many thanks
Paul.

[quote]My question is therefore can I use the K8055.dll alongside the K8062.dll without any problems??[/quote]Yes, this is possible. You can use both of the DLLs from within your application program.

Here is the DLL functions declaration section for your Visual Basic 2008 program:
[size=85] 'K8055 Private Declare Function OpenDevice Lib "k8055d.dll" (ByVal CardAddress As Integer) As Integer Private Declare Sub CloseDevice Lib "k8055d.dll" () Private Declare Function Version Lib "k8055d.dll" () As Integer Private Declare Function SearchDevices Lib "k8055d.dll" () As Integer Private Declare Function SetCurrentDevice Lib "k8055d.dll" (ByVal CardAddress As Integer) As Integer Private Declare Function ReadAnalogChannel Lib "k8055d.dll" (ByVal Channel As Integer) As Integer Private Declare Sub ReadAllAnalog Lib "k8055d.dll" (ByRef Data1 As Integer, ByRef Data2 As Integer) Private Declare Sub OutputAnalogChannel Lib "k8055d.dll" (ByVal Channel As Integer, ByVal Data As Integer) Private Declare Sub OutputAllAnalog Lib "k8055d.dll" (ByVal Data1 As Integer, ByVal Data2 As Integer) Private Declare Sub ClearAnalogChannel Lib "k8055d.dll" (ByVal Channel As Integer) Private Declare Sub SetAllAnalog Lib "k8055d.dll" () Private Declare Sub ClearAllAnalog Lib "k8055d.dll" () Private Declare Sub SetAnalogChannel Lib "k8055d.dll" (ByVal Channel As Integer) Private Declare Sub WriteAllDigital Lib "k8055d.dll" (ByVal Data As Integer) Private Declare Sub ClearDigitalChannel Lib "k8055d.dll" (ByVal Channel As Integer) Private Declare Sub ClearAllDigital Lib "k8055d.dll" () Private Declare Sub SetDigitalChannel Lib "k8055d.dll" (ByVal Channel As Integer) Private Declare Sub SetAllDigital Lib "k8055d.dll" () Private Declare Function ReadDigitalChannel Lib "k8055d.dll" (ByVal Channel As Integer) As Boolean Private Declare Function ReadAllDigital Lib "k8055d.dll" () As Integer Private Declare Function ReadCounter Lib "k8055d.dll" (ByVal CounterNr As Integer) As Integer Private Declare Sub ResetCounter Lib "k8055d.dll" (ByVal CounterNr As Integer) Private Declare Sub SetCounterDebounceTime Lib "k8055d.dll" (ByVal CounterNr As Integer, ByVal DebounceTime As Integer) 'K8062 Private Declare Sub StartDevice Lib "k8062d.dll" () Private Declare Sub SetData Lib "k8062d.dll" (ByVal Channel As Integer, ByVal Data As Integer) Private Declare Sub SetChannelCount Lib "k8062d.dll" (ByVal Count As Integer) Private Declare Sub StopDevice Lib "k8062d.dll" ()[/size]

Many thanks.

Possibly a silly question, but am I right in thinking I only need to declare the methods I’m going to use (for instance, I’m not going to use the analogue channels at this point)?

All the best,
PoRL

You are right.
Only the DLL functions you use are using in your code have to be declared.