11-09-2008 11:53 PM
Hello,
I'm a mechanical engineering student at the State University of New York in Stony Brook. I have a liquid metering device project that i need to build and it has to be controlled via labview on the lab computers at school. The problem is, we got next to no training with the labview software and it is mandatory that we use it, so as you can imagine i'm in a little hole. I have some programming experience with MATLAB, so I understand how programming works on basic level, but that is all at the moment.
Anyway, the dynamic aspects of my project consists of a miniature water pump (3VDC), a normally closed solenoid actuated valve (12VDC), and a weighing scale (battery powered). The finalized program idea is this:
11-10-2008 12:15 AM
In hardware you have three 'contacts'
I would connect the Pump and Solenoid via a Digital output and a relay or a relay card directly (a computer normally has not the power for motors or anything).
The weighting scale should have an analog output (0-5V preferably) and read by an analog input.
These first steps of contacting should get you started. Have a look at the LabVIEW examples (hardware IO and controlling) and the LabVIEW Learning Center is here.
Ton
11-10-2008 08:02 AM
11-10-2008
08:58 AM
- last edited on
03-18-2024
08:50 AM
by
Content Cleaner
Since the DAQ device is powered on USB, it can only output a few mA, which isn't nearly enough to power a solenoid. You will want to find a TTL relay board which is basically a transistor and a relay. The transistor is powered by the small current from the computer, which closes the power relay. a quick search finds the sort of thing you want
NI has hardware which can connect easily into LabVIEW without any fuss. Alternatively, you can use another vendor or data aquisition hardware and will proably need to communicate to the device drivers, which can be a bit more troublesome. If you want a quick and easy digital and analogue signals device, I would suggest the USB-6008, which in the UK is £100, which should work out at about £170US
The best thing I can suggest regarding software is following Ton's link to the learning centre, and playing around with LabVIEW then posting back when you have a feel for what needs to be done. Additionally, there are programming examples shipped with LabVIEW which can be found in the help->examples menu.
11-10-2008 10:25 PM - edited 11-10-2008 10:27 PM
Thanks for the replies. I just ordered labview 8.5.1 student edition so i'm not limited to the lab hours at the university and i can learn this as best as possible.
I'm going to apologize for my lack of electrical circuit knowledge. I've been reading a lot the past few days to try and familiarize myself.
I believe that our lab is providing the DAQ devices since they seem to be an expensive item. So say for instance in the step where i want labview to power the pump and solenoid simultaneously, i assign 2 independent DAQ device output channels for each device and wire these channels into two inpendent relays on a TTL relay board that is typically powered by a 12VDC power supply. Then each relay is then wired to the devices....?
What about the issue of each device requiring different operating voltages? The pump will only require 3 VDC and the solenoid 12VDC.
regards,
Tom
11-11-2008
05:08 PM
- last edited on
03-18-2024
08:51 AM
by
Content Cleaner
Hi Tom
With regards to the different voltages, you will need to deliver your own power for the instruments. The relay will just receive the 0-5 volt TTL signal for the purposes of turning the devices on and off. An alternative setup could be purchasing a NI-USB 6525 and connecting this to your 12 VDC and 3 VDC power supplies across the solid state relays built into this device.
11-11-2008 05:34 PM - edited 11-11-2008 05:34 PM
Thanks for the link eric, but unfortunately (and fortunately) i'm a student and i can't spend that kind of money at the moment. Upon further research, i think i'm going to have to use radioshack components for powering the devices via transistor switches driving a relays on a basic bread board, as described here: [url]http://www.jaycar.com.au/images_uploaded/relaydrv.pdf[/url]
I know this is probably a laughing matter to most on here, but i don't know much about circuits at all.
11-11-2008 08:53 PM