Main > Software Forum

LEDWiz SDK v1.3 Released for developers

<< < (4/6) > >>

arzoo:
I've done some additional testing and it appears that the device list handles are the device ids. So identifying the devices should not be a problem.  ;D

loadman:

--- Quote from: arzoo on March 18, 2007, 07:14:07 pm ---I've done some additional testing and it appears that the device list handles are the device ids. So identifying the devices should not be a problem.  ;D

--- End quote ---

Kewl...  Thanks for the info.  I have not had time to play with this much yet

headkaze:

--- Quote from: arzoo on March 18, 2007, 07:14:07 pm ---I've done some additional testing and it appears that the device list handles are the device ids. So identifying the devices should not be a problem.  ;D

--- End quote ---

Does it work like this..

Say you have 3 LEDWiz devices, ID1, ID2 and ID5.

deviceList.handle[0] --> ID1
deviceList.handle[1] --> ID2
deviceList.handle[4] --> ID5

or

deviceList.handle[0] --> ID1
deviceList.handle[1] --> ID2
deviceList.handle[2] --> ID5

arzoo:

--- Quote from: headkaze on March 18, 2007, 10:11:38 pm ---
--- Quote from: arzoo on March 18, 2007, 07:14:07 pm ---I've done some additional testing and it appears that the device list handles are the device ids. So identifying the devices should not be a problem.  ;D

--- End quote ---

Does it work like this..

Say you have 3 LEDWiz devices, ID1, ID2 and ID5.

deviceList.handle[0] --> ID1
deviceList.handle[1] --> ID2
deviceList.handle[4] --> ID5

or

deviceList.handle[0] --> ID1
deviceList.handle[1] --> ID2
deviceList.handle[2] --> ID5


--- End quote ---
I only have two devices, but this is what happens:
With only ID1 plugged in; deviceList.handle[0] --> ID1
With only ID2 plugged in; deviceList.handle[0] --> ID2
With both plugged in; deviceList.handle[0] --> ID1 and deviceList.handle[1] --> ID2

Based on that, I would say it works like your 2nd example above.

Here's a modified version of the Delphi example. I added a UI which allows sending commands to individual devices. It also displays all the devices in the deviceList.

loadman:

--- Quote from: arzoo on March 18, 2007, 11:24:09 pm ---
--- Quote from: headkaze on March 18, 2007, 10:11:38 pm ---
--- Quote from: arzoo on March 18, 2007, 07:14:07 pm ---I've done some additional testing and it appears that the device list handles are the device ids. So identifying the devices should not be a problem.  ;D

--- End quote ---

Does it work like this..

Say you have 3 LEDWiz devices, ID1, ID2 and ID5.

deviceList.handle[0] --> ID1
deviceList.handle[1] --> ID2
deviceList.handle[4] --> ID5

or

deviceList.handle[0] --> ID1
deviceList.handle[1] --> ID2
deviceList.handle[2] --> ID5


--- End quote ---
I only have two devices, but this is what happens:
With only ID1 plugged in; deviceList.handle[0] --> ID1
With only ID2 plugged in; deviceList.handle[0] --> ID2
With both plugged in; deviceList.handle[0] --> ID1 and deviceList.handle[1] --> ID2

Based on that, I would say it works like your 2nd example above.

Here's a modified version of the Delphi example. I added a UI which allows sending commands to individual devices. It also displays all the devices in the deviceList.

--- End quote ---

Thanks Arzoo and Headkaze. I finally got a chance to play with this today. It works great!  ;D

It should be straight forward to use the Dll for the Led-Wiz plug-in instead of the OCX as the code to talk to the OCX is in a separate unit anyway.  ;)

I just can't decide wether or not to have have two versions of the Plug-in  :dunno

Youki made the point that the OCX may get updated (however unlikely) and I could get left behind with new enhancements.

It's technically no be deal for me have two versions for me as code for both has been handed to me on a plate.   Thanks Again all concerned  :D

Should it be a Set-up option for the user to choose?

What do you guys think?  :dunno

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version