02-03-2007 03:13 PM
02-03-2007 04:12 PM
How does your program communicate with the "applications? Where do you need the delay? Do you need to send a reset signal and then simply wait to make sure all resets complete or do you want a boolean to be TRUE for a certain time?
So many questions... 🙂
02-03-2007 05:22 PM
02-14-2013 01:33 PM
Hi,
I believe I am looking for a solution to the same problem. I have a control signal that is being updated roughly 3 times a second. However, I would like to add a delay of approximately one second overall so the control signal gets sent to my hardware one second after it should (if there were no delay).
A simple-minded way would be to hard code variables to save the previous 3 control inputs then read them out with the delay. I would rather have something that is a time based delay since that method would depend heavily on the timings in the other parts of my program.
Thanks,
Andy
02-15-2013 08:56 AM
Hey Andy,
You can use functional global elapsed time as in the following example.
https://decibel.ni.com/content/docs/DOC-6523
02-15-2013 03:37 PM
Hi,
I am not really sure how to use this to delay the actuation signal. Right now I have signal x(t) being sent to the hardware, however I want to have signal h(t) = x(t-tau) being sent, where tau is a roughly 1 second dely. I am not sure how to use this method of calculating elapsed time to implement a delay.
Thanks,
Andy
03-27-2013 08:27 AM
Hi, I have a similar question. I’m using a vision system in LabVIEW to continuously monitor parts as they pass on a conveyor. My issue is when a part is matched to a pattern, a numeric one is outputted, converted to a Boolean expression, which is then activating a DC motor. The problem is the DC motor is only energized for a short time. I want to know, can the DC motor be energized for about 5 seconds after the original signal is activated, without affecting the rest of code?
03-27-2013 10:48 AM
I guess you could put the energizing code in a separate parralel loop, but is this really what you want it to do? What happens if a part is matched and the motor is still energized?
03-28-2013 11:11 AM
Hey, I managed to find a way around it using a Case Structure and Shift Register. Basically when the match is detected a Boolean expression is sent to the initialization of the case structure. This sends the motor high and sets the register to 0. When the part leaves the area of interest, the case structure returns to false, where an increment counter is set to increase the shift register up till a certain number. All the while the coil is still energized and is turned off once the shift register is greater than the fixed value.
Let me know what you guys think and thank you for helping.
03-28-2013 12:04 PM
Sounds interesting. Could we take a peek at your code?