Using the K8062D.dll in an ASP.Net C# web application

Hi Guys,

2 questions

I am trying to use the K8062D.dll in a visual studio ASP.Net C# web application. The DMX box is attached to a snow machine. I would like a user to be able to come to the web site and activate the snow machine by pressing a button on the page.

I have this working on my windows XP machine. However there seems to be a timelag between me pressing the button and the snow machine turning on.

  1. Will this software work on a Windows 2003 server?

  2. If it does, how do I use the code to immediately activate the snow machine?

On the button click event I’m currently using

protected void btnStart_Click(object sender, EventArgs e)
{
StartDevice();
SetChannelCount(1);
SetData(1, -1);
}

however this is a trial and error sample and I’m not sure how the SetData method actually works.

Can anyone please help?

Thanks
M

Sorry I don’t know answer to your first question.

Concerning your question 2:
I think, in your code it may be better to write SetData(1, 255);
This puts your snow machine to maximum.

The SetData function is described in the document MAN_GB_K8062_DLL.pdf.
You’ll get it and code samples in different programming languages by downloading the k8062sdk.zip.