LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a button

Solved!
Go to solution

@govindsankar wrote:

What I actually need is to control a hydraulic press. So when I press a button, my labview program will read the button has been pressed. Then the program will inform the control system of the hydraulic press that the function has to be performed, and then the press will put holes in a battery cell. This is the process that has to be done. 


This kind of thing requires some SERIOUS safety concerns.  Your code has to be BULLETPROOF or someone could get seriously injured!  IMO something like this should be either be completely automated (no one is allowed near the press during operation) or completely manual.  Mixing the two is asking for trouble.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 11 of 53
(1,013 Views)

Ok, so I connect my push button to the digital terminal of the cRIO and labview to cRIO, so when I press the button I can read that by using the cRIO. This is correct right?

0 Kudos
Message 12 of 53
(1,006 Views)

@govindsankar wrote:

Ok, so I connect my push button to the digital terminal of the cRIO and labview to cRIO, so when I press the button I can read that by using the cRIO. This is correct right?


There are few aspects to cRIO, there is the FPGA part, RT part and the remote connection to a host part.

 

FPGA and RT code run on the cRIO, you can program these to make fast and deterministic actions based on inputs. Ideally, you implement a FPGA logic that reads the input from the push button switch and signal outputs to turn on the hydraulic press.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 13 of 53
(1,002 Views)

Is cRIO the best solution or are there other DAQ products which can be used. Thank you. 

0 Kudos
Message 14 of 53
(976 Views)

@govindsankar wrote:

Is cRIO the best solution or are there other DAQ products which can be used. Thank you. 


As mentioned before, any DAQ will work. Even a "cheap" USB-6001 would work.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 15 of 53
(947 Views)

@govindsankar wrote:

Is cRIO the best solution or are there other DAQ products which can be used. Thank you. 


The answer will depend on how critical is this automation? will a windows crashing during run will cause a catastrophic failure of your machine?

 

Try to answer this - imagine yourself operating this machine and the windows machine crashes, would you be still safe? and secondary will the machine will still be in good condition?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 16 of 53
(941 Views)

@santo_13, I'm going to try to be polite but there isn't a very delicate way to put this.

 

The sum total of what you've posted in this thread leads to the overwhelming conclusion that you know almost nothing about data acquisition and machine control... and you're talking about controlling a hydraulic press.

 

The best advice I can give you is to go to whoever assigned you this task, and request to be reassigned to something more basic. There is a huge knowledge gap between where you are and where you should be before writing a program that controls a piece of heavy machinery.

 

If that isn't an option, try some Google searches for "simple data acquisition in LabVIEW" or something along those lines. There are tons of good videos and tutorials that will get you started.

Message 17 of 53
(931 Views)

@BowenM wrote:

@santo_13, I'm going to try to be polite but there isn't a very delicate way to put this.

 

The sum total of what you've posted in this thread leads to the overwhelming conclusion that you know almost nothing about data acquisition and machine control... and you're talking about controlling a hydraulic press.

 

The best advice I can give you is to go to whoever assigned you this task, and request to be reassigned to something more basic. There is a huge knowledge gap between where you are and where you should be before writing a program that controls a piece of heavy machinery.

 

If that isn't an option, try some Google searches for "simple data acquisition in LabVIEW" or something along those lines. There are tons of good videos and tutorials that will get you started.


The OP is @govindsankar; @santo_13 was just giving advice. Excluding the name mistake, you are correct, this project seems a little advanced for the OP.

Message 18 of 53
(927 Views)

@mcduff wrote:

@BowenM wrote:

@santo_13, I'm going to try to be polite but there isn't a very delicate way to put this.

 

The sum total of what you've posted in this thread leads to the overwhelming conclusion that you know almost nothing about data acquisition and machine control... and you're talking about controlling a hydraulic press.

 

The best advice I can give you is to go to whoever assigned you this task, and request to be reassigned to something more basic. There is a huge knowledge gap between where you are and where you should be before writing a program that controls a piece of heavy machinery.

 

If that isn't an option, try some Google searches for "simple data acquisition in LabVIEW" or something along those lines. There are tons of good videos and tutorials that will get you started.


The OP is @govindsankar; @santo_13 was just giving advice. Excluding the name mistake, you are correct, this project seems a little advanced for the OP.


I mean, it's okay to attempt something above your pay grade, but in this case, someone could get seriously injured (or even killed) by a bug in the program.  Best to let someone very experienced handle this one.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 19 of 53
(917 Views)

To summarize the fellow members responses,

To answer your original question, you need some kind of DAQ to detect or read a push button switch state and use it in your application to do other stuff (if you think about this, keyboard is by itself a push button that interfaces with the computer).

 

On a broader aspect, you need to seriously consider the safety aspects of automating a heavy machinery using an application running on windows machine. Typically, automations involving expensive/heavy equipment and human safety risks includes a lot of safety mechanisms considering all failure modes.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 20 of 53
(913 Views)