04-11-2012 06:52 AM
Hi guys,
Doing a college project and am stuck with this. Honestly haven’t a clue about Labview but been trying my best.
I'm trying to add a counter that will increment every time my slider returns and I also want to add an EMO button to stop the slider instantly.
I've cut the relevant section out of my VI and posted.
Appreciate any help.
04-11-2012 07:13 AM
Hey Asuran,
maybe check some tutorials before trying to wire random stuff - its worth your (and our) time.
After doing so, please describe your problem in a more specific way. Right now I do not see a button and do not understand what your program is supposed to do. Correctly specifying what a program is supposed to do often already solves most of the programming issues you will encounter.
If this is your homework, better go somewhere else - some get quite emmotional about that (;
Questionmarker
04-11-2012 07:25 AM
04-11-2012 08:58 AM
Please define your abbreviations. What doesn "EMO button" mean?
In your code, your outer while loops are worthless. Because you have a false constant wired to the stop terminals of all your while loops, that means your code will get stuck as an infinite loop in your inner loop, and the outer loops will never iterate again because the inner loop never finishes. The only way to end your program is to use the Abort button on the toolbar which is not a good idea.
04-11-2012 09:06 AM
04-11-2012 01:00 PM
Hi guys,
Thanks for the replies. I've tried looking over the tutorials, but i must be just a bit slow 🙂
This is supposed to be the clamp part of a moulding machine.
Hi Ravens,
Thanks for the advice, EMO was Emergency Motor Off, to be honest I haven't a clue, this is just a college project but I'm only back in work so have missed last 2 months and this project is due in 2 weeks. Trying to play catch up is just making things more confussing.
All I want to do with this part of the VI is the ability to stop the ram as soon as a button is pressed. And count each time the Ram returns home to indicate a Shot count for parts out.
I know the wiring is awful but i'm so lost I just need to get something that I can submit.
Cheers.
04-12-2012 02:42 AM
sorry, you cannot suppose us to do your homework.
04-12-2012 05:39 AM
@Asuran wrote:
[...] EMO was Emergency Motor Off, to be honest I haven't a clue, this is just a college project but I'm only back in work so have missed last 2 months and this project is due in 2 weeks. Trying to play catch up is just making things more confussing.
All I want to do with this part of the VI is the ability to stop the ram as soon as a button is pressed. [...]
A good general rule to follow is that emergency stops should be controlled by hardware, never by software.
04-12-2012 05:47 AM
Hi Jim,
Yea your right, but this is just a simulation for college, it's only going to be opened prob once for 2 min by the lecturer then never seen again. 🙂
Cheers for the advice.
@ Questionmaker, I'm not looking for anybody to do my work, I'm totally lost trying to do as in OP but this is just a small part of the whole project, and I was just looking for some help.
Thanks.