10-09-2014 12:38 PM
@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.
10-09-2014 01:19 PM
If you control the outputs manually in MAX, can you make it work as you wish?
/Y
10-09-2014 01:48 PM
@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.
10-09-2014 02:01 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-09-2014 02:08 PM
10-09-2014 02:54 PM
@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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-09-2014 03:31 PM
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
10-09-2014 11:31 PM
@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.
10-09-2014 11:31 PM
@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.
10-10-2014 01:08 AM
@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.