Source language: Translate to:

Interesting and Fun Plugin Idea

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Interesting and Fun Plugin Idea

Postby datadon » Sun Jul 16, 2006 2:37 pm

Phidgets are USB devices that you can connect to your computer to perform hardware interaction. Currently there's a wide variety of devices including RFID, Servo Control, and Digital interfaces. Supposedly dc motor and stepper motor controls are on the way.

They include a very nice SDK for interfacing with the devices. Personally I own a 4 servo controller and an interface kit, and have had great success using them in other application development environments.

I can’t say enough about these little things and I know I would gladly pay someone (a reasonable amount) if they would create a plugin to allow the use of these kits within neobook. If I recall there is both a dll and an activex control (Jay’s old activex plugin comes to mind actually) so I don’t think it’d be too difficult.

Anyway, I’ve been away a while but it’s good to be back.
User avatar
Posts: 389
Joined: Sun Apr 03, 2005 7:55 pm
Location: Lorena Texas

Postby Sam Cox » Sun Jul 16, 2006 3:16 pm

I'd buy that plugin, too, assuming it was well written and reasonably documented. Perhaps Aussieglider would like to take up the challenge since he's working on a similar project.
User avatar
Sam Cox
Posts: 768
Joined: Fri Apr 01, 2005 7:30 am
Location: Loveland CO USA

Postby Alberto_Meyer » Sun Jul 16, 2006 3:47 pm

I did make a X10 plugins some years ago. I don´t have this kit here, but it can be quite easy if they supply a SDK.
User avatar
Posts: 385
Joined: Tue May 03, 2005 5:14 am

Postby Gaev » Sun Jul 16, 2006 7:36 pm

If I recall there is both a dll and an activex control
a) I did not see any mention of an ActiveX on the documentation on the website.

b) However, there might be ... as they mention COM (Component Object Model) ... if so, you might enquire if it can be called from VBScript ... they mention Visual Basic (discontinued), VBA (Visual Basic for Applications ... like Word, Excel) and .Net (including VB.Net) ... but not VBScript.

If it can be called from VBScript, with NeoBook 5.5 you no longer need a plugin ... as you can deploy the ActiveX inside an html document that you load into a Browser object ... then, you can invoke VBScripts using NeoBook's BrowserExecScript command ... and also exchange data between the html and your NeoBook pub.
User avatar
Posts: 3748
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Postby Wrangler » Mon Jul 17, 2006 8:02 am

Welcome back, MegaStever! We had sent out a posse lookin' for ya, but they haven't come back yet. :P
"You never know about a woman. Whether she'll laugh, cry or go for a gun." - Louis L'Amour

Windows 7 Ultimate SP1 64bit
16GB Ram
Asus GTX 950 OC Strix
Software made with NeoBook
User avatar
Posts: 1513
Joined: Thu Mar 31, 2005 11:40 pm
Location: USA

Postby beno » Tue Jul 18, 2006 9:51 am


I would buy that plugin too. Where do I send my payment?

Thanks for this contribution about phidgets, this sounds real ineteresting for eduaction and pactical use at home and my greenhouse.

This forum and its members is great! I learn a lot from you guys everyday!!! thanks a lot!!!!


User avatar
Posts: 678
Joined: Fri Apr 01, 2005 9:03 am
Location: México

Try this one !

Postby Luke » Wed Jul 19, 2006 4:48 am

Megasteveri !

You idea is Great !

i think the Current version of neobook can handle this :

as i have stidied the examples , it is possible to implememt projects in
Vb scripts ....

here is one code .... what i found on the home page .... it was nice if you try it with your hardware and repport to the forum -......

code html with vbscript...


<TITLE>VBScript_Example_PhidgetInterfaceKit 0/16/16</TITLE>

<OBJECT CLASSID="clsid:50484944-4745-5453-3000-000000000003"

<script language="vbscript">

//Just to confirm that the library is installed and PhidgetInterfacekit is an object
If Not IsObject(InterfaceKit1) Then
msgbox "quiting"
End If

//Just to confirm that the PhidgetInterfacekit is attached
If Not InterfaceKit1.IsAttached Then
msgbox "No Interface Kit attached"
document.write "Please attach a Phidget Interface kit and refresh"

document.write "<B> IFK 0/0/4 Serial Number Is: " & InterfaceKit1.SerialNumber & "</B><BR><BR>"

End If

//Routine for responding to the OnInputChange event
Sub InterfaceKit1_OnInputChange(ByVal Index, NewState)
If NewState Then
mytable.rows(Index).cells(0).innerHTML = "<img src=blue_on.jpg>"
mytable.rows(Index).cells(0).innerHTML = "<img src=blue_off.jpg>"
End If
End Sub

//When a check box is clicked the Output is changed
Sub OutputState(Index)
If InterfaceKit1.OutputState(Index) = "False" Then
InterfaceKit1.OutputState(Index) = "True"
mytable.rows(Index).cells(1).innerHTML = "<input type=image onclick=OutputState(" & Index & ") src=blue_on.jpg>"
InterfaceKit1.OutputState(Index) = "False"
mytable.rows(Index).cells(1).innerHTML = "<input type=image onclick=OutputState(" & Index & ") src=blue_off.jpg>"
End if
End sub



<B>Script Example for Phidget Interface Kit 0/0/4</B>

<table id="mytable" cellpadding="20">
<tr id="0"><td><Center><B>Input 1</B></center></td><td width="100">
<input type="image" onclick="OutputState(0)" src="blue_off.jpg" width="100" height="25"></td></tr>
<tr id="1"><td><Center><B>Input 2</B></center></td><td>
<input type="image" onclick="OutputState(1)" src="blue_off.jpg" width="100" height="25"></td></tr>
<tr id="2"><td><Center><B>Input 3</B></center></td><td>
<input type="image" onclick="OutputState(2)" src="blue_off.jpg" width="100" height="25"></td></tr>
<tr id="3"><td><Center><B>Input 4</B></center></td><td>
<input type="image" onclick="OutputState(3)" src="blue_off.jpg" width="100" height="25"></td></tr>

Posts: 30
Joined: Thu Nov 17, 2005 6:24 am

Postby datadon » Thu Jul 20, 2006 2:36 pm

Gaev, your ideas were brilliant as usual. I didn’t even consider using VBScript.

Today when I got home I pulled out my servo controller and it took me maybe 5 minutes to get everything working with Neobook and VBScript.

I’ve been looking into doing hardware integration with Neobook for quite some time, and I’m thrilled to actually see it working.
User avatar
Posts: 389
Joined: Sun Apr 03, 2005 7:55 pm
Location: Lorena Texas

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 3 guests