Go to Post The thrills of a heroic repair, a well deserved award, a compliment on our efforts, the growth of our team members, making new friends.... These can make a memorable and exciting FIRST regional as much as a close match. - Mark Pierce [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 15-02-2010, 22:01
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
making a weighing machine with labview

Hi,,, i am being challenged by my sister to make a weighing machine that shows the weight of a adult, using the programming language labview. I have some clue as how labview works... since i am programming in team 1514 WhciRobotics.. here is my question:

(1) What hardware(s) do i need to buy ( and the price ) to connect to my pc, deploy the code,, which i have yet to make after i get all the hardware i will start.

Tnx in advance
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2010, 22:03
EthanMiller EthanMiller is offline
Lead Programmer
AKA: Socks
FTC #4356 (The Zip Ties)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Clayton, NY
Posts: 121
EthanMiller has a spectacular aura aboutEthanMiller has a spectacular aura aboutEthanMiller has a spectacular aura about
Re: making a weighing machine with labview

To be less than serious, buy a bathroom scale and lie? You could use the Axis camera in the KOP to display it - that should be easy enough, right?
__________________
When all else fails, read the manual.

FRC 1713 K Island Gears 2009, 2010 (Not 2011 due to budget, hopefully 2012!) - Fingerlakes Regional

FTC 4356 The Zip Ties 2010-2011 Season - NNYRC (2010 9th seed).
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2010, 22:11
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: making a weighing machine with labview

If you wanted to automate the bathroom scale, you could put a pot on its indicator if it's not digital. Or you could do image processing to find the colored line, and check what angle it is based on where it is.

If you use a camera, you don't need any other hardware. You can use a webcam connected via USB and then use the LabVIEW IMAQ to process it.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2010, 07:46
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: making a weighing machine with labview

Quote:
Originally Posted by apalrd View Post
If you wanted to automate the bathroom scale, you could put a pot on its indicator if it's not digital. Or you could do image processing to find the colored line, and check what angle it is based on where it is.

If you use a camera, you don't need any other hardware. You can use a webcam connected via USB and then use the LabVIEW IMAQ to process it.
So if i have a nexxtech 2516513 camera, hook it up to pc via usb, go to labview IMAQ, and then do what?? sorry iam kinda only 15....still learning!
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2010, 09:57
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: making a weighing machine with labview

First, see if you can see the image at all on your computer. Not using LabVIEW, but in a known working program. This means you set up the camera right.

Then, see if you can find a LabVIEW block to get image. This has been troubling me. I can't seem to find a block to Acquire Video from a camera, but I have found many blocks to read and write to files. You might have to go to another library for this.

After that, you use IMAQ to process the image.
Tips for using IMAQ:
*You always must use IMAQ Create every time you need a new image. This creates an image with a name.
*If you do some simple operator that changes the image, e.g. blob detection, you need to create a new image for the output.
*You should be able to use IMAQ Subtract Image to get the difference. Make sure all of the images (A, B, Dst) are the same type, it will go faster.
*Use RGB unless you need HSL. RGB-HSL conversion takes a long time, using IMAQ Cast Image.
*You could probably use IMAQ Subtract and end up with an image that is all black except where the new image is different from the old one. Edge detection would work well there. You would probably want to find the two ends of the line, then find which one is closest to a preset center point. Take the other one, subtract the centerpoint, then use atan2 to find the angle. Once you know the angle you can easily scale it to find the weight.

I'm 15 too, and I've been working with LabVIEW for a little less than a year and a half. You can learn how to do things like use IMAQ by doing exactly what you are doing - write an example that does something, and learn the process and code behind it. All of my experience in IMAQ is FIRST Vision (IMAQ Create, find blobs, reading existing code) and Dashboard display (more IMAQ Create, overlay line, overlay text, etc.).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making global variables in LabVIEW. Joshamuffin National Instruments LabVIEW and Data Acquisition 1 19-01-2009 13:35
State machine in LabVIEW? JBotAlan National Instruments LabVIEW and Data Acquisition 3 23-10-2008 07:59
HELP!!!!!! LABVIEW IS MAKING ME MAD!!!! cdennisxlx2 LabView and Data Acquisition 2 21-03-2006 21:50
Making a LabVIEW Multimeter Bruce Barber National Instruments LabVIEW and Data Acquisition 4 10-02-2006 11:54
Making a smoke machine forcefully blast out the smoke. sanddrag Technical Discussion 16 18-12-2005 23:46


All times are GMT -5. The time now is 22:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi