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 :smiley:

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?

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!

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.).