Markwysong - 6602 counters follow-up..polarity of pulses and delay?

hi,
you kindly answered by labview question regarding the generation of pulses with no delay to the first pulse. you suggested setting the polarity to low. i think i tried doing this, and the baseline became high. in effect, i still have my problem because no transition occurs with delay zero. the pulse event, and transition still occurs after phase 1. is there a way to make the baseline low, and at the same time, make polarity of the pulses low so that the delay is high, and a transition occurs with zero delay?
thank you

Jay,
One more thing to try. I found a VI in the counter->advanced called Counter Set Attribute. One of the attributes, 13, lets you set the count of the counter before it is triggered. If you set your pulse to 50% duty cycle, positive polarity, and then call this VI and set the count to 100,000 (if you are using the 20MHz internal clock) (100,000 / 20,000,000 cts per sec is 5 milliseconds, or the length of phase 1) then when the counter is triggered, it is possible to skip the first phase 1. You must call this VI BEFORE the Counter Start VI.
I've not tried this before, so I'm grasping. Conceptually it should work, but it'd be easy to try it.
Mark

Similar Messages

  • How do I implement a stop trigger for my 6602 counters?

    I currently have the start of data acquistion for two channels syncrhonized with a start trigger. I am doing simple event counting using two seperate counters.
    For my start trigger, I use a third counter to generate a single pulse and put the output on the trigger line that the two counters are watching.
    Works great! But, I also want to synchronize the stopping of data acquisition for the two channels. I thought this would be simple as configuring a ND_STOP_TRIGGER like I did a ND_START_TRIGGER. But, this is giving me errors.
    Does the 6602 not support stop triggering? Am I just out of luck?

    Hi there,
    this thread is quite old but I'm facing the same problems.
    I'm using a PXI-6602 and a PXI-6521 in a PXI-1033 chassis. On the 6521 I create a continuous sample pulse as a counter output. This I route to the PXI_Trig0.
    On the 6602 I have two counters set up to continuous edge counting with the external clock configured to PXI_Trig0.
    I start counting by setting a internal trigger channel to high which is routed to PXI_Trig1, and this is configured as the start trigger signal for both counters on the 6602 so that they count simultaneously based on their common sample clock.
    This works quite good...but I have some problems to stop the counting.
    I have to stop counting as soon as I have reached 1024 increments (one revolution of a wheel, signal duty cycle 50 %) on one counter and then I have to check if the other counter have reached at least 48 (duty cycle 50%) or 96 pulses (duty cycle 20% or 80%, depending on the revolution direction).
    So far I read the counter value of ctr1 in a loop and if the value is equal to or greater 1024 I stop. Sometimes I miss the value 1024 (how can this happen as I count buffered + continuously?) I make a retry. But I get the impression that even I configured both counters with the same start trigger and sample clock, the counting isn't synchronous. When I try it with two function generators, I works quite good but not perfect. If I connect real life signals, in the lower frequency range (up to 500 1/min of the wheel), I almost always have fewer pulses then necessary, e.g. 88-94 pulses instead of 96. In the upper frequency range (up to 3000 1/min of the wheel), I have way too much pulses, e.g. 122-125 pulses instead of 96.
    I use the digital filters of the counter board for both TTL signals.
    Does anybody have an idea what I can do on this subject?
    Thanks in advance for any help
    Regards
    Achim

  • Buffered event counting. Why can't I explicitly sequence generating the Sample Clock Pulse and reading the counters?

    At irregular occasions I need to grab counts from several counters, and buffering the counts must be done simultaneously for all counters. I'm modeling my approach after zone.ni.com/devzone/cda/tut/p/id/5404 which someone kindly pointed out in an earlier thread. However, that example only uses one counter, and you can't test the synchronization with only one counter, so I am using two counters configured the same way, and they're wired to a single benchtop signal generator (for example at 300 kHz).
    What I want to do, I can test in a loop with a somewhat random wait in it. I want to drive a hardware digital output line high for a few ms and then low again. The hardware line is physically connected to terminals for my timing vi's Sample Clock Source and so will cause them to buffer their counts for later reading. After I pulse this line, when I know new good buffered counts await me, I want to read both my counters. If their bufferings are simultaneous, then each counter will have counted the same number of additional counts since the last loop iteration, which I can check by subtracting the last value sitting in a shift register and then subtracting the two "additional counts" values and displaying this difference as "Diff". It should always be 0, or occasionally +1 followed immediately by -1, or else the reverse, because buffering and a count could happen practically at the same moment.
    When I do this using a flat sequence to control the relative timing of these steps, so the read happens after the pulse, the counters often time out and everything dies. The lengths of time before, during, and after the pulse, and the timeout value for the read vi, and the size of the buffer and various other things, don't seem to change this, even if I make things so long I could do the counting myself holding a clipboard as my buffer. I've attached AfterPulse.vi to illustrate this. If I get 3 or 10 or so iterations before it dies, I observe Diff = 0; at least that much is good.
    When I use two flat sequences running in parallel inside my test loop, one to control the pulse timing, and the other to read the counters and do things with their results, it seems to work. In fact, Diff is always 0 or very occasionally the +/- 1 sequence. But in this case there is nothing controlling the relative timing such that the counters only get read after the pulse fires, though the results seem to show that this is true. I think the reads should be indeterminate with respect to the pulses, which would be unreliable. I don't know why it's working and can't expect it to work in other environments, can I? Moreover, if I set some of the pulse timing numbers to 1 or 2 or 5 ms, timeouts start happening again, too. So I think I have a workaround that I don't understand, shouldn't work, and shouldn't be trusted. See SeparateSequence.vi for this one.
    I also tried other versions of the well-defined, single sequence vi, moving the counter reads to different sequence frames so that they occur with the Sample Clock Source's rising edge, or while it is high, or with the falling edge, and they also often time out. I'll post these if anyone likes but can't post now due to the attachment limit.
    Here's an odd, unexpected observation: I have to sequence the reads of the counters to occur before I use the results I read, or else many of the cycles of this combine a new count from one counter with the one-back count from the other counter, and Diff takes on values like the number of counts in a loop. I though the dataflow principle would dictate that current values would get used, but apparently not so. Sequencing the calculations to happen after the reads fixes this. Any idea why?
    So, why am I not succeeding in taking proper control of the sequence of these events?
    Thanks!!!
    Attachments:
    AfterPulse.vi ‏51 KB
    InSeparateSequence.vi ‏49 KB

    Kevin, thanks for all the work.
    >Have you run with the little execution highlighting lightbulb on? -Yes. In versions of this where there is no enforced timing between the counter and the digital line, and there's a delay inserted before the digital line, it works. There are nearly simultaneous starts on two tracks. Execution proceeds directly along the task wire to the counter. Meanwhile, the execution along the task wire to the digital high gets delayed. Then, when the digital high fires, the counter completes its task, and execution proceeds downstream from the counter. Note, I do have to set the timeout on the counter longer, because the vi runs so slowly when it's painting its progress along the wires. If there is any timing relationship enforced between the counter and the digital transition, it doesn't work. It appears to me that to read a counter, you have to ask it for a result, then drive the line high, and then receive the result, and execution inside the counter has to be ongoing during the rising line edge.
    >from what I remember, there isn't much to it.  There really aren't many candidate places for trouble.  A pulse is generated with DIO, then a single sample is read from each counter.  -Yup, you got it. This should be trivial.
    >A timeout means either that the pulse isn't generated or that the counter tasks don't receive it. - Or it could mean that the counter task must be in the middle of executing when the rising edge of the pulse arrives. Certainly the highlighted execution indicates that. Making a broken vi run by cutting the error wires that sequence the counter read relative to the pulse also seems to support that.
    >Have you verified that the digital pulse happens using a scope? -Verified in some versions by running another loop watching a digital input, and lighting an indicator, or recording how many times the line goes high, etc. Also, in your vi, with highlighting, if I delete the error wire from the last digital output to the first counter to allow parallel execution, I see the counter execution start before the rising edge, and complete when the line high vi executes. Also, if I use separate loops to drive the line high and to read the counter, it works (see TwoLoops.vi or see the screenshot of the block diagram attached below so you don't need a LV box). I could go sign out a scope, but think it's obvious the line is pulsing given that all these things work.
    >Wait!  I think that's it!  If I recall correctly, you're generating the digital pulse on port0/line0...  On a 6259, the lines of port 0 are only for correlated DIO and do not map to PFI. -But I'm not using internal connections, I actually physically wired P0L1 (pin 66) to PFI0 (pin 73). It was port0/line1, by the way. And when running some of these vi's, I also physically jumper this connection to port0/line2 as an analog input to watch it. And, again, the pulse does cause the counter to operate, so it clearly connects - it just doesn't operate the way I think it is described operating.
    For what it's worth, there's another mystery. Some of the docs seem to say that the pulse has to be applied to the counter gate terminal, rather than to the line associated with the sample clock source on the timing vi. I have tried combinations of counter gate and or sample clock source and concluded it seems like the sample clock source is the terminal that matters, and it's what I'm using lately, but for example the document I cited, "Buffered Event Counting", from last September, says "It uses both the source and gate of a counter for its operation. The active edges on the gate of a counter is used to latch the current count register value in a hardware register which is then transferred via Direct Memory Access...". I may go a round of trying those combinations with the latest vi's we've discussed.
    Attachments:
    NestedSequences.png ‏26 KB

  • Can I count the PWM pulses and note the timer value simulataneously.

    Im using 6024E. I want to be used for 1-phase motor control. I could generate PWM pulses and read the feedback analog current, but I am unable to read the velocity of the motor. Counting PWM pulses(generated by sensor for each degree of rotation) and reading the digital timer value simultaneously to calculate velocity of the motor. If any body can give the solution it will be appreciated
    Attachments:
    motor_control_ver1.0.llb ‏210 KB

    Hello;
    In case you can read a digital pulse train that would give you the speed of the motor, you can use one of the counters of the DAQ board you have to accomplish that.
    You can configure the counter as buffered event counter, hook up the digital pulse train to the counter gate, and since you have the frequence of the internal timebase that is connected to the counter input, you can calculate the speed of the motor by having the count values that are stored at the event of a gate input pulse.
    Hope this helps.
    Filipe A.
    Applications Engineer
    National Instruments

  • HT1665 i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings if gets any cal

    Hi folks,
    i have an apple IPhone4. I am experiencing certain problem with my iphone4. The problems are as follows a. my ear piece and proximity sensor is not working while making a call. 2. It cannot reproduce sound without earphone but rings normally if gets any call.
    Can any one help me in this regard??

    Try to reset the phone by holding the sleep and home button for about 10sec, until the Apple logo comes back again. You will not lose data by resetting, but it can cure some glitches after installing new software or apps.

  • I cloud gives me the following message when I try and log in "you can't log in because of a server error" any ideas?

    I cloud gives me the following message when I try and log in "you can't log in because of a server error" any ideas?

    Hi spillgar,
    If you are having issues signing in to iCloud from your Windows machine, you may find the following articles helpful:
    iCloud: Account troubleshooting
    http://support.apple.com/kb/ts3988
    iCloud: If you can’t sign in to iCloud.com
    http://support.apple.com/kb/ph2611
    Regards,
    - Brenden

  • How do I delete unwanted photos (duplicates, poor quality How do I delete unwanted photos (duplicates, poor quality or old ones thator oones that I just don't want) from my IPhoto Library.I followed the instruction from Help and neither suggestion worked.

    How do I delete unwanted photos (duplicates, poor quality or old ones that I just don't want) from my IPhoto Library.I followed the instruction from Help and neither suggestion worked.
    Tried to select and press delete key...didn't work
    Tried to select, press arrow on lower right and move to trash.. didn't work

    select a photo in an event and either drag it to the iPhoto trash or press the delete key - then empty theiPhoto trash an dthe system trash and the photo is totally gone from the system
    LN

  • I upgraded to Mountain from Snow and find that there is now a problem adding iphoto to the cloud.  I have iphoto '08,version 7.1.5.  Tried to follow one poster's advice and upgrade to 9.1 but I need 9.0 first and I can't find that.  suggestions? thanks!

    I upgraded to Mountain from Snow and find that there is now a problem adding iphoto to the cloud.  I have iphoto '08,version 7.1.5.  Tried to follow one poster's advice and upgrade to 9.1 but I need 9.0 first and I can't find that.  suggestions? thanks!

    You have to buy iPhoto from the Mac App Store.

  • HT4864 I am using Entourage and followed all the instructions above and still getting IMAP Server error.  Error msg:Security failure.  Data decryption error.

    I am using Entourage and followed all the instructions above and still getting IMAP Server error.  Error msg:Security failure.  Data decryption error.

  • TS1538 After updating my iTunes it no longer acknowledges that my iPod or iPhone is connected so I can't update my music.. I have followed all of these steps and everything is working fine but this new version of iTunes isn't recognizing my devices. Any a

    After updating my iTunes it no longer acknowledges that my iPod or iPhone is connected so I can't update my music.. I have followed all of these steps and everything is working fine but this new version of iTunes isn't recognizing my devices. Any advice?

    I have the same problem. Running Win 8 64Bit, updated to latest ITunes and now will not recognize phone or pad. Followed all advice from Apple (uninstall/restart/re-install, all in exact order) ... nothing. Spoke with Apple tech and walked through the whole process, but no resolution. Tech was trying to be helpful but has no way of addressing issue.

  • I cannot install Adobe Flash Player.  I have windows 7 64bit and firefox browser.  During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed

    I cannot install Adobe Flash Player. I have windows 7 64bit and firefox browser. During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed

    Many thanks for this!   I managed to install the Flash Player with this successfully after many failed attempts before.
    Thanks again
    Jason Pearlson
          From: Jeromie Clark <[email protected]>
    To: Jason Pearlson <[email protected]>
    Sent: Wednesday, March 25, 2015 10:46 PM
    Subject:  I cannot install Adobe Flash Player.  I have windows 7 64bit and firefox browser.  During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed
    I cannot install Adobe Flash Player.  I have windows 7 64bit and firefox browser.  During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed
    created by Jeromie Clark in Installing Flash Player - View the full discussionPlease use the offline installer Internet Explorer: http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ax.exe Firefox and other NPAPI browsers: http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7349939#7349939 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7349939#7349939 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Installing Flash Player by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Ho do I convert my Elements 5 Catalog to Elements 13 which I just purchased.  I followed one of the tutorials and converted my Elements 5 Catalog to a "pse.13db" file.  How do I get Elements 13 to recognize that converted file?  When I open Elements 13 Ca

    Ho do I convert my Elements 5 Catalog to Elements 13 which I just purchased.  I followed one of the tutorials and converted my Elements 5 Catalog to a "pse.13db" file.  How do I get Elements 13 to recognize that converted file?  When I open Elements 13 Catalog Manager and browse to the correct location, it doesn't show the file.  Help!  Thanks

    Bumps a écrit:
    Yes - I can run both versions on my PC.  But I really would like to have all of my pictures in the same catalog.
    You can't merge catalogs (even PSE13 ones) in any PSE version (only LR can do that). So, converting catalogs is not the solution to your problem.
    Since you have PSE5 working on your computer and your images also, the solution is to 'write metadata to files in PSE5) and to re-import the images in the PSE13 catalog. That won't duplicate your image files and you'll lose albums/collections, stacks and version sets, but you'll recover tags, captions and ratings.
    To be able to re-import the files indexed in PSE5, you may have to move them to a new master folder.
    I am not sure what your problem with the conversion may be. It's quite possible that the resulting catalog.pse13db is ok and that the issue lies in the ability to open it in the PSE13 organizer.
    As stated by dj_page, double clicking on that file should open the organizer with the new catalog. You could test that by creating a dummy catalog in PSE13 and importing a small batch of photos. Locate the path of the catalog with the menu Help/system info. Copy the catalog.pse13db in another folder and the 'double click' way to open the organizer with that moved catalog database.
    For other users that may be interested in using PSE5 (issued in 2006) on newer OS, here is a useful link:
    Adobe - Photoshop Elements : For Windows : Adobe Photoshop Elements 5.0.2 update

  • I have followed every forum's direction and continue to get an error 100 when I load the adobe installer assistant and try to sign in to complete the download of Adobe Pro XI trial.

    I have followed every forum's direction and continue to get an error 100 when I load the adobe installer assistant and try to sign in to complete the download of Adobe Pro XI trial.

    Hi Stacy ,
    Please refer to the following link to get details and solutions about Adobe Download Assistant .Please see if that fixes the issue.
    https://helpx.adobe.com/creative-suite/kb/troubleshoot-download-assistant.html
    Regards
    Sukrit Dhingra

  • HT1923 I cannot uninstall apple mobile device support.  I am following the instructions for removing and reinstalling itunes but now stuck.  Please help.

    I am following the instructions for removing and reinstalling itunes because I had a "msvcr80.dll missing from your computer" error.  I have uninstalled itunes and apple software update but the next one in order "apple mobile device support" will not uninstall.  According to the instructions, that one has to be removed before I can do the rest.  Would love any help I can get.

    Hello and thanks so much for your quick reply. I am at a standstill, because I have done those things already and it has not worked. The repair install procedure seemed to take place quickly, but the same thing happened again when I tried to uninstall it the program after that.... It seems to proceed, then the progress bar goes backward, and there it still is!
    When I downloaded the Microsoft Fixit program and asked it to uninstall the Apple Mobile device Support, it started but then got stuck and I had to shut my computer off, as it froze everything up!
    I'm hoping you can help..... This seems to be a problem with the new version, and it's frustrating, because I can't use Itunes on my computer at all till we find a solution.
    Perhaps if I try to restore my computer to before the Itunes 11.1.4 uodate?
    Thanks so much for your help,
    Shirley 261

  • I have repeatedly installed and uninstalled Microsoft Silverlight, I have followed every thing out there and uninstalled from various folders.  It still states the program is there and it won't run.  This is also happening with my coupon printer that word

    I have repeatedly installed and uninstalled Microsoft Silverlight, I have followed every thing out there and uninstalled from various folders.  It still states the program is there and it won't run.  This is also happening with my coupon printer that word

    Copied from a page that helped me:
    I followed someone else's advice and found all the silverlight files in "INVISIBLE FILES".
    In the Finder, choose File > Find or press Command (⌘)-F.
    From the far-left pop-up menu (labeled “Kind”), choose Other.
    In the list of search attributes, select the “File invisible” checkbox, and then click OK.
    In the related menu, choose Invisible Items.
    once loaded go to folder Private
    then to folder VAR
    then folder db
    then folder Receipts
    scroll to any com.microsoft.silverlight item and delete. there are a bunch of them.
    close, restart and install silverlight.

Maybe you are looking for