Keep the impulses generated in synchronization with an external clock

I use a card PCI-6602 with Windows 7 and the ANSI C library.

I need a continuous 100 HZ output to stay in sync with an external 1 HZ clock.

I started with the example in the http://www.ni.com/example/27415/en/

If I send impulses 99 I can retrigger every second without problem

If I send 100 pulses on the next retrigger is missed and impulses come out of all the other seconds.

I have here a way around this?

    TaskHandle  taskHandle = 0;
char * chan = ' Dev1/ctr0. "
float64 duty = 0.5;
float64 freq = 100;
uInt32 slow = DAQmx_Val_Low;
float64 initDelay = 0.0;
uInt32 edge = DAQmx_Val_Rising;
char * triggerSource = ' / PFI19/Dev1;
uInt32 numSamples = 100;

DAQmxCreateTask("",&taskHandle);
DAQmxCreateCOPulseChanFreq(taskHandle,chan,"",DAQmx_Val_Hz,idle,initDelay,freq,duty);
DAQmxCfgDigEdgeStartTrig (taskHandle, triggerSource, edge);
DAQmxCfgImplicitTiming (taskHandle, DAQmx_Val_FiniteSamps, numSamples);
DAQmxSetStartTrigRetriggerable (taskHandle, 1);
DAQmxStartTask (taskHandle);

To some of the devil, because your timing is a so much is little too limited:

-How is crucial to generate exactly 100 Hz?  What happens if you have generated to, say, 100,01 Hz?  This cheat of tiny bit timing could give the Council sufficient time to rearm and retrigger every 1 second.

-How certain are you that the external signal is a rock solid 1,000000 Hz?   If it can vary quite a bit from your Council, you will not be able to know in advance what time window, you need to meet your 100 pulses in

-assuming that the external signal is a perfect 1,000000 Hz and that you need to generate to (what your Board of Directors believes) a perfect 100,0000 Hz, can you live with generation of 99 impulses instead of 100?

-How do you intend to treat lightly divergence that is almost certain to exist between the idea of external signal of 1.00000 dry and the idea of your Board of Directors of 1.00000 oscillator dry?   I remember well, the 6602 is valued at something like 50 parts per million accuracy of calendar, give or take a little variability of temperature based

Otherwise, no specific magic answers.  If really stuck, I have an idea, or to do something with several counters are working together, but have not thought enough details have confidence in the feasibility.

-Kevin P

Tags: NI Hardware

Similar Questions

  • WMP does not synchronize with drive external hard usb - WD My Passport

    Well this device Wesern Digital is recognized in 'My Computer' when connected to a usb port, it does not appear under in the Windows Media Player synchronization options, therefore, I can not save my music library, for which it was intended. Any suggestions?

    Hello

    If I understand correctly you have a problem with the Windows Media Player synchronization with WD external drive. Do not worry, I'm here to help you with this question.

    I would like to know more information on the issue, so that we can help you better.

    1 is it limited to WD external drive or with all external drives?

    2. were you able to sync external devices successfully earlier?

    3. have you made changes on the computer before this problem?

    Let us try the following methods and check if it works for you.

    Method 1:

    Try the steps in the following Microsoft support article.

    Solve problems in Windows Media Player:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-in-Windows-Media-Player

    Method 2:

    Disable the Windows Firewall and then try to synchronize and check if you are able to synchronize.

    Enable or disable the Windows Firewall:

    http://Windows.Microsoft.com/en-us/Windows7/turn-Windows-Firewall-on-or-off

    Warning: deactivate temporarily the Antivirus\Firewall, then check the issue. Sometimes they may be in conflict. Please make sure that you enable the antivirus software\firewall after the test to keep your computer protected.

    Method 3:

    Try to manually synchronize Windows Media Player.

    Sync manually in Windows Media Player:

    http://Windows.Microsoft.com/en-us/Windows-Vista/sync-manually-in-Windows-Media-Player

    For more information, see the following articles in Microsoft Help.

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-device-to-sync-in-Windows-Media-Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Media-Player-sync-frequently-asked-questions

    Please reply with the status of the issue, so that we can better help you.

  • How to keep the appearance of Firefox 3 with Firefox 4/5?

    How can I keep the menu bar, toolbar, and arrangement of the tab, and the appearance of Firefox 3, I currently use 3.6.8 on my laptop, when the upgrade to Firefox 4 or 5 of Firefox? My office is a Linux machine and the appearance of Firefox it is identical to what I currently use on my laptop and I prefer to keep them with the same so I can keep easily switch between them depending on what I'm doing with my navigation.

    Firefox 5 is essentially an update of security for Firefox 4; I know not all change of provision.

    Interface changes for Fx4 user will work Fx5.

    Don't stay with Fx 3.6.8. At least go to 3.6.19-

    http://www.Mozilla.com/en-us/Firefox/all-older.html

  • The macbook pro is provided with an external hard drive?

    It comes with an external hard drive in the finder, or you buy one?

    It has an internal hard drive, but not an external one.

    (140751)

  • Try to use the capabilities of the Web from TOSHIBA camera with an external device via the USB port.

    Toshiba Web Camera software that came with my new Qosmio X 505 - Q880 is very useful, and I would use it to take pictures with an external camera connected by a USB cable (camera is a Kodak DC290, in case this is useful).  Is it possible to use the webcam with anything other than Toshiba built in webcam?  Now that I'm typing this, it seems a question more appropriate for the Toshiba site, but I guess I'll try here first.

    Toshiba Software is for Toshiba hardware.

    Go to the Kodak Web site and are looking for software for your Kodak camera.

    Or as you say, ask Toshiba.

    See you soon.

    Mick Murphy - Microsoft partner

  • Change the sAMAccountName in AD, synchronization with CUCM

    Hello

    Using CUCM 9.1 and instant messaging and presence 9.1

    We rename several sAMAccountName in Active Directory (AD) of, for example, jsmith to john.smith.

    When testing some of these stars to change manually in AD, it resembles the following sequence that happens. Suppose that the LDAP synchronization is set in CUCM happen every night at 01:00:

    Thur Feb 5-16:00 - change the user jsmith to john.smith AD name

    Fri Feb 6-01:00-synchronization automatic LDAP in CUCM (user account jsmith marked as inactive in CUCM)
    Fri Feb 6-03:15-process of garbage collection (jsmith not deleted - need to wait at least 24 hours)

    Sat Feb 7-01:00-synchronization automatic LDAP in CUCM (still considered Inactive CUCM jsmith user account)
    Sat Feb 7-03:15-(deleted jsmith) garbage collection process

    Sun Feb 8-01:00 - synchronized until CUCM john.smith. Need to associate all devices phone once again, etc.

    So, it's basically a new user account that does not synchronize until the old username is removed from CUCM.

    From what I read in SRND 9.0, it behaves as expected. However, the point of pain here is that these users have to wait 2-3 days to reconnect to Jabber.

    Is there a way to get around this or am I missing something here?

    Thank you

    Frank

    Although I have not tried, but you can try to convert a local user jsmith, john.smith user ID change and force a sync LDAP-> LDAP synchronization system.

  • How to synchronize the time on windows 7 with a domain controller?

    I have a mixed environment with computers Windows 7 and XP computers. A NET TIME command on the script works fine with the XP computers, time synchronization with that of the domain controller. But it does not work on Windows 7. When you try to run the command mannualy, I get the following error:

    Error system 1314
    User does not have a required privilege.
    How can I synchronize time with domain controller?
    Thank you
    Rafael

    Hi Rafael,

    Your question of Windows 7 is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT audience Pro on Microsoft Technet. Please post your question in the Technet forum. You can follow the link to your question:

    http://social.technet.Microsoft.com/forums/en-us/winserverDS/threads

  • Increase in the rate of sampling with external clock

    Hi all

    I have hardware DAQ-SMU-6361 and SMU-8360 controller in an express chassis SMU-1071. My 6361 maximum sampling frequency is 2 MECH. / s. But I want to use my daq with higher sampling rates. After going through the various positions, I decided for two options to increase my sampling rate. You must connect a 5 MHz signal generator to use as an external clock. Another is to use the timer to synchronize PXI Chassis

    My question is

    (1) what is the limit to the frequency that we can use as external clock for data acquisition? Which parameter is limiting the performance of the ADC, if we use the higher clock frequency signal?

    (2) I also learned about an option called 'base time in PXI Express chassis'. can I use this option? Someone please give me a link to a good tutorial on the basis of time in a single PXI Express chassis?

    (3) SMU-1071 chasis, 100 MHz differential clock. Is it possible to use it as a clock to my DAQ 6361 signal?

    Concerning

    Vaidhin.

    HI Vaidhin,

    The article mentions the background basket clock as a possible means for synchronization, but this is accomplished using it as a phase reference clock - align the oscillators on board your hardware DAQ which are then distributed down to produce the sample clock.  You may not use background basket clock or time base on board directly as a sample clock (on the one hand, these signals is much too fast).

    Measuring 1 MHz with a DAQ hardware 2 MHz could not give you what you expect.  You will get 2 points per period of your entry - it's just at the limit to avoid aliasing of your signal and of course do not a good characterization of the shape of your signal.  You might be able to push the card in slightly beyond 2 MHz but not significantly enough to make a huge difference.  You are right that if you have sounds at higher frequencies could be an alias down in your signal.  Any noise above ~1.7 MHz will begin to be eased by a bandwidth limited the 6163 (there is a chart in the specifications , showing the bandwidth).  If you have between 1 MHz (signal) and ~1.7 MHz noise, you might look into an external filter, but again you are always sampling very slowly to be able to characterize the shape of the signal.

    The next steps to the top (in terms of sampling frequency) would be as follows:

    4 MHz: SMU-6124

    10 MHz: PXI-6115

    There are currently no products that use the same DAQmx driver who can enjoy beyond 10 MHz, but NEITHER there also a range of scanners that you may enjoy a lot faster.  If you are interested in sampling up to 100 MHz, you may consider looking in the SMU-5122- there are also faster scanners available, but these are probably not necessary for your application.

    Best regards

  • Synchronize with Nokia N95 or Outlook blackBerry Smartphones

    I just bought a BB bold and now I want to transfer data from my old phone (a nokia 95) to my BB... I tried the wizard of device - switch switch to another device to a blackberry device and two options are displayed (1 palm, 2 software windows mobile). The two are not clickable even if both the BB as the Nokia n95 are connected to the computer. I know that my N95 is not running on palm or windows mobile, but there must be a way to transfer the date even when...

    I also tried to use Outlook, but my BB does not synchronize... I clicked on the contacts and told him to sync it, but there is no forthcoming contacts... The order of the day is a still bigger problem because I can not choose outlook windows, only offerd options are yahoo and ASCII importer/exporter...

    I really need a help cause I'm here getting desperate...

    Thanks in advance!

    In your previous post you said you use Outlook. You are using Windows Mail or Outlook on the computer? I don't think the Desktop Manager can synchronize with Windows Calendar.

    See this link for programs that the Desktop Manager can synchronize with. It is in section "organizing Support.

    http://NA.BlackBerry.com/eng/services/desktop/System_Requirements.jsp

  • HSDIO 6556 loses the lock on the external clock

    Hello

    I'm encountring a strange problem. I use my 6556 HSDIO to generate some model using and external clock (around 20 MHz and 50 ohms impedance). This clock is provided by an MCU and the entire application does not work well. However, when I tried to cool the MCU (up to-10 °) the HSDIO loses the lock and tries to re - lock again (the Red turned led active). When this happens, I can see a new phase shift between the data generated and the external clock, within the scope that is fatal for my application. L ' other, I inspected the data generated looking for a glitch or gigue appearing at low temperatures... Notice anything special... I tried to heat the MCU upward at 100 °, HSDIO does not lock...

    What can I do? 6556 HSDIO is apparently too sensitive...

    Mar1

    Hi Mar1,

    Datasheet public for the chip used in the States of SMU - overclocking 6556 a typical tolerance of jitter of 20 000 ppm, with minimum of 5,000 ppm. For a 20 MHz clock, this corresponds to 1 ns of jitter typical and 250 ps in the worst case. That being said, we cannot guarantee the specifications that are not included in the specifications NEITHER SMU-6555/6556 document because it is not updated with the production trial.

    Best regards

  • Satellite A300-19 q - how to start with an external USB drive

    Hi all!

    I have a (old) TOSHIBA Satellite A300-19 q bought in 2008. I wanted to do a clean install of Windows 7 by reformatting my HD. The problem is that my internal DVD drive no longer works. So I tried to boot from the Windows 7 DVD installation with an external USB drive.
    Unfortunately, I couldn't find a way to boot from USB devices in my BIOS options.
    My BIOS is up to date (version 4.20) from Toshiba Web site.

    So I was wondering, does anyone know if the A300-19 q can boot from USB devices?

    Thank you in advance.

    I have A300 at home but I never tried to start with an external USB device.
    Start your laptop and press F12 to get into the boot menu. There must be USB option. What happen when you try to use it?

  • Qosmio G20 has white LCD diplsay. OK when it is used with screen external en

    I hope someone can help. Qosmio G20 has full white LCD.
    The backlamps are on and the laptopworks fine when used with screen external fr.
    I guess it's probably the motherboard, any ideas?

    Most people would say that if it worked, say, a couple of days and you can't even start on your LCD screen, then the screen or its cable or mobo circuit feeding the LCD failed.

    I had this on another laptop too, and Toshiba are not something so special that this kind of thing is not generally a valid diagnosis.

  • Start with an external display Vista on HP laptop

    Hello

    My HP laptop screen is broken, so I need to use an external monitor. Unfortunately, the screen not active really up to what I'm going to connect to the page into account. This means that if I want to access bios, upgrade to a new operating system, or to do other things, I'm completely blind.

    Is it possible that I can get the operating system to start with my external monitor.

    Please note: I have a strong experience of PC and I'm decent to things like the change of systems. So feel free to suggest something dangerous or risky.

    -Hamed

    Hi hamednilforoshan,

    See the following article useful information and some troubleshooting:

    http://www.Microsoft.com/athome/organization/twomonitors.aspx

    I hope this helps!

    Debra
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Start with an external display in VISTA with an HP dv2000 laptop

    Hello

    My HP laptop screen is broken, so I need to use an external monitor. Unfortunately, the screen not active really up to what I'm going to connect to the page into account. This means that if I want to access bios, upgrade to a new operating system, or to do other things, I'm completely blind.

    Is it possible that I can get the operating system to start with my external monitor.

    Please note: I have a strong experience of PC and I'm decent to things like the change of systems. So feel free to suggest something dangerous or risky.

    -Hamed

    Unfortunately, what you want to do is not possible.  The system should be launched before the second monitor is enabled (and you can't have the main monitor an external monitor on a laptop).  If you want to see what you do with stains where the disk hard operating system is not in use, you have no other choice than to repair your laptop screen (it does not cost much more and if you get only one monitor (and not the entire upper eyelid) you can replace exactly that and it shouldn't cost as much as a whole new lid (assuming it's the monitor that is the problem and not) (not something in the lid) anywhere near).  I did myself on my Dell and it wasn't easy by any means and I had to use tiny tools, I had not used in years (and if ever I need to do it again, I could just let a technician computer repair or Dell even myself worth) - but it can be done.

    There is no way to say BIOS (or something else) to use the external monitor as primary monitor - the controls are not there, and even if they were, the connections would be not activated by the system (and you cannot do it from the BiOS unless / until the system works).  You might be able to do the main monitor once the system is working, but not until then.  I appreciate your computer experience and a willingness to try something dangerous or risky, but it is not a question of who - it is just possible iisn can't with any Windows OS I know and probably other software of OS as well (and I'm not sure I would even suggest something dangerous - perhaps risky - even if I knew it would work because I'm tryng to help solve the problems and not cause) new or worse those).

    I would just bite the bullet and contact HP and get the laptopr fixed or at least get the part and try to do it yourself (a bit risky, difficult, time consuming and who need very small tools to accomplish if this can be done on a HP as it did on my Dell - you need HP technical support or parts if it is possible and that the difference in cost to ensure that it is possible) and useful effort).

    I'm sorry if this isn't what you wanted to hear, but it's like that.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to make a video in Labview that synchronize with the case data?

    Hi guys,.

    I do a program which displays the case data from a satellite to different positions. (For example, to position more near the Sun, the temperature data are higher...)

    To make the most interesting façade, I add in a video of a satellite in orbit around the Earth. The video must synchronize with the data that I show.

    My satellite orbital time is 90 minutes = 5400 seconds. If I use the method of control of ring photo, I have to import 5820 photo frames in the control of ring image. My understanding is that every time that the user can import an image (correct me if I'm wrong). That would mean that I have to import the photos in 5400 times.

    Is there another way to do this? I don't want to waste my time on the import of so many images.

    Vanessa

    If it's a video you have, I would have a look at the incorporation of some sort of video player in the façade through ActiveX. It is not something I've ever tried, but it should be possible and will save you having to generate 5000 + images!

    There is a resource here on the use of VLC with LabVIEW: https://decibel.ni.com/content/docs/DOC-24114

    If you can embed a video player and can be driven through ActiveX, then you should be able to do what you want!

Maybe you are looking for

  • How can I access my mac mini to my iMac 2008 or earlier

    I have an iMac 2008 and I want to use my older mac mini as an external hard drive. How do I access my files, what kind of cable should I?

  • How to find a song name?

    Hello How to find a song name? I tried to use the 'name of the song' quotes, but still get independent additional pieces / artists - some apparently completely random. I want a list of all versions of "song name".  What I get is a few versions, mixed

  • HP Envy H8 1414 Desktop Racing Fan

    Normally, the fan runs very quietly.  Time to time... maybe every 5 minutes the cooling fan will run.  Speed will increase slowly calm down the rage for about 15 seconds, and then she slowly returned to its normal speed alone. Any idea what can be th

  • When I try to update Adobe reader I get Error 1324. How can I overcome this?

    The exact message is "the path to my pictures or volume is incorrect. Please enter again. "I am running XP with a French operating system. If I try to uninstall Adobe, I get the same error message, so I feel completely blocked. Paint Shop Pro 8 has g

  • How to disable the check of HDCP z3 double?

    HelloI can not trow nothing (only walkman, movies,...) since a mobile tv smart phone, he said that the TV was not have hdcp.But I try it with other devices (such as Zte), it works.So, can I disable this function? (HDCP)Thank you P. S.OS: android 5.0.