Control the time times of high and low of trains of pulses in C++

Dear team of support of National Instruments,

Here's what I have so far:

I was able to generate the number of pulses (a pulse = a rising edge and front descending one) that the user has indicated via the GUI I created in Visual C++ 2008.

I use DAQmx 8.6.

I use the DigitalSingleChanWriter (hopefully, that's what it's called).

I use for the synchronization of the sample, on request.  I tried to use all other types of calendar but I always get a DAQException run the error that says I can use only OnDemand calendar.

OK, so here's the problem:

I have a USB-6008-6009 card connected to an oscilloscope.  I know that the connection is correct, otherwise nothing would appear.  However, if I send say... 6 impulses, the delay between the first rising edge and the first falling edge is dramatically different and then the second and the third.  If I return my samples, I get an assortment of new and totally random times.  So finally, my question is "Is there a way to control the time of a great time and a bit of time?"

I use a Compaq 2003 lap top, what is worthy of the rubbish heap.  I'm not to blame on this right away as problems that will not solve the problem at hand.  Although I understand if it's actually the problem for random times, but I would still have no way to control the time themselves.

I hope that I don't have drug it too long, but I decided that distribute information on would be better then just a few tid bits.

Thank you for support, that you can offer,

Daniel

OK, so I just returned from the lab, and this is what I got:

I was able to control the time at the time of the high and low by using the "WriteSingleSamplePort" of the DigitalSingleChanWriter method.

I put it in a loop that repeated many times that the user wanted impulses.

At the beginning of the loop, I used a delay function that I wrote and delayed for a time given and then a pulse with a value of 255 and then delayed again and a pulse with a value of 0. And then restarted the loop.

In the end, it works.

Of course, I have another question.  I kept reducing the amount of time between two pulses (1 s, .5s, .2us and so on).  However, once I have diminished the time of secondes.01 or a millisecond, the pulses on the arrested oscilliscope becomes smaller.  It seems that past 1 millisecond Board USB-6008/6009 is unable to deal with the exigencies of the moment.  Or else the computer trash part on that I cannot deal with the exigencies of the moment.  But I believe that the Council is not at fault because it was designed for this exact sort of thing, could you tell me if there is no limitation to the Commission which prevent production of pulses in or within a period of 1 millisecond.  Thank you very much.

Thanks for all the help,

Daniel

P.S. I'll stop you buggin with big messages that I promise you.

P.P.S.  If someone wants to see my source code for their own project, I'd be more than willing to share.  Please email me or leave a message here.

Tags: NI Software

Similar Questions

  • What is the difference between ram high and low density?

    I have an ibm x 3455 7984. high density RAM will it work? If so, it will affect the speed for virtual machines?

    Hello

    If your system is designed to accept briefs DDR (Double Data Rate) DIMM 184pin (usually for desktop computers) or (usually laptops) SODIMM 200pin built for your system to recognize fully the capacity of 1 GB per slot of memory, you must use "Low Density - 64Mx8 config" module of 1 GB. If you use ' high-density - 128Mx4 config' 1 GB module, your PC can only recognize that it is HALF the size to 512 MB or most of the time it won't work.

    In summary: -.

    • The LOW DENSITY modules have 100% compatibility with all systems and all chipsets as it is entirely due to the JEDEC guidelines.
    • HIGH DENSITY modules only have 10% of compatibility and are VERY RIVER because it breaks any guidance Council JEDEC (Joint Electron devices Engineering)

    I also suggest you to contact the IBM support center and check.

    http://www-947.IBM.com/support/entry/portal/overview/software/WebSphere/WebSphere_Application_Server?lnk=mhsd00

    http://www.IBM.com/us/en/

  • Restart computer suddenly (at time of high and low), no BSOD?

    This has happened quite a bit recently.

    I was wondering if anyone has an idea as to what is causing that?

    (Dxdiag if necessary)

    ------------------
    Information System
    ------------------
    Operating system: Windows 7 Home Premium 64 - bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.141211) - 1742
    Language: English (regional setting: English)
    System manufacturer: Micro-Star International Co., Ltd.
    System model: GX780R, GT780R, GT780DXR, GT783R
    BIOS: MSI GT780DXR E1761IMS Ver: 3.0: 18/11/2011-computer laptop MSI
    Processor: Intel Core i7-2670QM CPU @ 2.20 GHz (8 CPUs), ~2.2GHz
    Memory: RAM 16384MB
    Available OS memory: 16362MB RAM
    Page file: 6169MB used, 26551 MB of available space
    Windows Dir: C:\windows
    DirectX version: DirectX 11
    DX setup parameters: not found
    DPI setting: Using System DPI
    System DPI setting: 120 DPI (125%)
    DWM DPI Scaling: unknown
    DxDiag Version: 6.01.7601.17514 32 bit Unicode

    ---------------
    Display devices
    ---------------
    Card name: NVIDIA GeForce GTX 570 M
    Manufacturer: NVIDIA
    Track type: GeForce GTX 570 M
    DAC type: Integrated RAMDAC
    Memory display: 4048 MB
    Dedicated memory: 1488 MB
    Shared memory: 2559 MB
    Current mode: 1920 x 1080 (32 bit) (60 Hz)
    Name of the monitor: generic PnP monitor

    What surfaces does not have the rest of the laptop on? You can buy a cooler stand to help with good ventilation under the computer.

    Removal of the dust bunnies should reduce the noise that makes your computer. It can also reduce overheating, which can lead to unexpected stops.

    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?docid=279891

  • CHKDSK runs everytime I turn on my computer, complete control, the computer tries to start and goes back to CHKDSK every time. Does this mean that my hard drive is crashed?

    CHKDSK finishes control, complete control, the computer tries to start and goes back to CHKDSK everytime, it means my hard drive crashed? and if so, can I just replace the hard drive and then have my technical support help reload my data?

    Hi Karen,.

    ·         Since when are you facing this problem?

    You can check if this article helps.

    CHKDSK runs each time that you start your computer

  • How to export pictures / albums of iPhotos to external disk and keep the time/date/year and location information changed?

    How to export pictures / albums of iPhotos to external disk and keep the time/date/year and location information changed?

    Menu, file == > export - check boxes to include metadata and location- export to iPhoto

    LN

  • Convert a single number to a hexadecimal string of 32-bit and exchange the high and low bytes

    I need to convert a number single precision floating decimal to hexadecimal format of 32 bits, share the high and low bytes and that convert a hexadecimal string.  I tried to use the 'Word of Swap' function but it seems to have no effect on the unique number.

    Then

    A single decimal number of entry: 100

    Convert 32 bit hexadecimal string with the low byte first: 0000 42 8

    Anyone have any ideas?

    Thank you

    Slightly lighter, try to cast U32 and exchange words. Same difference.

    (apparently, exchanging words is a NOOP for SGL, but still accepts SGL without constraint. Interesting...)

  • I paid a monthly subscription, but the room light informs me that the time has expired and you pay. I do so I can work with photos?

    I paid a monthly subscription, but the room light informs me that the time has expired and you pay. I do so I can work with photos?

    Hi Edward,.

    Please check the help below document:

    https://helpx.Adobe.com/manage-account-membership/CC-reverts-to-trial.html

    Kind regards

    Sheena

  • Satellite A45 - the CPU usage is high and slow applications

    Hi all

    I'm trying to debug a hardware problem on my Toshiba Satellite A45. I am running Ubuntu 10.04, but I don't think that it's operating system or related software.

    THE PROBLEM: The CPU usage is high and applications slowly to a crawl after using an intensive application of memory for a few minutes, i.e. to watch a video or a game. Basically, anything that could use the screen much. If instead, I work only from a prompt, even when the application could do a lot of work, I do not encounter this problem. After stopping all applications, the CPU usage is always higher than normal (90% idle, should normally be slowed down to about 99%).

    Xorg now typically showing about 6% (normally use< 2%).="" if="" i="" at="" any="" time="" after="" this="" try="" to="" work="" in="" any="" application,="" usage="" is="" still="" bogged="" down.="" only="" a="" reset="" gets="" me="" back="" to="">

    Note: My system has always worked very well and I did not made the installation of the software or changes when it started to happen.
    However, the laptop is a 800 miles round trip at the rear of the car in a padded bag.

    DEBUG: This doesn't seem to be the RAM that I replaced the RAM and reinstall the RAM, and the problem persists. This doesn't seem to be the hard drive that I can try to run it from a Live CD (without use of HARD drive) and yet everything slows to a crawl.

    HELP: I don't know how to debug from here.
    I don't have extra pieces of hardware to make swaps.

    Any ideas more how to debug this?

    Thank you
    Grommit

    Hello

    > I am running Ubuntu 10.04, but I don't think that it's operating system or related software.
    It s interesting why you think that this may be software related issue

    I think that it is a typical software problem because the RAM and the HARD drive has been verified you have reported this in the message

    So what to say maybe some virus or malware likely to obstruct the CPU and the memory usage
    Or there is some process in the background that are not properly

    I recommend you to reinstall the Windows operating system or another distribution of Linux that runs NO Live CD, but which is installed on the HARD drive
    I m sure that s kind of the process that is disabled and crashes somewhere in the background

  • How do I output up to 8 high and low?

    Hello

    I'm still new to Labview, and I can't seem to find a way to do something fairly simple.

    I have a device that has 8 entries, and each entry is "lit" by providing a high signal (5V).  I would like to use Labview to provide that these high and low signals to these 8 output pins.  An additional intracacy is that each channel will have to be activated or deactivated by pressing a button of Labview.  What commands/functions labview I should use to provide this feature?  Are there related examples in Labview or online?  Thank you very much.

    I use a NI 9401 to provide these 8 output channels.  http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/208809

    John

    You can search for examples on how to produce digital signals.  Go to help - find examples and numeric type and get labeled examples "write dig Chan".  There is an example that will run on the 9401.  Then, you can adapt it for your use.

  • control the time lopp

    Hello

    I want to control my time loop but I am unable to control

    I want to integrate two entrances to stop the loop while

    When I press the stop button and when entry to data acquisition falls below 3 volts

    Please help me


  • "when I click on an article to read in the news of yahoo, why the Timer turns on and the message" mozilla firefox does not?

    When I disconnect from e-mail, go on yahoo news and choose an article to read, the sidebar will not go upward and downward to read the article and the timer comes on for awhile. The message "mozilla firefox does not." This happened for some time. Thank you

    Hello, please try if you can solve the problem by resetting (this will keep your bookmarks and passwords) for firefox: Firefox Refresh - reset the parameters and modules

  • Changed the time on pc and suddenly will not work Skype?

    Hi I just got this phone today and have already run into large sum of problems. I misclicked by set up of windows 8 and taken the wrong time zone, forget I did what I leave the laptop itself implemented, I didn't know it until I had already installed and was on Skype. I thought nothing of it, changed the clock to the correct time and now all of a sudden every time I send a message on Skype it just sends me upward into the conversation. I'm not all messages and I don't see any of the envoys of the mine. I uninstalled Skype 3 times and still can not solve it? I got Skype running on my desktop and thought maybe that was it but atlast, no. I am only signed on this laptop and can't use Skype. I even downloaded an older version it and still no luck.

    I run a malware scan as I tpye this, but I don't think it'll be very successful. Does anyone have an idea how to solve this problem?

    In fact, I just thought to it. So I got to do some time apparently traveling thanks to me by clicking on the wrong time, I was 3 hrs behind, always in August 3. When I changed the time zone, he just changed the time and NOT the date. So, I was in the good times but the wrong date. Skype has been send all my messages and everything everyone elses to August 3 instead of 4 August 03:00 03:00. I feel like a complete fool for overlooking it, but I just thought that it would change the date with time.

  • How to set the time between workstations and Server 2008 R2

    Hello world

    I have problem with my Server 2008 R2

    all the workstations on my company doesn't synchronize the time on the domain controller

    I tried many ways to set up automatic synchronization via command prompt (Net time) and its does not work

    Please help me configure the time between the DC and the workstations

    Thank you

    Windows Server forums:
    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer/

  • The computer starts you see all the individual command windows and they stack up and take the time to load and to hide.

    Why command windows appear indeed when the computer is started?

    Hello

    Check to see if the problem exists in Safe Mode, if the computer works as expected in mode without failure, then we can solve the problem in the clean boot state.
    a. refer to the article below for the procedure safe mode in Windows XP
    A description of the options to start in Windows XP Mode
    http://support.Microsoft.com/kb/315222

    b. it is a possibility that there is a startup program that is launched with a command line and it appears.
    You need to perform a clean boot to find the program that is causing and then disable or remove.
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us
    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Bad high and low value with the varchar2 data type

    Hello

    It is an application on e - biz on database 9205, with inventory module.

    In one of the mtl_txn_request_headers of the table, the data for the number of application type is varchar2 (30). When I checked the low_value & high_value in dab_tab_columns, I see that the low_value is 100001 (6 digits) and high_value is 99999 (5 digits).

    I used the utl_raw.cast_to_varchar2 (low_value) to convert the value.

    In our case, we save a large part of the value in incremental number and some of our query will be in the predicate of the range (between).

    How should I handle this kind of situation and which option do I?

    Appreciate any help. Thank you.

    Accepted this looks like a classic bad-data type problem, but as this picture seems be part of Oracle E-Business Suite the OP should probably talk first Oracle.

Maybe you are looking for

  • Flashing v2.2 to flame does not work: Gecko pushing the device failed.

    My flame won't take the production version 2.2: https://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g37_v2_2-flame-kk/ Before you start to blink, I installed v188 base image. I repeated the process several times, all with the wire an

  • Exchange of CPU on Satellite Pro P300-180

    Hi allcan anyone help? I have an old P300-180 and am looking to change the cpu I can go from a t2490 a p9700 someone's already done it

  • Problem with Radio App on my Journe touch

    Hello, once again...: D I have a problem with my app Radeo on my tablet, and I'm not able to fix it on my own...When choosing a radio station to listen to, I always find myself waiting for a few seconds for the station to load ("open..." next to the

  • Mouhid.sys pilot mouse without CD

    I need 'me, sys' file to my Acer Netbook.  The netbook came with Windows XP pre-installed, but this driver is missing.  'Me, sys' is required to install a mouse.  I can't do it from a CD because Windows came pre-installed, so no CD and my Netbook has

  • I'm officially STUPID!

    Okay there's probably no way around it, but anyone can think of a way to decomplie one. BAR file and then import the new source in FB 4.6 for future work? STUPIDLY, I formatted the disc wrong on my system and the loss of the source of an application