LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

automatic hammer


@OriolesFan wrote:

You definitely need to run Block Diagram Cleanup on your code.  Some wires have unnecessary bends, but a bigger problem is that you have wires running behind other objects.  All of which make it harder to read your diagram.

 

If you don't want the digital output to execute right away, then you might need to add a time delay mechanism in your code.


Thank you for the advice.

 

As for the time delay mechanism, the digital output will execute at specific distance interval. I was able to resolve my distance measuring device and made an array for spacing interval. my concern now is how to make the digital output execute based on this interval and make sure the hammer goes back to original position again.

0 Kudos
Message 21 of 34
(993 Views)

If you control the outputs manually in MAX, can you make it work as you wish?

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 22 of 34
(986 Views)

@Yamaeda wrote:

If you control the outputs manually in MAX, can you make it work as you wish?

/Y


Im sorry I was lost... MAX means the DAQMx? The purpose is to have this tapping machine hit automatically in an interval set by my program as it moves.

 

 

 

 

 

 

0 Kudos
Message 23 of 34
(977 Views)

No MAX means the Measurement and Automation Explorer.  It was renamed MAX in the start menu a few versions ago.  It is the first place to go for checking out NI hardware.  It scans your PC for the devices available and lets you open test panels where you can do basic inputs and outputs on the hardware.  It is not a place to write software, it is a place to ensure your hardware is working right, before writing software in LabVIEW using DAQmx drivers.

Message 24 of 34
(972 Views)
Thank you for enlightening me.
yes i went through that to check my daq and run self test.
There is no problem with the daq device. Im still stuck as to why my hammer autimatically hit once i turned on my system so i ask the manufacturer about it.
0 Kudos
Message 25 of 34
(965 Views)

@camr_tna wrote:
Thank you for enlightening me.
yes i went through that to check my daq and run self test.
There is no problem with the daq device. Im still stuck as to why my hammer autimatically hit once i turned on my system so i ask the manufacturer about it.

The point wasn't to perform a self test, the point was to open a test panel so you can turn on and off outputs of the DAQ card to ensure it is operating the way you want.

0 Kudos
Message 26 of 34
(953 Views)

The USB-6002 starts as an input when first powered up. It has 47000 ohms to digital ground. There is no specification about whether any glitches may occur when switching to output mode. 

 

When using simple DAQ devices such as this to control critical loads (in your case a hammer you do not want dropped before you are ready), I always recommend an external circuit to enable the critical load. In this case it could be something as simple as a time delay applied to the power for the solenoid. Require one digital output line to go high for one second and then go low for 1 second and then go high to turn on the power to the hammer solenoid.  Any glitches which occur will not last one second.

 

Lynn

0 Kudos
Message 27 of 34
(944 Views)

@johnsold wrote:

The USB-6002 starts as an input when first powered up. It has 47000 ohms to digital ground. There is no specification about whether any glitches may occur when switching to output mode. 

 

When using simple DAQ devices such as this to control critical loads (in your case a hammer you do not want dropped before you are ready), I always recommend an external circuit to enable the critical load. In this case it could be something as simple as a time delay applied to the power for the solenoid. Require one digital output line to go high for one second and then go low for 1 second and then go high to turn on the power to the hammer solenoid.  Any glitches which occur will not last one second.

 

Lynn


Lynn!

you are correct. i need external circuit.

i will try this oneto delay my hammer action.

 

 

0 Kudos
Message 28 of 34
(927 Views)

@johnsold wrote:

The USB-6002 starts as an input when first powered up. It has 47000 ohms to digital ground. There is no specification about whether any glitches may occur when switching to output mode. 

 

When using simple DAQ devices such as this to control critical loads (in your case a hammer you do not want dropped before you are ready), I always recommend an external circuit to enable the critical load. In this case it could be something as simple as a time delay applied to the power for the solenoid. Require one digital output line to go high for one second and then go low for 1 second and then go high to turn on the power to the hammer solenoid.  Any glitches which occur will not last one second.

 

Lynn


Lynn!

you are correct. i need external circuit.

i will try this oneto delay my hammer action.

 

 

0 Kudos
Message 29 of 34
(927 Views)

@camr_tna wrote:

@johnsold wrote:

The USB-6002 starts as an input when first powered up. It has 47000 ohms to digital ground. There is no specification about whether any glitches may occur when switching to output mode. 

 

When using simple DAQ devices such as this to control critical loads (in your case a hammer you do not want dropped before you are ready), I always recommend an external circuit to enable the critical load. In this case it could be something as simple as a time delay applied to the power for the solenoid. Require one digital output line to go high for one second and then go low for 1 second and then go high to turn on the power to the hammer solenoid.  Any glitches which occur will not last one second.

 

Lynn


Lynn!

you are correct. i need external circuit.

i will try this oneto delay my hammer action.

 

 


Lynn is the Master of All Things Mechanical.

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 30 of 34
(916 Views)