K8062/VM116 Control dmx adapter via vbscript on webserver

Hi

I want to access my dmx controller connected to my webserver. I use asp (not .net) and vbscript.

so far i use this script:

[code]<%@LANGUAGE=“VBSCRIPT” CODEPAGE=“65001”%>

Untitled Document <% Dim DMX Dim var1,var2,var3,var4 Dim DMXStart,DMXStop,DMXCount,DMXSData Set DMXStart=Server.CreateObject("k8062d.StartDevice") Set DMXStop=Server.CreateObject("k8062d.StopDevice") Set DMXCount=Server.CreateObject("k8062d.setChannelCount") Set DMXSData=Server.CreateObject("k8062d.setData")

DMXStart()
DMXCount(4)

'Deze moet je gebruiken als je de server start

call DMXData(1,255)
call DMXData(2,0)
call DMXData(3,255)

call DMXData(4,0)
'Het updaten van de waardes

DMXStop()
'Deze moet je pas gebruiken als je de server sluit

%>

[/code]

the DLL’s K8062D.dll, FASTTime32.dll are located in C:\Windows\System32 on the server

In this stage the page generates the following errorcode:

server object error ‘asp 0177 : 800401f3’
server createObject Failed

for the next line of code:
Set DMXStart=Server.CreateObject(“k8062d.StartDevice”)

[color=#FF0000]thanks for any help you can give![/color]

i’ve been looking for 4 years to make this application work, i’m getting pretty desperate

Also the K8062e.exe should be put to the same folder (System32) as the two DLLs.

Normally DLL function names are case sensitive. Should you use:
SetChannelCount
SetData
StartDevice
StopDevice

All the files are in the system32 folder and i checked all te names if the case is right.
Unfortunatly it gives the same error

current code:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<BODY>
<%
Dim DMX
Dim var1,var2,var3,var4
Dim DMXStart,DMXStop,DMXCount,DMXSData
Set DMXStart=Server.CreateObject("k8062d.StartDevice")
Set DMXStop=Server.CreateObject("k8062d.StopDevice")
Set DMXCount=Server.CreateObject("k8062d.SetChannelCount")
Set DMXSData=Server.CreateObject("k8062d.SetData")


DMXStart()
DMXCount(4)

'Deze moet je gebruiken als je de server start


call DMXData(1,255)
call DMXData(2,0)
call DMXData(3,255)

call DMXData(4,0)
'Het updaten van de waardes

DMXStop() 
'Deze moet je pas gebruiken als je de server sluit

%>




</body>
</html>

[color=#FF0000]I really would apreciate some help.[/color]
I"ve got a project at the end of the week were all this should work…

thanks.

The k8062d.dll is a standard Windows DLL.
I think you cannot use it as a parameter of the Server.CreateObject.
http://msdn.microsoft.com/en-us/library/ms524786(VS.90).aspx

hmm, that wasnt really what i would love to hear.

is there a better way to get the same result?

Please check this thread: viewtopic.php?f=15&t=2293
There seems to be a workaround (ActiveX wrapper).
The code is for the K8055 card but you maybe can use it as a reference…