Edge counting buffer/arr​ay size problem (VC++)

Hello,
I accidentally posted this in the multifunction DAQ forum so forgive me for posting this again here.
I am attempting to do a buffered edge counting with PCI-6115 for the application I am trying to develop.
Ideally, I would initialize a buffer array, then use a sample clock to time and acquire counter values which would then be stored in a buffer. 
After a certain number of samples, I would then use the
DAQmxReadCounterU32 function to extract the said data and perform some
calculations.
However, windows gives me an error when I try to initalize the size of the buffer array to be larger than 255001, I need 264000+.
Essentially, only this part of the code seems to execute:
int         error=0;
TaskHandle  taskHandle=0;
TaskHandle  taskHandleCtr=0;
uInt32      data[260000];
After trying to initialize the uInt32 array my program crashes saying there was an error with my exe with a popup asking me if i want to send an error report to Microsoft.
Would
this be a problem of windows not allowing me to allocated more than
255000 32 bit samples for that array?  If so how do i put the array
onto the onboard memory?
Solved!
Go to Solution.

Sorry guys, it actually didn`t have anything to do with the DAQ board.
Apparently it was C++ that limits the size of the array I was calling, which was the traditional "int a[size]".
I used this instead to solve my problem:
    int* a = NULL;
    a = new int[10000000];
Problem solved.
Sorry for posting in the wrong forum, and thank you to everyone who's read this.
Howard

Similar Messages

  • DAQmx non-cumulative buffered edge counting (like the PMT TTL problem) with PCI6221 in C program environment

    I have a PCI-6221. I am programming in C/C++ and DAQmx. My application is much like the previous thread counting the number of asynchronous TTL pulses from a PMT in some user specified time interval. The time interval is typically around 1 msec and the signal rates are around 1-10 kHz. So I expect to count 0 to 10 pulses per timebin. In traditional DAQ this was called Non-cumulative buffered edge counting.
    To get a clock at about 1kHz, I first create an "analogue in" task that samples at 1kHz. The only thing I use this task for is to route its sample clock to the gate of the counter. This defines my time interval as 1 msec.
    I then create the counter task. I am using count edges. So I think counter0 gate = PFI9 and source = PFI8.
    DAQmxCreateCICountEdgesChan(*taskHandle,chan,"",edge,initialCount,countDirection);
    DAQmxCfgSampClkTiming(*taskHandle,clockSource,rate,DAQmx_Val_Rising,DAQmx_Val_ContSamps,samplesPerChan);
    where clockSource="/Dev1/ai/SampleClock"
    I apply my signal to PFI8.
    After starting the task, I read an array of values with
    DAQmxReadCounterU32(taskHandle,samplesToRead,10.0,data,samplesToRead,read,NULL);
    I expect the array data to have values ranging from 0-10 for PMT input with an average rate of about 10 kHz. The trouble is that the array data does not seem to make sense. I get constantly increasing values. For very low input frequency, it just increments by one per array member.
    More troublesome, when I hold PFI8 at ground, so that I expect zero pulses to be counted at the source for each edge at the gate that occur 1 per msec, I get a timeout error. I really must be able to count zero events per bin.
    Am I doing something obviously wrong?

    Hello,
    The behavior of non-cumulative event counting is equivalent to period measurement. Additionally, the timeouts when no edges occur on your event counting terminal are the result of duplicate count prevention. In DAQ 7.4, the default behavior of duplicate count behavior should take care of this for you, but if you cannot upgrade to DAQ 7.4, I'd do a search of the discussion forums for "duplicate count prevention". There are a number of previous posts about this attribute, including this one.
    If you aren't using the second counter on your device, you should be able to use the Period Measurement 2 Counter High Frequency measurement method to get your desired values. The "Measurement Time" attribute in this case would be the "sample clock" (1 kHz in your example). Then just raed the data raw to get counts rather than scaled.
    If you'd like to do it using the AI timing engine. Configure a 1 counter period measurement task, use "clockSource" as your input terminal and use your PMT TTL pulses as the "Counter Timebase Source". Then read the data raw, since the scaling will not be appropriate for your needs.
    I hope this helps!
    gus....

  • Upd vhdx file size problem

    Problem:
    User profile disk is full! 'Disk management' reports 7MB free.
    Config:
    we use user profile disks (vhdx file) on Windows 2012
    we limit user profile disk size to 1GB (in the Collection settings)
    when i SUM the directory sizes in my user profile disk (using treesize proffesional software, or manually), I see, my profile folders occupy only ~450MB
    I expect to have ~550MB free, but system says, I have 7MB free only
    windows explorer says, my vhdx file has 660MB ?!!?
    my vhdx files are thin provisioned
    I tried to compact vhdx file
    as described here. I get 'DiskPart successfully compacted the virtual disk file.',
    but the problem is still not fixed
    Any idea, what can be wrong?

    This is what I get:
    C:\Users\Administrator.GDM>dir e: /a
     Volume in drive E is User Disk
     Volume Serial Number is B2F8-92B9
     Directory of E:\
    08/08/2014  01:26 PM    <DIR>          $RECYCLE.BIN
    05/16/2014  12:04 PM    <DIR>          AppData
    05/16/2014  12:04 PM    <DIR>          Contacts
    08/07/2014  12:05 PM    <DIR>          Desktop
    05/16/2014  12:04 PM    <DIR>          Documents
    08/12/2014  09:58 AM    <DIR>          Downloads
    05/16/2014  12:04 PM    <DIR>          Favorites
    05/16/2014  12:04 PM    <DIR>          Links
    05/16/2014  12:04 PM    <DIR>          Music
    08/13/2014  04:35 PM           524,288 NTUSER.DAT
    05/16/2014  12:04 PM           217,088 ntuser.dat.LOG1
    05/16/2014  12:04 PM                 0 ntuser.dat.LOG2
    05/16/2014  12:04 PM            65,536 NTUSER.DAT{4a5664db-d688-11e1-b53c-842b2b4244af}.TM.blf
    05/16/2014  12:04 PM           524,288 NTUSER.DAT{4a5664db-d688-11e1-b53c-842b2b4244af}.TMContainer00000000000000000001.regtrans-ms
    05/16/2014  12:04 PM           524,288 NTUSER.DAT{4a5664db-d688-11e1-b53c-842b2b4244af}.TMContainer00000000000000000002.regtrans-ms
    05/16/2014  12:04 PM                20 ntuser.ini
    08/13/2014  04:33 PM             4,194 ntuser.pol
    05/16/2014  12:04 PM    <DIR>          Pictures
    05/16/2014  12:04 PM    <DIR>          Saved Games
    05/16/2014  12:04 PM    <DIR>          Searches
    03/18/2014  12:22 PM    <DIR>          System Volume Information
    05/16/2014  12:04 PM                90 Uvhd-Binding
    05/16/2014  12:04 PM    <DIR>          Videos
    05/16/2014  12:04 PM    <DIR>          WINDOWS
                   9 File(s)      1,859,792 bytes
                  15 Dir(s)     376,786,944 bytes free
    C:\Users\Administrator.GDM>
    Here it says, I have only ~376MB free. This I can also confirm when running a following command:
    PS E:\> Get-Volume -DriveLetter E
    DriveLetter       FileSystemLabel  FileSystem       DriveType        HealthStatus        SizeRemaining             Size
    E                 User Disk        NTFS             Fixed            Healthy                 359.33
    MB       1022.93 MB
    When I try to run following 'Optimize-Volume -DriveLetter E -ReTrim -Verbose', I get this:
    PS E:\> Optimize-Volume -DriveLetter E -ReTrim -Verbose
    VERBOSE: Invoking retrim on User Disk (E:)...
    VERBOSE: Performing pass 1:
    VERBOSE: Retrim:  0% complete...
    VERBOSE: Retrim:  100% complete.
    VERBOSE:
    Post Defragmentation Report:
    VERBOSE:
     Volume Information:
    VERBOSE:   Volume size                 = 1022.93 MB
    VERBOSE:   Cluster size                = 4 KB
    VERBOSE:   Used space                  = 153.38 MB
    VERBOSE:   Free space                  = 869.55 MB
    VERBOSE:
     Allocation Units:
    VERBOSE:   Slab count                  = 31
    VERBOSE:   Slab size                   = 32 MB
    VERBOSE:   Slab alignment              = 31.93 MB
    VERBOSE:   In-use slabs                = 5
    VERBOSE:
     Retrim:
    VERBOSE:   Backed allocations          = 6
    VERBOSE:   Allocations trimmed         = 1
    VERBOSE:   Total space trimmed         = 30.99 MB
    As you can see, one output says, I have 357MB free, the other says, I have 800MB free .. 
    I am checking more ..

  • Ctr0 Edge Counting Issue

    I have a PXI-6602 and am writing a C++ class to control the card. I am experiencing an issue when using ctr0 for edge counting. My setup includes one PXI-6602 and a BNC-2121. I'm using the continuous pulse signal as the source signal to the counters. My software execute the following functions in order.
    // Clear any old tasks
    DAQmxClearTask( TaskHandle );
    // Create new task
    DAQmxCreateTask( "ctr0Task",
                              TaskHandle );
    // Setup channel
    DAQmxCreateCICountEdgeChan( TaskHandle,
                                                "\CTR1\ctr0"
                                                DAQmx_Val_Rising,
                                                0,
                                                DAQmx_Val_CountUp );
    // Start Task
    DAQmxStartTask( TaskHandle );
    // Read counter value
    DAQmxReadCounterU32( TaskHandle,
                                     DAQmx_Val_Auto,
                                     10,
                                     buffer,
                                     sampsRead,
                                     NULL );
    I execute the above code and let the task run for approximately one second. I read one sample of zero (0) counts on ctr0. When I execute the same code for the other counters, I read around 464 counts, which I believe to be valid.
    Why am I reading zero counts on ctr0?
    I have tried the following:
    1) Using the Test Panel, I setup ctr0 for edge counting and used PFI39 (ctr0Source) as the source signal and everything worked as expected. So I know the hardware is working. I also selected the 20MHzTimebase signal as the source and everything worked as expected.
    2) I manually setup a task within NI-MAX and everything worked as expected.
    3) Within my software, I routed the 20MHzTimebase signal to ctr0 source and received counts although the value was incorrect. No matter how long I let the task run, I would only read around 260 counts. When routing the 20MHzTimebase to one of the other counter's source, everything worked as expected.
    4) I also routed PFI39 to the source of the other counters and everything worked as expected.
    Is ctr0 special or reserved? Does it have a unique timing characteristic that I'm unaware of?
    Thanks in advance for any help.
    -Mroche

    Hey
    There should not be any issue. I have that board and used that in lv, but try the attached code and see if this works.
    lab
    Attachments:
    Count Digital Events.zip ‏56 KB

  • Error -200429 DAQmx read (counter u32 1ch 1samp).vi -append- Edge count in for loop

    I am receiving error -200429 DAQmx read (counter u32 1ch 1 samp).vi <append>. This is occuring on the second loop of a for loop.
    I have a sequence inside the for loop that is using four DAQmx assistant vi's for edge count at various times in the sequence. All four of these count fine the first time through but at the beginning of the second loop the first edge count receives this error and does not count.
    Any ideas?

    The code you have supplied is similar to the converted subvi but this code will give an empty task error on the DAQmx Create Channel vi.
    Notice on the Daqmx create task vi that there is nothing wired to the "Task to copy" or the "Global virtual channels" connectors - I believe this is why the task is empty when sent to the Daqmx create channel vi.
    The code we are currently using is a modification of a previous code used before a recent upgrade. It may be better in your/NI eyes to re-write this into a State machine but time constraints and resources do not allow that at this time - All other parts of the current program work except for the counter on the second iteration. Would rather not reinvent the wheel at this point. 
    If the task is being cleared was the issue then the other three should also not execute. The issue appears to be the "First Call"
    I have attached a zip file of the complete program as it is now written to give you a better idea of the whole picture.
    Attachments:
    Test Machine current code.zip ‏657 KB

  • HP 8750 Paper-Size Problem where it keeps telling me the paper is too big (it's set up for 11x17)

    I've got an HP 8750 printer running with a Windows 7 Ultimate machine, and I've got a paper-size problem where it keeps telling me the paper is too big. It's set up for 11 x 17. 
    The actual wording on the printer is: 
    Paper installed is larger than needed. Press cancel to replace with correct size, if you wish to save paper, or press check mark to continue. 
    When you press the check mark it feeds the paper, but for a multi page-document I have to press the check mark for each page to feed.
    How do I get it to print 11 x 17 paper without having to press the check mark for each page?

    ''guigs2 [[#answer-672422|said]]''
    <blockquote>
    NoScript stops cookies, please disable this addon/extension as well as make sure that the language en-us is installed.
    # 1) Open up the Firefox Preferences tab. You can do this by typing about:preferences in the URL bar.
    # 2) Click "Content"
    # 3) Next to "Languages", click "Choose"
    # 4) Select "English/United States [en-us]", click "Add"
    # 5) re-open "about:accounts"
    # 6) Click "Get Started"
    </blockquote>
    Thank you for replying. Unfortunately, I already did all of these things. As you can see from the below screenshot, the language is already set. Also, this screenshot was taken in Safe Mode, so NoScript is not enabled. About:accounts still says I need to enable cookies for some reason. So, this solution didn't work....

  • Invalid values for negative counts using DAQmxReadCounterF64 for edge counting

    I am seeing this issue with using DAQmxReadCounterF64 with
    simple edge counting. If the counter reads a negative count value, it
    returns a number that looks like an unsigned 32-bit number rolled over
    (~4294967295).
    I am using DAQmx v8.9.5. PXI-6602 with Windows XP, programming in C++.
    Is this a bug in the driver?

    Hi Mroche,
    You're correct that the number you are seeing is the rollover of an unsigned 32-bit integer.  Newer DAQ products use a 32-bit count register (e.g. M Series, TIO, X Series).  In this register, the value -1 is represented the same as 232-1. 
    I wouldn't call this a bug exactly.  The value you are reading is what is in the count register, and I don't think it makes sense to necessarily assume that 4294967295 should be scaled to -1 for all cases.  Making this assumption would result in undesired behavior for anybody trying to count to 231 or higher (at which point the count would roll over to -231).
    Having said that... position measurements are treated differently starting in DAQmx 9.0 due to the behavior reported on another thread which was in fact deemed a bug (which I notice you have seen already).  The driver casts the raw count to I32 before scaling it to a position.
    Now, I'm not so sure it makes sense to treat the two measurement types differently, but I think the reasoning behind the decision was that negative values make sense when talking about position, but for counting edges not quite as much (what exactly is a negative number of edges?).  In the count edges case, I think it makes the most sense for DAQmx to allow the user to handle rollovers himself.  At the end of the day, all the driver can do is change where the rollover occurs (either at 0 = 232 or 231 = -231).
    In your case, if you want to read (-) values on your count edges task, the easiest way to accomplish this is to read the data back as U32 (DAQmxReadCounterU32) then type cast it to I32.  This will give the result that I think you are looking for.
    If you have any suggestions to help improve usability, please feel free to post to the DAQ Idea Exchange.  Some preliminary ideas to make this experience a little more intuitive might include a property node to set how the data is cast, or perhaps have the driver cast the data to I32 if the Count Direction is set to anything other than Count Up.  Although, the 2nd idea has the potential to break existing applications so it might not be as viable of an option.
    Best Regards,
    John Passiak

  • Reading 21576 bytes of data at offset 3 in a buffer of total size 114

    Logs claim it's a 'buffer overflow' - [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    Specifics: 
    attempting to connect to virtual box running on localhost:55985
    OSX: 10.9.5
    RDP: 8.0.12
    VirtualBox: 4.3.20
    [2015-Jan-05 22:32:41] RDP (0): --- BEGIN INTERFACE LIST ---
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=30 (AF_INET6) addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=2 (AF_INET) addr=127.0.0.1 netmask=255.0.0.0
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=30 (AF_INET6) addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2015-Jan-05 22:32:41] RDP (0): gif0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): stf0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en0 af=30 (AF_INET6) addr=fe80::2acf:e9ff:fe1a:cc0d%en0 netmask=ffff:ffff:ffff:ffff::
    [2015-Jan-05 22:32:41] RDP (0): en0 af=2 (AF_INET) addr=192.168.10.108 netmask=255.255.255.0
    [2015-Jan-05 22:32:41] RDP (0): en4 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en5 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): bridge0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): p2p0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet1 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet2 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet3 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet4 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): --- END INTERFACE LIST ---
    [2015-Jan-05 22:32:41] RDP (0): correlation id: 10b4ea14-964f-83df-bf55-4ff43fb10000
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '127.0.0.1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to 'fe80:1::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    User Message : Reading 12112 bytes of data at offset 3 in a buffer of total size 82
    [2015-Jan-05 22:32:41] RDP (0): correlation id: 10b4ea14-964f-83df-bf55-4ff43fb10000
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '127.0.0.1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to 'fe80:1::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    User Message : Reading 21576 bytes of data at offset 3 in a buffer of total size 114
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2015-Jan-05 22:32:41] RDP (0): ------ END ACTIVE CONNECTION ------
    ps: the editor for posting on this forum is absolutely the most terrible I had ever seen.

    Hi,
    Please let us know which OS you are trying to connect. Because if you are running Windows 8 and not Windows 8 Pro then you won't be able to connect to your PC from any device. Windows 8 can't host an RDP session.  
    Remote Desktop Client on Mac: FAQ
    http://technet.microsoft.com/en-in/library/dn473006.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Is there a solution to Rapidweaver Stacks Cache size problems?

    Is there a solution to Rapidweaver Stacks Cache size problems?
    My website http://www.optiekvanderlinden.be , has about 100 pages and is about 250MB in size. Every time I open RapidWeaver with the Stacks-plugin, the user/library/cache/com.yourhead.YHStacksKit folder grows to several Gigabytes in size. If I don't  manually empty the com.yourhead.YHStacksKit Cache daily, AND empty the Trash before i turn off my mac, my Mac still has problems and stalls at startup the next day. Sometimes up to 5 minutes and more before he really boots. If i have a been working on such a large site for a few weeks without deleting that cache, than my iMac doesn't start up anymore, and the only thing left to do is completely reinstall the iOs operating system. This problem doesn't happen the days i use all my other programs but don't use Rapidweaver.
    Does anyone know a solution and / or what is the cause of this?

    once more,
    i just launched my project in Rapidweaver, and WITHOUT making any changes to my pages, the cache/com.yourhead.YHStacksKit folder filled itself with 132 folders (total 84Mb), most of them containing images of specific pages etc. The largest folder in the cache is the one with the images of a page containing a catalogue of my company, this folder is 7Mb. It seems by just starting up a project, immediately different folders are created containing most of the images in my project, and some folders with a log.txt file. Still i don't see the reason why it is filling op a huge Cache even without making changes to the project. I have 2 different sites, so 2 different projects, and i get this with both of them.

  • Edge counting inaccurate

    I'm getting inaccurate results from my USB-6210 edge counting check from MAX. I have a TTL source that generates four pulses that is connect to PFI0 through a simple RC filter (390 ohm and 0.02uF). I start the edge counting from the test panel in MAX choosing PFI0 as the edge source. When I trigger my four pulses I receive a much larger count (sometime up to 20 counts) from the MAX test panel. Only when I remove the RC filter do I receive an accurate count (4 pulses exactly). I need to use the RC to filter out some 45KHz noise generated by another piece of equipment in the lab. I know I can set up the USB-6210 to use a time-based filter but I thought a simple RC filter would be a quick solution.
    I have tried this with a USB-6211 with the same results. Only the USB-6009 preformed as expected with accurate counts. The USB-6009 edge count is not affected by the RC filter. 
    Any thoughts?
    Thanks,

    goldenrad wrote:
    ... I'm assuming that the input should have a hysteresis mechanism ...
    It doesn't .  You should use the digital filter.
    goldenrad wrote:
    It is interesting that the filter works perfectly on the USB-6009.
    It's probably a bandwidth issue, there's no hysteresis on the 6009 inputs either.  The 6009 event counter can only count up to a 5 MHz signal according to its specificaitons.  The 6210 however supports an "external base clock frequency" of up to 20 MHz.  
    Best Regards,
    John Passiak

  • Edge counting with digitial pause trigger

    Hi
    I should write a program for edge counting with digital pause trigger in visual basic.  I have found an example of using pause trigger in edge counting but it is written in C#.
    Steps in the program followed is:
    1) creating task
    2) creating count edge channel objecy
    3) configuring thr trigger ( where i have been strucked)
    code in c # is:
    taskname.triggers.pausetrigger.digitalleveltrigger ( source, level)
    When i tried to look for trigger function and to configure it in Visual Basic, I have not found any trigger function to set/configure in the function library
    Thanks

    Hi there,
    Here is the code in text format.  That's pretty much all you need.  I took the example code called CntDigEvents.vbp and added the following code before the start task function call:
        DAQmxErrChk DAQmx.DAQmxSetPauseTrigType(taskHandle, DAQmx_Val_TriggerType6_DigLvl)
        DAQmxErrChk DAQmx.DAQmxSetDigLvlPauseTrigSrc(taskHandle, "PFI0")
        DAQmxErrChk DAQmx.DAQmxSetDigLvlPauseTrigWhen(taskHandle, DAQmx_Val_Level1_High)
    As for the C# code I am not familiar with C# so I don't think I can be a great help on that one.
    myTask.Triggers.PauseTrigger.ConfigureDigitalLevelTrigger(triggerSourceTextBox.Text, gateLevel)  This function is the main call for the pause trigger and all it is doing is setting the properties.  triggersource should be along the lines of "PFI0" or "Ctr0" and gate level defines whether the gate level is "high" or "low)
    How is the VB code going?
    AdamB
    Applications Engineering Team Leader | National Instruments | UK & Ireland
    Attachments:
    VBcode.txt ‏4 KB

  • Buffered Edge Counting 20 MHz with duplicate count prevention

    Dear all,
    I went through the specs of several boards (M- series, S- and E- series, 6602 etc...). It seems that these boards can count edges with duplicate count prevention on at a maximum rate <= 20 MHz (i.e., 1/4 of 80 MHz) - but maybe I have misunderstood the docs.
    Is there a NI board capable of buffered edge counting with a general purpose counter for random events going at rates from 0 Hz to > 20 MHz? Do I need to look for a reconfigurable board?
    Thanks in advance.

    Dear Elizabeth,
    Thanks for the answer.
    In my application, events arrive asynchronously (actually, randomly). During the duration of a gate (namely, 1 microsecond), one expects anything from 0 to many (i.e., possibly more than 20, up to 80) events. This requires duplicate count prevention. 
    I may have misunderstood the specs for M series boards, but the document:
    Using Duplicate Count Prevention for Counter Tasks in NI-DAQmx
    from the NI web site, for instance, states that:
    "All the other timebase edges that occur while the external source input is high are ignored. If no source edges are detected between two gate edges, as shown in Figure 3, duplicate count prevention ensures that pulse measurements return zero because the external source must be logic high to allow the internal timebase to increment the count register. This reduces your maximum source frequency to quarter of the original maximum (80MHz) timebase for NI-STC II and NI-TIO boards. Therefore duplicate count prevention should only be used if the frequency of the Source signal is 20 MHz or less.
    Duplicate count prevention should only be use in the following situations:
    Counter measurements
    The counter Source is using an external signal (such as PFI x)
    The frequency of the external source is 20 MHz or less
    What's your take on that?
    Thanks for your time.

  • My mobile form of my homepage have some size problems!

    Hello! My mobile form of my homepage have some size problems. All pages gets right size exept one. It only cover halv of the page. What is wrong?

    Hello,
    Can you please share the URl of the page with us so that we can get a better idea of the issue.
    Usually this happens when any object is placed outside the browser are in Phone layout.
    Regards
    Vivek

  • Size problem with Email sent from SAP

    Hi everyone,
    All our layouts today were developed with sap script
    We started to send them by mail, using the standard way.
    in the process they are converted to PDF format from OTF, because of this activity the size of the mail that I am getting is 1 Mega where as the source is only 300K (approximately).
    We are already flagged the option of compressing.
    As we see now we don't have any option to make the email to be smaller.
    Is someone already encountered this problem? What option do I have? (Except of developing the layout again in Adobe)
    Thanks allot
    Udi
    SD consultant

    First thanks
    Sayali Paradkar , we used in the past this function module, but it was even worse.
    We started to use the standard process of sending mail.
    As we understand the program of converting OTF format to PDF cause the size problem.
    And its define to send PDF out of the SAP, also we are using SAP definitions to compress all files :nSE38 -> RSTXPDF3 -> option FLATE_COMPR_OFF = OFF
    But still the mails are very big,
    Thanks again
    Udi Marom

  • Timestamp edge count

    Hi.  I am very, very new to Labview.  In fact, I am working on my first program so my question is probably really simple, and I bet I overlooked the question when reviewing previous posts.  Here it goes.  I am using LabVIEW 8.2 and I have some tipping buckets which collect data through an analog edge count.  I would like to timestamp and record the data only as it occurs.  I have figured out how to continuosly save the data without a timestamp, but this is problematic because this will create an extremely large file due to the time requirments.  I will post a screen shot of my code.  Thanks!

    Hi,
    I'd like you to also expand on how you're collecting your data. What do you mean by "analog edge count"? I don't know what kind of signal you're measuring. Is it an analog signal, and if so, what are these 'edges'? Most of the time, counting edges means counting digital edges, so 0 to 5V rising edges or 5 to 0V falling edges.
    At any rate, I'd like to explain a little bit about how a DAQmx task works, and I'm assuming you're continuously measuring analog signals with an analog input task. When you start an acquisition, the board will use the sample rate you specify to grab samples from the analog inputs. If you specify a continuous acquisition, it will continue to grab samples until you end the operation. Regardless of whether or not the signal value changes, the board will grab samples at the same rate. If you only care about when the signal's value changes, then you'll need to read your data and only record it to file when it does change. In that case, Ravens Fan is correct, and you'll need to do some simple post-processing to save the data of interest to you.
    Joe Friedchicken
    NI VirtualBench Application Software
    Get with your fellow hardware users :: [ NI's VirtualBench User Group ]
    Get with your fellow OS users :: [ NI's Linux User Group ] [ NI's OS X User Group ]
    Get with your fellow developers :: [ NI's DAQmx Base User Group ] [ NI's DDK User Group ]
    Senior Software Engineer :: Multifunction Instruments Applications Group
    Software Engineer :: Measurements RLP Group (until Mar 2014)
    Applications Engineer :: High Speed Product Group (until Sep 2008)

Maybe you are looking for

  • Error in DB13 with xserver

    Hi everybody, I have a problem with planning jobs in the DB13 in our SAP ERP 2005 system for our knowledge provider on MaxDB running on another server. The jobs are ending with error messages like: "Error! connection failed to node xy for database sd

  • Configuration Error 1 Windows 8.1

    Hi everyone, I used to use Premiere CS6 on my computer all the time before I recently reinstalled it. However I have not been able to recently, as everytime I do, I'm hit with "Configuration Error" and then a message telling me to reinstall. That doe

  • Instaling

    good evening , i'm having trouble installing my dreamweaver CS6  CD on my Mac book pro , there isn't any option for macintosh .. would like some help asap .

  • AS5300 Bad Modems Problem

    hai all i have problem with my AS5300 that some of modes get bad after some time of about 12 hours and then i have to restart the AS5300. I have upgraded the software for mica modems i am using 2.9.5.0. i have searched a lot to solve this problem. bu

  • End of Life of 1002 ASR router

    Can anybody tell me that what is the end of life of 1002 ASR router? Which one is the latest IOS XE Software for 1002 ASR router? Regards Mukesh Kumar Network Engineer Spooster IT Services