How do you cyclicly trigger data acquisition after n pulses counted

Hello all, please forgive my ignorance because I am very new
to lab view and data acquisition. I am working on a system which is going to
scan an object and produce an image. The gimble that I am scanning the object
with is an X-Y type of gimble with stepper motors on each axis. The stepper
motor controller will output pulses real time to indicate the real time
position of the gimble in each axis. What I need to be able to do is count
pulses from the stepper motor controller and then output a trigger pulse to
trigger the data acquisition in a buffered mode when N number of pulses have
passed and then generate another pulse to stop the acquisition after another N
number of pulses have passed. The controller puts out 10,000 pulses per degree
of travel. The velocity that I am traveling at is 20 degrees per second, so
timing here is really important. I need to be able to utilize the speed of the
daq card and not so much the speed of the computer to iterate through a loop. I
have tried using the count down feature in the NIDAQ MX library but it does not
appear to be useful to me. I set it up and it will count down but once it hits
zero it continues to count down. My expectation was that it would either
restart the down count or it would stop. I was expecting some sort of trigger
event to take place once the count reached the zero point but I did not observe
any sort of event taking place. Once again my knowledge and background is
really limited so I could be missing something really fundamental here. I have
tried using some of the legacy functions which would enable me to do exactly
what I want to do but they do not seem to work with my daq card. I have a NI
PCI-6122 and if anyone has any knowledge on how to get this type of card to
talk to some of the non MX functions I would be more than happy to hear how. It
seems to me though, that I am limited to the MX functions which I can not
really translate into what I have learned I can do with the legacy functions. I
thank you all once again for taking the time to read this I and I will
appreciate any and all responses that can be helpful.
~ Randy Brown

I have run a few more tests and obtained some data per the request of a telephone support engineer. I have some scope screen shots that might be able to shed some light on what is going on. I will provide a brief description of what I discovered before I show the resulting data. I discovered that using the number of up ticks and down ticks suggested does not yield the right timing for the clock pulses that I will need for triggering my data acquisition. When I use 55 low ticks and 2 high ticks as my settings I end up getting a pulse every 32 pulses read on the PFI line. I get the same results when I interchange the numbers, for example, when I set the program up for 2 low ticks and 55 high ticks I get the same resulting one clock pulse per 32 pulses on the PFI line. I started playing with the numbers and come to find that I was able to generate a pulse every 57 pulses in this setup. I set the high ticks to 2 and the low ticks to 71 and once I did that it generated a pulse every 57 pulses in. The results are not ideal though, a number of things happen within the first second of operation. One mode of operation the clock output pulse latches after a few pulses generated. Another mode of operation that I noticed was that it would generate n number of pulses and then just stop even though the program was still running. The results I am getting are not reproducible when it comes to the long-term operation of the clock pulse generation but the bottom line is not matter what happens the end result after 1 second is not what is expected. I will show below screen shots of my program and also scope shots for the respective modes of operation.
Front End interface
Block Diagram
55 High ticks and 2 low ticks results
55 low ticks and 2 high ticks results
77 Low ticks and 2 high ticks results
Undesired Latch after 1 second of operation
N number of pulses generated and stopped while program was still running
 It appears the the long term operation (and when I say long term I mean after a second) is intermittent, it either latches high or low after a random number of pulses are generated on the clock output. I am not sure why this is happening. The one setup that I came up with that generates a pulse every 57 pulses is not going to work for the setup that I have I think I would have to reduce the 71 to 69 in order to compensate for the two pulses that happen while the output pulse of the clock is high. To be honest I have no idea what is going on and I am starting to wonder about my daq card. Being that it is not really reproducing the same results I am starting to think maybe something is wrong with it. Another possibility is that it might be the bnc 2110 that I am using. I will try another one tomarrow and see if this problem persisits. I am leaving now so I won't be able to try that as of yet but I wanted to pass this info and data along such that maybe you will notice something and be able to lead me in the right direction. Thank you again for all of your help.
~ Randy Brown

Similar Messages

  • Hi, may i know how can i get all data back after update ios 6

    Hi,
    May i know how can i get all data back after update ios 6 and all my data lost ?

    You can restore the phone and when prompted to restore choose from icloud account. BUT MAKE SURE there is 1.) an icloud backup for your phone. 2.) you are using the same apple id.
    apl

  • HT2534 How do you use an iTunes card after you have redeemed it?? I have entered my code for redeem and when I click on purchase song it asks me for a credit card?!

    How do you use your iTunes card after you have redeemed it. I have entered my redeem code and my balance is $20.00 but when I go to buy a song it asks me for my credit card details...?!

    If you set up an Apple ID already and didn't enter credit card details because you were planning on using gift cards only, you probably set up the account incorrectly. If this is the case, you will have to enter the credit card details even if you want to use only gift cards and download free content only. Yoy will not have to use the card, but you can't use the ID without entering the card details now. You may be able to remove the card as well after the card is verified for use by Apple by editing your account details.
    There is a very specific manner in which you have to set up an ID without using a credit card. You can read about it here.
    http://support.apple.com/kb/HT2534
    See this about changing iTunes account information.
    http://support.apple.com/kb/ht1918
    If you decide to create a new ID now, you will new another email address as wel, because the email address that you are currently using will already be associated with the ID that you just set up.
    I am making certain assumptions here and reading between the lines of your post, so if I am guessing incorrectly, post back with more details.

  • How do you transfer the data from your Ipad to a new pc?

    How do you transfer the data from your Ipad to a new pc?

    Sync with new computer
    http://discussions.apple.com/docs/DOC-3141

  • How can you get a calendar back after deleting it

    How can you get a calendar back after deleting it

    You will have to restore the device from a backup on icloud.  (this assumes you have backups turned on in settings>icloud)
    http://support.apple.com/kb/HT1766?viewlocale=en_US&locale=en_US
    Go to Settings>General>Reset and tap Erase All Content and Settings.  This will erase your device.  Then you will go through the setup screens again as you did when your device was new, and when given the option, select Restore from iCloud Backup.

  • How do you change the date of the photo?

    How do you change the date of the photo? 

    Photos Men -> Adjust Date and Time
    Regards
    TD

  • How do you merge the data of two MIDI regions?

    How do you merge the data of two MIDI regions into one MIDI region without using copy and paste functions in the piano roll editor?

    Sorry - didn't make myself clear. The glue tool would be no good here. I meant that I wanted, for example, to merge the MIDI contents of two regions that are perhaps on different tracks but play back at the same time, i.e. I want to add the 2nd region's MIDI to the 1st region's MIDI, but without having to go into the piano roll editor and cut and paste the data.

  • How do you change the dates on your iphoto pictures?

    How do you change the dates on your iphoto pictures?

    You'd need an app that can edit EXIF data. You can't do that natively on an iPhone but there may be apps in the App Store that will let you do it. Take a look at Snapseed. I think it might.

  • HT1438 how can you unlock an iphone 4 after is has been disabled?

    how can you unlock an iphone 4 after is has been disabled?

    Once the Device is asking to be Restored with iTunes... it is too late to save anything... and you must continue with the Recovery...
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
         After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • HT201250 how do you restore iCal data in Snowleopard?

    how do you restore iCal data in Snowleopard, as was it was wiped during sync update?
    Where is the file? Can it be restored using time machine?

    wrince wrote:
    Where is
    <~/Library/Calendars>
    Can it be restored using time machine?
    Yes.

  • How do you make your data into a chart?

    How do you make your data into a chart?

    Dick,
    Your table should look like this:
    You're looking at 1 Header Row and 1 Header Column. Headers are shaded by default. Adding a shading to a regular column doesn't make it a header. Use the Table Inspector.
    When you Select the data and Insert a Table, you will get this:
    Got it?
    Jerry

  • HT3986 how do you enlarge boot camp partition after windows is installed

    how do you enlarge boot camp partition after windows is installed

    Welcome to the Apple Support Communities
    You can do it with third-party programs, but I don't recommend it because you can damage the hard drive. The best way to do it is to delete your Windows volume and create it again with the size you need

  • After backing up through time machine on external hard drive, how do you access that data?

    I backed up my MacBook to an external hard drive through Time Machine. After it was all done and I reconnected the external hard drive to make sure that I could access everything that was backed up, I couldn't get into the data on the external hard drive because it said that it was backed up through Time Machine.
    What does this mean? How to I access the data that is on my external hard drive?

    There are 2 options.
    1) (The Suggested way) With the TM external drive connected Open The Time Machine App in Applications and you can browse what has been backed up.
    2) Open Finder and select the drive name on the left then the Backups.backupsdb folder and in there is all your files from the backups you have made listed under your Machine Name and in that folder under the dates/times they were created

  • HT201263 After you restore your ipad how do you restore the data backed up on icloud

    After you have restored your Ipad mini, how do you restore all the apps and data backed up on icloud and sync apps purchased previously

    Read through this Apple article on how to restore from an iCloud backup:
    https://support.apple.com/kb/ph12521

  • How can you see a date on a picture

    When you take pictures how can you go back to see what date you took them

    Not in the Photo app.  You can after you import the photo to your computer.  I have not checked to see if there are any apps allow you to view the date. Photoshop Express does not.

Maybe you are looking for

  • Install PC Suite 7.0.8.2 to drive other than C

    I am trying to install PC Suite 7.0.8.2 to my D: drive, but there is no choice given in the installation. Is it possible to install to a drive other than the C drive? I have little space left on the C drive.

  • MS Explorer breakdown

    I have an applet in my jsp page which works fine. When I leave the applet and navigate to another page, the MS Explorer will crash in that way that Billy wants to have my message on his desktop (will say: windows asks me to send a report and Explorer

  • Predefined Performance Management Process and Infotype 7409 'Performance'

    Hi, I hope, that anyone can answer my question. I have configured a predefined Performance Management Process in SAP 6.0 EHP4 and finished the process with an overall assessment of the performance of the employees. However, no data has been written i

  • Mail crashing exc_bad_access

    Hi all, My mail is crashing it started today while i was playing around with the same crash in xcode. both crashed on startup but xcode seems te work fine atm. here is my log Process:         Mail [1039] Path:            /Applications/Mail.app/Conten

  • Save As without closing the open .psd

    I have a save an opened image. How do I "Save As" or create a copy yet not close the original image? Need to keep both images open.