Sign in to follow this  
Followers 0
James_85

GSV Instruction

3 posts in this topic

Could I use a GSV instruction to capture the exact time that I get 2 discrete inputs ?

Share this post


Link to post
Share on other sites

Yes, use the GSV to populate the time array.  Then when the two inputs come on, one shot the time array to another array using a FIFO.

Edited by pcmccartney1

Share this post


Link to post
Share on other sites

I suggest using GSV's sparingly, they really slow your program down. I don't know how much accuracy you need.  If you make a logic clock with a timer and counters that is corrected once a day with a GSV your program will run a lot faster than if you execute a GSV every cycle. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0