"Do you know a way to set counters automatically to a specific value when TC (i.e. zero) is reached?

The inputs of my 6602 counter are two encoder signals, and I want
to generate an output pulse every n-th increment of the counter.
On the National Instruments Support Pages there exists a vi
"Generate pulse every N position.llb" which promises to do that, but
there are some problems:
Here the counter is preset e.g. to 20 and then counts down to 2, 1, 0.
When zero is reached, an output pulse is generated. This pulse now triggers
the Z index channel in order to set the counter again to 20.
However, this does only work, if both encoder signals are low when the
Z pulse is active (or if both encoder signals are high or one is low and the
other high, but not in
all of these cases). The consequence is, that the
example vi does only work with X1 encoders but not with X2 or X4 encoders.
In the case of X2 or X4 encoders (or even in some cases of X1 encoders) it can
happen that not both encoder signals are low when the Z pulse is active. Them
the counter counts 2, 1, 0, -1, ... where -1 actually means a very large
number because the counter values are unsigned. From then on no further output
pulse is generated.
To solve this problem there should be the possibility to set the counter to a
specific value (here 20) when it reaches TC (i. e.), independently what the states of
the encoder signals are. It would be best, when for this the Z pulse was not
used, for many encoders do have a real Z pulse that also may be used.

You are right in the case when the counter is to be reset
in the presence of a reference mark.
However the problem is to generate output pulses every N-th
increment of for example a X4 encoder. Let N be 6. The
counter counts 6, 5, 4, 3, 2, 1, 0. Then an output pulse
is generated which is fed back to the Z channel. Let us assume
that the Z index reload phase has been chosen correctly. Then
the counter is reset to 6. It continues counting
5, 4, 3, 2, 1, 0 and again an output pulse is generated.
But now the channels A and B of the encoder (which were for example
low at the time of the first output pulse) are in the inverted
state (i.e. in the example high) and the Z index reload phase
does no longer match. Therefore the counter is not reset and
continues counting 4294967295, 4294967294, 4294967293, ...,
which is the U32 form of -1, -2, -3, .... After that no more output
pulses are generated since TC (=0) is no more reached.
The problem is obvious. Only in the case of values N with N mod 4 = 0
this approach can be successful. But then X4 evaluation of the encoder
signals does not make sense, because a X1 evaluation does the same.
In practice the situation is even worse. As theoretically expected
the signal generation for X4 encoders never works when N mod 4 is
unequal 0. If N mod 4 is 0 it only works sometimes. "Sometimes" means
here randomly every fourth time, when the start phase of the encoder
signals (which is determined randomly by the starting time of the
software) matches the preselected Z index reload phase. Here it does
not matter which Z index reload phase is preselected.
Therefore the example program definitely cannot be used in combination
with X4 or X2 encoders.
There are a series of further arguments why we are not really satisfied by
the approach proposed by the example vi to use the Z index channel in order to reset
the counter. One is that we have encoders with real reference marks, which have
to use the Z index channel themselves to reset the counter. Another is that we
think that it is a rather complicated approach to reset a counter when TC (i.e. zero)
is reached by checking the feedback fed Z index channel from time to time in intervals
given by the internal clock of the 6602 and then reloading the counter value
if certain conditions for the encoder channels are fulfilled.
Therefore (and of course above all in order to deal with X4 and X2 encoders) it
should be possible to reset a counter directly by hardware when TC (zero) is
reached. We suppose the given 6602 hardware is supporting this, particularly
because it is already able to react on TC (by generating output pulses) and because
we think that something like that is already done in continous delayed pulse generation
(and is only hidden in some code that is not accessible for LabVIEW users.)

Similar Messages

  • I dont find my mac book air. Do you know any way to find my laptop?

    I dont find my mac book air. Do you know any way to find my laptop?

    No.
    What To Do If Your iDevice Is Lost Or Stolen
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • Hey guys i just wanna ask you if you know any way how to recover pics deleted from my camera rol and photo stream, i deleted accidentally without backing it up on icloud, any ideas how i can get it back

    hey guys i just wanna ask you if you know any way how to recover pics deleted from my camera rol and photo stream, i deleted accidentally without backing it up on icloud, any ideas how i can get it back

    If you deleted them from both PhotoStream and the camera roll, and you don't otherwise have them backed up, they're gone.

  • Hello i lost my i-phone.. do you know eny way to find it without " find my iphone"??

    Hello i lost my i-phone.. do you know eny way to find it without " find my iphone"??

    Hello i lost my i-phone.. do you know eny way to find it without " find my iphone"??

  • Could you change the way ff behaves in fullscreen? i hate it when i moves whole page on tab-bar display. tab-bar should slide on page without moving it

    could you change the way ff behaves in fullscreen? i hate it when i moves whole page on tab-bar display. tab-bar should slide on page without moving it

    I agree and looked everywhere for
    http://www.krickelkrackel.de/autohide/
    to no avail.
    Can someone please change how to make fullscreen not push the page down when toolbars are shown on mouse hover in FF? The toolbars should behave more like IE. This would make FF SO much better. Please dont take the IE comparison the wrong way as FF is quite superior and the ONLY browser I use, but this one thing has got to be changed. It's irritating the way FF pushes the whole web page down while in fullscreen mode when the toolbars are shown on mouse hover.

  • Do you know a way for Java to support event for my 5 button mouse?

    I have MS mouse with 5 buttons
    I want the option in my app to support events for button number 4 and 5
    anyone knows a way?

    Could you be more clearer with your requirements. What you really want to achieve and what you get?
    And use the code tag to post the codes.

  • My reminders on my IPone 5s suddenly went away do you know a way I can retrieve it?

    My reminders on my Iphone 5s suddenly went away do you know how I can retrieve them

    Also I'd like to add that I found it really hard to find my own question (above) here to see if anyone answered it.
    I have no idea if I get notified if there's an answer (perhaps writing this will prompt that).
    Tonight having had NO response from this feedback I tried on-line support only to have the person connect to me
    except to say
    Now chatting with Matthew, case # 704489371
    AND NOTHING ELSE
    After waiting a minute of no reply I started asking if the person was still there. Nothing. After several questions and no response I tried to do another live chat only to find that service unavailable.
    The service standards here are awful.

  • Is there a way to set a default "Source Range" in AME when exporting from Premiere Pro CC?

    When exporting a sequence from Premiere Pro CC, you are able to toggle between 4 drop down options within Adobe Media Encoder on what Source Range you'd like to export (Work Area, Sequence In/Out, Entire Sequence, Custom) as seen here:
    Is there a way to set the default Source Range to something besides Sequence In/Out?
    My reason for asking is that sometimes I export multiple sequences at once using AME's Queue. I add my custom presets to each Sequence and hit export, but SOMETIMES I may have accidentally marked an in point on my timeline and by default it's set to export only that In-to-Out part of the sequence.
    I know what you may be thinking...well, just don't add any In/Out points to your sequence on the timeline or clear them first. The trouble is that I often don't see them or catch them when working quickly. In Premiere Pro CC, I use the "Lighter Brightness" Appearance setting because it's easier on my eyes after editing 10 hours a day, 6 days a week. Sure, darker looks cooler, but it kills my eyes for some reason. Anyway, PPro CC has a troublesome appearance issue in CC where it's not "optimized" for editing when you change it to a lighter appearance like it was in CS6. I've already contacted Adobe about this and another appearance issue (involving highlighted clips when in Lighter Appearance setting) and they are "actively working on fixing this appearance issue asap". 
    For reference, here's Premiere Pro CC in/out points in default dark appearance (notice the slightly lighter grey area):
    Now here's that same in/out in "Lighter Appearance":
    Not exactly optimized. Can hardly see it. Good luck spotting that little guy on a long timeline. Sadly, this affects in/out points in the Source Window as well. Really hard to see.
    Conversly, CS6 looked the best (the blue REALLY stands out making things easy to see):
    So my question again...is there a way to set the default "Source Range" to something else besides Sequence In/Out so that I don't end up doing what I just did and leaving for several hours while batch exporting only to come back and find that I exported only a "portion" of one of my big sequences?
    Thank you!

    shooternz wrote:
    Here is the solution:  Slow down. Give your project some love. Smell the roses.
    Agreed about the roses but alas my next project always calls. Actually, I think what happens is I give each project SO much love that when it comes to exporting, I've run out of time.
    shooternz wrote:
    Then it would not be a default...it would be an option and you already have that option.
    Semantics aside, I would love to be able to have it at least default to whatever option was last chosen. Or, perhaps I shouldn't use the word default again...I'd love it to simply remember my preferred setting. That's all.

  • Set the AVID DV codec specific values programaticly

    Hi,
    I am trying to change the AVID DV codec options settings from NTSC to PAL 420.
    i used the
    SCGetSettingsAsAtomContainer ( video_ci, &container );
    function to save the selected codec settings from the dialog.
    If i read them and check it with the dialog it show Avid Dv pal 420.
    if i start compressing it turns out to be ntsc again.
    and if i read the values back trouch the GetMediaSampleDescription(..) etc...
    It also shows its encoded with an NTSC setting.
    Please help.
    Cheers,
    Peter
    How can i set the Codec specific values.
    Can this be done by SCSetInfo
    if i load the saved compressor data with
    Please can anyone give me a hint were to search and what to do.
    Is there a way to save the compression settings, not the export settings.
    Thanks,
    Peter

    I tried to check what happens if i print the codec settings
    SCGetSettingsAsText( video_ci , &text );
    when i print for example the apple motion Jpeg codec it also shows the option settings
    if i print the Avid DV codec it does not show the the Pal/Ntsc settings.
    so it looks like an avid problem. HMMM or is there another way i could try to get all the settings for the selected codec.

  • Do you know the way they design mobile?

    Contact me if you want to see the source code, detail specification of Japanese mobile.
    Email: chochetgatoi at gmail.com

    Also I'd like to add that I found it really hard to find my own question (above) here to see if anyone answered it.
    I have no idea if I get notified if there's an answer (perhaps writing this will prompt that).
    Tonight having had NO response from this feedback I tried on-line support only to have the person connect to me
    except to say
    Now chatting with Matthew, case # 704489371
    AND NOTHING ELSE
    After waiting a minute of no reply I started asking if the person was still there. Nothing. After several questions and no response I tried to do another live chat only to find that service unavailable.
    The service standards here are awful.

  • Any way to set picture locations to a specific lat/lon?

    I've got a bunch of pictures in my iPhoto library that were taken at interesting places that aren't listed in the little database of landmarks that is pre-loaded into iPhoto '09. (For example: at the top of a mountain, or on a particular bridge, etc.) It's easy to find these places in Google Earth, so I know the exact latitude/longitude... but how can I tell iPhoto this information if the mountain/bridge/etc. isn't famous enough to be listed? Is there any way to just type in a latitude and longitude?
    Thanks!

    (However, that's a really cumbersome task if I'm going through a large roll of photos.
    Select all photos taken at the same location and enter the location for all of them at once.
    It would be great if there were a way to just type in a lat/lon if I know it
    I don't see a difference in assigning a name to a lat/long entry or assigning a name to a "pin" location on a map.
    because it's written in the picture file's EXIF header!
    My understanding is that these photos will have to be re-imported if you want iPhoto '09 to "scan" the data and add it to the iPhoto '09 database if the photos where originally imported under iMovie '08.

  • Is there a way to set up a button/action so that when a PDF is sent to print, it automatically crops it?

    I'm on a Mac with Yosemite, and am running Acrobat 9 Pro.
    I have an oversize PDF document that includes navigation tabs across the top like a website. It is interactive so a user can click through the PDF.
    My page size is 8.5"x11.5" - slightly taller than standard letterhead. I have a button set up to print a "printer friendly" version. What I'd like to do is set up an action on the print button so that the pages automatically crop 1/2" off the top, essentially getting rid of the tabs prior to printing. Is this possible using an action and pre-setting the crop amount?
    ~ bexterinni

    There is nothing you can do with iMovie program itself.  Slow response in usually due to a shortage of system resources (CPU, RAM and disk space).
    How much free disk space do you have on your boot drive and what is the capacity of the drive?
    You can check memory utilization while running iMovie using Activity Monitor (in Applications/Utilities).  What does the Memory tab show for Swap used?
    Are you running many other processor-intensive applications a the same time?
    If you have a lot of events and projects, it will help a bit to hide the ones you are not using by moving them from your iMovie Projects and iMovie Events folders into an enclosing folder so iMovie doesn't load them.
    Geoff.

  • Is there a way to set up my iPod touch so that when I sync it with my computer, my computer adds what I listened to on my iPod to my Recently Played list?

    My iPod Classic recently died so I got an iPod Touch. A difference I noticed is that songs I listed to on the iPod Touch do not get added to my computer's Recently Played list like they used to with my iPod Classic. Is there a way to change this? Thanks for any advice you've got for me.

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Is there a way to set up automatic form fill-in on iPad 2

    Can anyone help me with my question?
    Thank you.

    Dear James,
    Thank you for a quick response.  I followed the link you provided and followed the instructions.  I ordered something online, and the auto fill worked excellently. 
    Thank you for your expertise.  This is going to make online experience a lot easier on my iPad.
    Stephenralph

  • Any way to set the Application frame to specific dimensions?

    In order to make screencasts more easily, I'd like to make a small AppleScript or Javascript script that would resize the application frame to exactly 1280 X 720
    I tried a few things in both AppleScript and Javascript but I can't find any reference in the docs on how to point to the Application frame and set its dimensions...
    Any pointer in the right direction much appreciated!

    Yes, we do use Apple Remote Desktop. However, we want the other computer to be black the entire time, whether we are accessing it or not. I just don't want the students to see the mouse flying all over the screen and getting distracted, so I just need the screen itself to be black all the time, while still being on.

Maybe you are looking for

  • ConfigTool Login problem..SecStore.Properties file is missing..!

    hi all, I am unable to open Configtool since the SecStore.Properties file is missing which is supposed to be available in /sapmnt/<SID>/global/security/data/SecStore.properties.. Below is the error being thrown while starting configtool.sh... Error w

  • Exchange UM 2010 Missed Call Notifications removes extensions

    We have integration of Lync Server 2010 and UM 2010. Our internal users don't have a DID, just extensions off our main number. When a user is enabled for UM, they get a missed call notification from UM. The trouble is, telephone number is displayed c

  • Tip on where to buy Cheap HDMI Cable!

    Here's a tip for anyone who wants to save money when buying an HDMI cable/adaptor accessory. Google Dinodirect (http://www.dinodirect.com/) and buy it there. Free shipping. It cost me $4 for the adaptor, and another $3 for the cable. Shipping was fre

  • ORA-12705 setting up repo in Oracle DB

    After "lh setup" to configure repo when using Oracle 10g XE, I recieve message com.waveset.util.ConfigurationError: ==> java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid envir

  • How to call a subvi with event controll?

    Hi:      I got a control vi written extensively by front panel events. I want to use it as a subvi,  can I  fire  a  event trigger programmably by anyway? Thanks