Jump to content

working with encoder


Mahmoud

Recommended Posts

Hi all ,,

Im new to lab view , i'm currently using it for my graduation project (controlling gasoline engine using lab view) , my problem now is to utilize an encoder to perform specified tasks upon certian degrees , so i used loop that get the current degree from the encoder then perform the tasks upon specified conditions, the problem that the encoder frequency is higher than loop iteration frequency (i think that) for examlple i did an equality comparison with certain degree number then i found for low RPM it invoke the associated equality task but for heigher RPM it doesnt.

so i thaught if the loop iteration frequency can be raised ?

or can i make my tasks pulse driven ? i meant perform the tasks upon each pulse come from the encoder (instead of using loop)

Thanks

Link to comment

When you say make your code respond faster what sort of time scale are you talking about? The response time lag and frequency of response that you are needing change the answer (at least in my mind).

Also, can you post your code? Easier to offer comments if we can see it.

Link to comment

hi

i'm talking of about 20 RPS on each revolution 360 pulse means about 7200 pulse per second

by searching i found a solution hope to be suitable in my situation

QUOTE

I would recommend using the encoder input as your sample clock for the AI.

any information of how to do this ?

Link to comment

QUOTE (Mahmoud @ May 22 2008, 07:36 PM)

My company builds ATE and lab equipment that includes engine cold test (which includes engine control module simulation for ignition events and cylinder cutout). You want something FPGA based and not a M-Series card. It may be possible to do what you need with a series of counter/timers; unfortunately, the 6250 card likely doesn't contain enough counters to decode TDC position much less create the timing signals you'll need.

Tim

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.