03-08-2006 12:39 PM - edited 03-08-2006 12:39 PM
As one of my main modules I have to write a dissertation, and for this I have chosen to encompass both mechanics and electronics in the form of an automated test rig for testing air flow outputs from solenoid valves.
This rig incorporates a pressure sensor a National instruments 6008 DAQ and a Motion control mdrive 17 stepper motor. The rig is controlled by the National Instruments LabView 7.1 software.
See attached flow diagram jpeg and method document help explain what I am trying to accomplish
As I am not an electrical engineer I have been finding this quite a challenge but none the less have made some reasonable headway. I have however had some problems in getting the LabView code to work properly and need some help, time is running out before the dissertation needs to be submitted and I really need to get over this hurdle.
The code that I have produced so far is also attached to this message (base design.vi), however as you can see, it is not finished. I think that the concepts are correct but I am having difficulties in getting the code to run. Can anyone give me some advice on how they think the code should be written, am I on the right track?
LabView is available on my university network, however I have consulted the lecturer who teaches the LabView module and his knowledge is more limited than mine.
It is a simple design and should take no time at all with the help of someone that knows what they are doing.
Regards Wesley
Message Edited by Wes Uk on 03-08-2006 12:43 PM
03-08-2006 01:11 PM - edited 03-08-2006 01:11 PM
Wes,
My suggestion for a major project like this is to break it down into more manageable sub-projects. Instead of having one big VI, write one that does each part of the project. In other words take each frame in the sequence you have there and make each one VI. Design it, debug it, and leave it alone when you get it to work. Then go on to the next task.
Message Edited by nyc on 03-08-2006 02:12 PM
03-08-2006 01:35 PM
03-08-2006 03:54 PM
Thanks guys, I'm currently trying to break it down into Sub VI's
I am having problems getting my stepper motor to respond to the strings I send it, I does work when I use the software supplied with it, however LabView isn't quite as fortunate
Any ideas?
Cheers Wes
03-08-2006 03:58 PM
If you are using a serial port to talk to the motor, try using portmon to watch both programs talk to the device.
03-08-2006 09:07 PM
There seems to be a fair number of people out there who are in the same situation as you - in school needing to drive stepper motors to get a degree. It's beginning to sound like a class assignment.
Anyway here are couple of the other recent discussions that have been centered around the "I can't talk to my stepper motor over a serial link" topic:
How can one write text commands to a usb device through VISA?
01-13-2009 01:19 AM
Hi! I am a student in the first year of university. We have to learn LabView and i am new so i don't know very much. Here is my "problem": we have to do a project by our selfs with what we learned. (we learned: While loop, formula node, for loop, case, flat and staked sequence, how to change and create an icon, about controls and indicators, clusters, array - the basic things). We have to use 5 things that we have learned and 2 new things. I have make a project but my prof. says that is too simple (and i agree) beacouse i'm a rookie. I attach my project ... can you give me some tips how to improve my project ? or if you have a better ideea i'll be glad to hear it ... (i am from Romania ... sorry for my bad english)
PS: I use LabView 7.1
01-13-2009 02:43 AM
Hello again! i got an ideea how to make my project more complex. Here is the ideea: With a camera inspect the resistor and the camera reads the 4 colors ... and then i can make a program to measure the resistor. Have you any ideea how could i make that work ... ?
01-13-2009 03:06 AM
SparX
You know the While loop and the Case Structure,
Look at the help to see what an enumerated control is (1 thing to Learn)
With these 3 things you can make some very complex code using the State Machine Architechture (look up "State Machine" in the Examples).
Use the numeric and boolean palettes to add complexity to your project.
(If this, then do this, Scan n resisitors, wait for button to be pressed to state machine to move on to next state.) - Is sequence of Resistors the expected one (index an array into a for loop).
Use you imagination and make something that looks complicated, but is actually very simple.
01-13-2009 03:12 AM
I'd forgotten about this tool, thanks "Uncle".
link that works is http://live.sysinternals.com/
then download portmon.exe
just the job for my IRDA problem.
Wes - You show those Electrical engineers that we Mechanicals can do LabVIEW, and can beat them at their own game!