Source language: Translate to:

Hardware control via USB

Questions about NeoBook PlugIns

Moderator: Neosoft Support

Postby DaveJ » Tue Feb 24, 2009 12:51 pm

Hi Fred

Thanks for the feedback.

If you want to change just one channel keep a track of what you have set the output to and then add or subtract the decimal as so..

00000001 =1
00000010 =2
00000100 =4
00001000 =8
00010000 =16
00100000 =32
01000000 =64
10000000 =128

Hope this helps

Dave
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby frednet » Tue Feb 24, 2009 4:36 pm

DaveJ wrote:Hi Fred

Thanks for the feedback.

If you want to change just one channel keep a track of what you have set the output to and then add or subtract the decimal as so..

00000001 =1
00000010 =2
00000100 =4
00001000 =8
00010000 =16
00100000 =32
01000000 =64
10000000 =128

Hope this helps

Dave


Hi Dave,

Thanks for that info it should enable me to progam them seperately.
So far the plugin works fine.
I let you know further findings.

For now this opens al kind of possibilitys for new projects.

Thanks Fred
User avatar
frednet
 
Posts: 83
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

findings on velleman vm 110 usb board

Postby frednet » Fri Mar 06, 2009 1:07 pm

upon experimenting with the Velleman plugin for Neobook I
stumbled on unlogical behaviour of the routine I wrote.
It turns out that usb latency was causing the trouble.
It takes about 200 to 300 milliseconds before
the [clearcounter] command can be followed bij the [readcounter] command
otherwise the old value will be poked, leading to unwanted results.
to illustrate my point some of the code I use;
the routine activates a relais until 54 pulses are counted

Vel_ClearCounter "1"
Delay "300"
Vel_ReadCounter1
SetVar "[pulsaantal]" "54"
Vel_DigitalOut "1"
While "[Velcounter1result]" "<" "[pulsaantal]"
Vel_ReadCounter1
EndWhile
Vel_DigitalOut "0"

Once knowing the issue its easy to work around.

Fred.
User avatar
frednet
 
Posts: 83
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

Postby DaveJ » Fri Mar 06, 2009 2:06 pm

This is probably something to do with the dll. There is a newer dll available but Im not sure if it is compatable with the plugin yet.

Glad you have a workaround.
Well spotted.

Dave
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby frednet » Wed Mar 11, 2009 4:29 am

I finished the sattelitedish control and it works like a charm.
I found the new dll and like to try it out.
question is were do I put it.
replace the dll in the system32 directory or is placement in the publication directory sufficient?

Fred
User avatar
frednet
 
Posts: 83
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

Postby DaveJ » Wed Mar 11, 2009 12:03 pm

Your system will probably look in the pub dir first but you could just rename all instances to K8055D.old and then back if it doesn't work.

Good to hear it works ok. Thanks for the feedback.

Still working on the hardware for my brewery and just bought some platinum temperature sensors and two solid state relays for mains power control to use with the board.
DaveJ
 
Posts: 90
Joined: Tue Dec 30, 2008 11:06 am

Postby frednet » Thu Mar 12, 2009 6:09 am

The dll version in my system was already version 3.0.2.0
so perhaps the latency is not there on older dll versions.
I'll stick to the new dll
I started on the next project a simple
data logger for the analog inputs.
I hooked up an ntc resistor to the central heating pipe in order to study its behaviour.
If you need help on the hardware side, let me now.
especially solenoids can demolish your board.

Regards Fred.
User avatar
frednet
 
Posts: 83
Joined: Fri Sep 23, 2005 4:29 am
Location: netherlands

Postby Scherzkeks » Mon Feb 15, 2010 4:02 am

Nice Plugin. Is there any way to enhance this Plugin that we can use more cards at once? the plugin has the adress jumpers but the commands work just with one card. Velleman says you can add max 4 Cards to one PC.

Features Velleman K8055:
* 5 digital inputs (0= ground, 1= open)
* 2 analog inputs with attenuation and amplification option
* 8 digital open collector output switches (max. 50V/100mA)
* 2 analog outputs: 0 to 5V, output resistance 1K5, PWM 0 to 100% open collector outputs max 100mA / 40V
* general conversion time: 20ms per command
* maximum 4 Cards

Or is there a way to use the K8061/VM140 Extended USB Board?
http://www.velleman.eu/distributor/prod ... ?id=364910

Features Velleman K8061:
* 8 analog 10 bit resolution inputs: 0…5 or 10VDC / 20kohm
* 8 analog 8 bit resolution outputs: 0…5V or 10VDC / 47ohm
* 8 digital inputs: open collector compatible (connection to GND=0) with on board LED indication
* 8 digital open collector outputs (max. 50V/100mA) with on board LED indication
* one 10 bit PWM output: 0 to 100% open collector output (max 100mA / 40V) with on board LED indication.
* general response time: 4ms per command
* Sourcecode for Delphi, Visual Basic, C++ Builder and more
* maximum 8 Cards

any help yould be appreciated.

thank you
scherzkeks
User avatar
Scherzkeks
 
Posts: 79
Joined: Mon Apr 04, 2005 3:04 am
Location: Switzerland

Previous

Return to PlugIn Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron