Sample code pressure weight scale

Legacy support with Phidget21
teamtwf8
Phidgetly
Posts: 34
Joined: Mon Sep 11, 2006 1:24 pm
Contact:

Sample code pressure weight scale

Postby teamtwf8 » Tue Jun 21, 2011 12:00 am

I downloaded the Phidget samples around January this year.
I contained a code in VB 6 for a weigth scale simple (weegschaal-simple) with a pressure sensor.
I removed this code (no back up) thinking it was in the latest sample versions too.

But I cant find it anymore int his new version.

Any one there to resque me?

Thanks in advance,

Paco

AdamS

Re: Sample code pressure weight scale

Postby AdamS » Tue Jun 21, 2011 10:54 am

I am fairly certain there was no such code sample in our VB6 code samples package from our site. Are you sure you didn't get that code from somewhere else?

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Sample code pressure weight scale

Postby Patrick » Tue Jun 21, 2011 11:40 am

There was a 'PhidgetWeightSensor' example, that was deleted in February 2008. This was for a very old device - the PhidgetWeightSensor, that was discontinued about 5 years ago - is this what you mean?

-Patrick

teamtwf8
Phidgetly
Posts: 34
Joined: Mon Sep 11, 2006 1:24 pm
Contact:

Re: Sample code pressure weight scale

Postby teamtwf8 » Tue Jun 21, 2011 1:07 pm

Hi both,

I just found the full path to the not existing file.
Phidget21samples\VB6.0\Phidget21samples\PhidgetWeigthsensor\Form1.frm


I only know the phidget sample was in a unzipped file with all other pidget vb samples.
I opened the mentioned file.
This sample code was very simple.
The front screen had a slide bar with 1 to 10 as weigth measuring.
The code also contained something like a low pass filter as explained. This last part I clearly remembered as it was low in the code lines.

Like I said the file date was around begin of 2011 in all unzipped sample Vb6 files.
Then I thought there must be a newer file so removed all the files and then downloaded the latest version but I could not find it anymore in the new version.

I could not restore the file as it runs on a NAS so when gone it is gone.. no windows back up or trash can...!

Do not know if it was a sample code for any runout product.

BTW, if I remembered well I also put a piece of code here on the forum for an enhanced servo controller with time outs, speed and endpoint adjustments. Could it be that it was removed from the forum or the forum is renewed in my absence?
Was ther a section with snipet codes.

Paco

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Sample code pressure weight scale

Postby Patrick » Tue Jun 21, 2011 2:52 pm

Hi,

I believe that you'll find this code in an old examples release:

http://www.phidgets.com/downloads/examp ... 080114.zip

The weight sensor example was deleted in Feb. 2008 as I said so I don't think you saw this in a 2011 download...

Do you actually own a PhidgetWeightSensor?

-Patrick

teamtwf8
Phidgetly
Posts: 34
Joined: Mon Sep 11, 2006 1:24 pm
Contact:

Re: Sample code pressure weight scale

Postby teamtwf8 » Tue Jun 21, 2011 11:59 pm

Hi Patrick,

No I do not own it, but I am busy with the new Phidget bridge 1046 to build a shock dyno for modelcars.

So the weigth scale sample was what I needed for the code.
I know I have ot alter it but then I have a lead.

Now I learned not to throw away old shoes. :-)

Thanks, Paco

teamtwf8
Phidgetly
Posts: 34
Joined: Mon Sep 11, 2006 1:24 pm
Contact:

Re: Sample code pressure weight scale

Postby teamtwf8 » Sat Sep 24, 2011 2:04 pm

Hi,

The shock dyno works using a 1046 Phidget bridge with one load cell.

Now for an other application we need to use four load cells simultanously.

I tried to use the following code snippet but this does not work. :-(
What do I overlook?
Wrong use of the methode?
It only measures the PhidgetBridge.BridgeValue(0) with this code.

Any pointing in the right direction would be appriciated.

'Takes value of the loadcells
Private Sub PhidgetBridge_OnBridgeData(ByVal Index As Long, ByVal Value As Double)
bridgeValue0.Text = PhidgetBridge.BridgeValue(0)
bridgeValue1.Text = PhidgetBridge.BridgeValue(1)
bridgeValue2.Text = PhidgetBridge.BridgeValue(2)
bridgeValue3.Text = PhidgetBridge.BridgeValue(3)
End Sub

Thanks in advance, Paco

teamtwf8
Phidgetly
Posts: 34
Joined: Mon Sep 11, 2006 1:24 pm
Contact:

Re: Sample code pressure weight scale

Postby teamtwf8 » Sat Sep 24, 2011 10:11 pm

Forgot something and now this part is also working.

'activate the sensors
PhidgetBridge.Enabled(0) = True
PhidgetBridge.Enabled(1) = True
PhidgetBridge.Enabled(2) = True
PhidgetBridge.Enabled(3) = True

Paco

Maathai Wangari
Fresh meat
Posts: 1
Joined: Sat Mar 09, 2013 4:00 am

Re: Sample code pressure weight scale

Postby Maathai Wangari » Sun Mar 10, 2013 11:46 pm

This is a piece of code to help servo controller. Follow to the following code. I recommend to PhidgetBridge.Enabled different values.

To sensor activate try to PhidgetBridge.Enabled(0/1/2/3) = True


Return to “VB 6.0”

Who is online

Users browsing this forum: No registered users and 1 guest