10-29-2018 12:27 PM
@mcduff wrote:
Is this what you did?
Hello mcduff,
I did that but didn't realize I needed to use a shift register. I just tunneled through. Thanks so much. Will contact you when need be.
12-05-2018 05:32 PM
Hello mcduff,
You helped me with my script the other time and I please need you again. My setup is on a vibration isolation system and there is a small vibration anytime the stages move. I therefore want to introduce a time delay such that each time an axis moves this delay would allow the system to settle before the "TakeData" case starts. I added a new case called "wait1" but this seem to be introducing the delay only after the "Initialize" case (which is good, but I also want the delay to apply each time any of the two axes move). I have attached the script. Thanks for your help.
Sincerely,
Petmar.
12-05-2018 05:51 PM
I added a new case called "wait1" but this seem to be introducing the delay only after the "Initialize" case (which is good, but I also want the delay to apply each time any of the two axes move)
In the VI you posted, you go to the wait1 state immediately after initialize. See below
If you want to wait after you move you need to add that state, right now in your VI you go from move, read position, take data.
If the settling needs to occur before taking data, I suggest a quick and dirty hack, as you current setup is not easy to modify. (Take a look at the JKI State Machine, it would work well for this situation.)
Add a time delay in your takedata state directly, this way every time before it takes data, you will have a delay. Then get rid of the wait1 state. See below
Delay before you take data
In the meantime, I suggest you go onto VIPM download the JKI State Machine and start to learn how it works, it will make modifying your VI in the future much easier.
mcduff
12-06-2018 09:18 AM
Hello mcduff,
I just got to the lab. I'll follow your steps and get back to you soon. Thank you.
P.
12-06-2018 10:14 AM
Hello mcduff,
Your suggestion works, thanks a lot for your help. I have also installed the JKI State Machined and will start practicing soon. Again, I'll get in touch if I need your help. Thank you.
Petmar.