ABOUT THE TWO COUNTERS OF THE AT-MIO-16-​E

This is my question.I've an AT-MIO-16-E and I need the two counters to work simultaneously to acqquire two frequencies countinously.I can't find a way to let them work countinously:they always stop after an acquisition.I've tried to use a while loop in the example "Measure period" but while they are resetted and rearmed I loose some values.Is there a way to solve this problem?Can the counters of an AT-MIO-16-E count countinously?
Please help me.

What kind of continuous ctr acquisition are you trying to do:
double-buffered interrupt driven so that you do not lose a single count
(use of circualr buffer)?
Well, It seems that you can only use a single gpctr with an AT MIO 16E for
this kind of continuous acquisition, what I have been doing for 11/2 year
as soon as nidaq 6.1 and upward allowed it. At the time, I remember
reading that AT MIO E and MIO E series in general could sustain this
continuous dbl-buffered circular buffer for only one ctr. Otherwise you
ought to use a dedicated counter card.
Also be careful with HF rebound from any home-made trigger unit. Could
tell you more about it. The NI drivers and associated hardware are
merciless in case of such rebounds.
luiart wrote:
> This is my question
.I've an AT-MIO-16-E and I need the two counters to
> work simultaneously to acqquire two frequencies countinously.I can't
> find a way to let them work countinously:they always stop after an
> acquisition.I've tried to use a while loop in the example "Measure
> period" but while they are resetted and rearmed I loose some
> values.Is there a way to solve this problem?Can the counters of an
> AT-MIO-16-E count countinously?
> Please help me.
Regards
Gerard D'Ans ([email protected])
Laborelec Rodestraat,125 B-1630 Linkebeek
tel 32 2 382 0568
fax 32 2 282 0241
ULB SMA ([email protected])
Blvd F D Roosevelt CP165 B-1050 Brussels
Tel 32 2 650 2515
http://www.ulb.ac.be/polytech/laborulb/index.htm

Similar Messages

  • How to read two counters and writing AO at the same time with 6024?

    I use Labview to read two quadrature encoder outputs and I use the two
    counters
    of 6024E for this. I can read the encoders continuously. I also want to
    send an
    analog output with a period of 30 miliseconds
    while the reading of encoders is continuouing at the background. How can I
    do
    this. I searched the NI discussion forums and found that my device have
    only 1 DMA channel. Is it possible to overcome the problem using
    interrupt??(set device information.vi) Is there any example code about this
    problem?
    Thanks a lot.."

    Hi Ress,
    I think you might have asked this question twice by mistake. Following is the link to the one that was answered:
    http://exchange.ni.com/servlet/Redirect?id=12017430 .
    Thanks!
    Serges Lemo
    Application Engineer
    National Instruments

  • Simultaneously run two counters with the internal 80MHz timing

    Hi, I have a programming problem about the NI PCI-6602 counter card. I want to use the internal timing signal (80MHz) as the source signal and feed two external signals to the two counters. The operation mode is the Buffered Period Measurement.
    I can succeed in one counter programming by using these old DAQ functions calls in sequences:
        iStatus = GPCTR_Control(iDevice, ulGpctrNum, ND_RESET);
        iStatus = GPCTR_Set_Application(iDevice, ulGpctrNum, ND_BUFFERED_PERIOD_MSR);
        iStatus = GPCTR_Change_Parameter(iDevice, ulGpctrNum, ND_SOURCE, ND_INTERNAL_MAX_TIMEBASE);
        iStatus = GPCTR_Change_Parameter(iDevice, ulGpctrNum, ND_GATE, ND_PFI_38);
        iStatus = GPCTR_Change_Parameter(iDevice, ulGpctrNum, ND_INITIAL_COUNT, ulInitCount);
        iStatus = GPCTR_Change_Parameter(iDevice, ulGpctrNum, ND_BUFFER_MODE, ND_CONTINUOUS);    
        iStatus = GPCTR_Config_Buffer(iDevice, ulGpctrNum, 0, ulCount, pulBuffer); 
        iStatus = GPCTR_Control(iDevice, ulGpctrNum, ND_PROGRAM);
        while(RunStatus)
           iStatus = GPCTR_Read_Buffer (iDevice, ulGpctrNum, readMode, readOffSet, NumPtToRead, timeOut, &NumPtRead, buffer);
           m_Chart1.DoPlot(); // Plot the data
      iStatus = GPCTR_Control(iDevice, ulGpctrNum, ND_RESET);
    But when using two counters, I tried to open two individual counter tasks by just doubling the codes above (each counter has independent DMA buffer). The program hanged forever. After debugging, the codes stop after it comes to read the 2nd DMA buffer (the 2nd line below).
      iStatus = GPCTR_Read_Buffer (iDevice, ulGpctrNum0, readMode, readOffSet, NumPtToRead, timeOut, &NumPtRead0, buffer0);
      iStatus = GPCTR_Read_Buffer (iDevice, ulGpctrNum1, readMode, readOffSet, NumPtToRead, timeOut, &NumPtRead1, buffer1);
    I also tried to check the labview codes that I have for the implementation of 2 counter measurement. There are two sets of function calls for each counter, "Counter Group Configure" -->"Source Slection" --> "Gate Selection" --> "Buffer Configure", in the same sequence structure, and two "Buffer Read" calls in a later, but also the same, sequence structure. My C programming is done just by following the labview codes above. But the labview program doesn't crash like the C program. Besides, one more question that I found is that I cannot find the fundtion "Counter_Group_ConfigInterface" inside the C function library. I tried to use the function "CTR_Simul_Op" but failed.
    So, my problem is that what's the problem about my C codes and how can I do the two counter measurement by the same internal timing base. Sorry to put all the problem in such a mess. If you need more information about my codes or my experimental requirement, please let me know. Thank you for your help!
    Sincerely,
    Jung-Cheng

    Hi Pavani,
    Welcome to the forums!  As a new LabVIEW user there are many helpful resources out there to get you started.  I would like to point you to the two links in my signature.  The first is a six hour LabVIEW course and the second helps you learn DAQmx.  Also take advantage of the shipping examples.  When you open LabVIEW select Find Examples to open the Example Finder.  Assuming you are using DAQmx, you can go to Hardware Input and Output>>DAQmx>>Counter Measurements and find many useful example programs that either do what you want or can be modified to perform the task you desire.
    To answer you question, two counters in the same loop do not affect each other.  The counters will gather data separately.  By putting them in the same loop, you just perform the reads in software at the same time.
    Regards,
    Ima
    Applications Engineer
    National Instruments
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx

  • I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    this sub forum is about running windows on macs maybe you should try
    https://discussions.apple.com/community/notebooks/macbook

  • Two questions about the new iWeb

    Hi
    I've got two questions about the new iWeb.
    1. Is it possible to blog online now? Meaning adding a new blog entry without having to be on your own Mac? This is a feature I've been waiting for since iWeb first was released.
    2. Is it possible to choose the format of images? Earlier editions had the option to "optimize" images but that meant it changed it into .png meaning the site got a lot heavier than if .jpg was used. And since I have relatives who still only have an isdn connection I need to be able to have the website as light as possible.
    thanks

    Ah well... thanks for the quick answer
    Message was edited by: Guðlogi

  • Question about setup_MITE in the PCI-MIO-16E-1

    I have a quick question about setup_MITE in the PCI-MIO-16E-1. In one of the manuals, it states that if you're using Dell Optiplex GX series for our hardware configuration, is it true we need to re-write the MITE functions to correlate with the hardware? Please if you can clarify what this means, I would really appreciate it. Thank you in advance.

    National Instruments is starting a new newsgroup to provide a forum for customers to discuss register level programming issues and ask questions. This newsgroup is not a direct support channel for register level programming, but may be monitored by National Instruments engineers. Please post you question with additional detail in:
    natinst.public.daq.driver-development.general
    Christian
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • Can anyone tell me how i get to speak to someone in customer service? they are retiring Forms Cental and i really need to speak to someone about the renewl of my subscription. THe live chat has been unavailable for two weeks and there is no other option t

    Can anyone tell me how i get to speak to someone in customer service? they are retiring Forms Cental and i really need to speak to someone about the renewl of my subscription. THe live chat has been unavailable for two weeks and there is no other option to get in touch with these people. Any ideas anyone?

    Hi SwarovskiUK,
    I'm sorry to hear that you've been having trouble contacting Customer Care. Live Chat is certainly available--are you not seeing the chat option on the Contact Customer Care page? Or are just not able to get through?
    In any case, I should be able to help you myself. What can I do for you?
    Best,
    Sara

  • This is a two part question about the creative 16gb Zen?

    8This is a two part question about the creative 6gb Zen? First of all, my battery life dropped very suddenly. One charge I was getting the full 30 hour battery life and the next it dropped to under ten. I tried using their tips on how to extend the battery life and I am still getting less than 0 hours of battery life. Why would it dropped more than half the amount between charges? I tried recharging it after it ran out and still the same thing. Any help?
    Second, (I am adding this question because it might relate to the first in some way) my mp3 player has been behaving strangely lately. For example, some artists sometimes have letters removed or all but the first end up being removed. But, if you reset the player, the artists go back to the full name. Also, my player has been taking a little longer than usual to turn on. It takes about 30 seconds to turn on instead of the 5-0 that I'm used to. Does anyone know why this might be happening?
    My Zen is only 4 months old, and I would be very upset it it's breaking already. Please, if you have any suggestions on how I can fix what's happening, post them. (Even if they?probably won't work, they're worth a try.)

    < This is an unusual one; never heard of it before. All I can suggest is cleaning up and perhaps reflashing the firmware. If it still is doing this, then get the thing exchanged pronto.
    My guess is that the problems are indeed closely related.

  • Adjust Counter Delay on the fly using two Counters

    Hi,
    I'm using the technique described here by JohnP to implement an on the fly delayed output of a hardware counter relative to it's trigger.
    http://forums.ni.com/t5/Multifunction-DAQ/Synching-AO-and-Counter-Output-arming-and-triggering-seque...
    My system generates a hardware buffered regenerative analog output.  A continuous synch pulse is generated using Cntr0 on the same PCI-6221 and is triggered off of the AO.StartTrigger in order to synchronize the Cntr0 Pulse with each generation of the AO wavefrom.  Then Cntr1 is configured in retriggerable single sample high/low time mode and triggered off of the Cntr0.InternalOuput.  By changing the low time of Cntr1 I can effectively implement an adjustable on the fly delay on the ouput of Cntr1 relative to Cntr0 and hence relative to the AO waveform.
    The technique works great for rational values of drive period, (i.e.  1.258 s), but when an irrational waveform period is commanded such as (0.59405940594059405940594059405941 s) the Cntr1 delayed pulse drifts relative to Cntr0.  Meaning if you start with a 0 second delay between the two counters, the output pulses are initially aligned but then Cntr1's output will rapidly drift such that the two counter outputs are no longer synchronized.
    Clearly there is a rounding error occuring but I can't seem to correct it.  I changed the Cntr1 high/low mode from time in seconds to clock ticks thinking I'd have better resolution but still see the same drift with irrational drive periods.  I also suspect that by calling the Cntr1 property Cntr.RdyForNewVal in a loop the hardware determinism of my system is compromised.
    Our current solution is to simply coherce the user commanded AO drive period to rational values.
    I'm mainly wondering if this problem can be corrected or if it's just a limitation of the method using two counters to create an on the fly counter output delay.
    Thanks,
    Steve

    John,
    I'm measuring the drift of the output signals (AO and Cntr1) on a daq board scanning at 5000 scans/s.
    The information you provided is helpful, I wasn't aware of the divide-down on the internal timebases.  Yes, I am specifying the frequency directly to Cntr0 so this may be coerced differently than the AO. 
    Where does one find these specifics on the board and various clocks?
    I've attached some sample code that may be of help to future users of this technique.  The sample code outputs a continuous regenerative buffered Analog Output waveform (board hardware timed).  Cntr1 is then configured in Frequency mode and triggers off of the AO.StartTrigger in order to synch the two signals.  Then Cntr1 is configured in High/Low mode and triggered off of the Cntr0.InternalOutput.  By changing the Cntr1 low time, I'm able to get an on the fly delayed output of Cntr1 relative to Cntr0 and hence the AO.
    If you have a daq board and you wire the AO and Cntr1 output signals into two analog input signals, you can see the drift when using irrational frequencies.  The sample code I provided only performs the output, so to see the signals you can simply create a continuous acquisition task in Max at 5Khz.
    Thanks for you time and support.
    Attachments:
    Delayed Counter Pulse.zip ‏137 KB

  • How do I simultaneo​usly measure two frequencie​s using the two counters on a CompactDAQ chassis?

    I am using two encoders as speed wheels to compare two different speeds simultaneously.  I have the encoders connected to the two counter inputs of my CompactDAQ chassis using NI 9423 cards in order to measure the frequencies produced be each and then I convert that data into speed.  How do I efficiently measure these frequencies simultaneously?  I say efficiently because the only way I can get it to work right now is to create a task for the first encoder, gather my frequency data, clear the task for that encoder and then move onto the next.  This is a slow process and therefore the measurements are not exactly simultaneous.  If I try to measure them simultaneously I get resource errors.

    Hey Kevin,
    Thank you for the information. The cDAQ-9172 has two counters on the chassis itself.  There are no counters on the actual module.  What this means is when you access Counter 0 using a module in slot5 (for example), you are actually accessing Counter 0 on the backplane of the chassis.  This is why you are getting the resource is reserved error.  If you have the other input frequency connected to the second counter of the chassis, you just need to access it using Counter 1 instead of Counter 0.
    In your code, for the Counter 2 input, you have "cDAQ1Mod6/ctr0".  If you just change that to "cDAQ1Mod6/ctr1", this will get rid of your "resource is reserved error.  Also, to get both your tasks to be a little more closely synchronized, you should probably use a sequence structure to be sure that they start together. In the code below, I have used two seperate counters on two different modules and synchronized them.  If you are using the same module you would just need to change the counter inputs to represent the two different counters on the same module.
    Hope that helps.
    Regards,
    Message Edited by Raajit L on 04-02-2007 11:00 AM
    Raajit L
    National Instruments
    Attachments:
    Counter Parallel Tasks.jpg ‏66 KB

  • Two questions about the Nokia 920 to Nokia experts...

    Hi,
    I am considering the Nokia 920 for replacing my Apple 4. However I have two questions that nobody in a phoneshop can answer. Furthermore I can test it myself as about all Nokia 920 in shops seems to be a dummy for showroom purposes.
    Therefore I would appreciate it if somebody can answer these two questions:
    1. Which versions of MS-Office can be read on the Nokia 920? 
    2. I have heard there are some difficulties with the Nokia 920 to watch Youtube movies. Is this true? If so, what is  the solution of Nokia. If have heard to load a Metro app that solves these Youtube problems.
    I have seen many videos by now about the Nokia 920 but none does cover really these questions. Thanks for taking the time to write me an answer.
    Regards,
    Jan
    Solved!
    Go to Solution.

    Works with Office 2010 at least.
    There is at least the latest MS Youtube app to stream video without problems.

  • Two separate questions about the new s3 update

    Okay, so I just recently updated my s3 and so far I love everything about it, very nice job. Just two things bother me about it (not sure if the second one has to do with the update or not)
    Firstly, when you receive a text message it pops up on your lock screen with about the first sentence of the message. Now that's a big problem for me, I enjoy my privacy, so if I'm texting someone, get up and leave me phone wherever I am at the time, someone could pick up my phone and instantly see who I'm talking to and what about without any type of security (I have the pin lock). If there is a way to disable it I cannot find it anywhere, maybe I'm not looking hard enough, any help would be appreciated.
    Secondly, when sent a picture message instead of the message itself from the person sending it I get a message from "Me" or my own phone number saying "You've got a new PIX or FLIX message! To see it, visit *insert the vzw site here*. When going to the site it asks me to sign up and sync my phone to the cloud, which I do not want at all. Is this something with my service or the new update? It's quite infuriating to be honest. If either of these is true, is there a way to disable this feature and continue receiving pictures/video messages "normally"? PS: Picture/Video messaging worked all normal before I updated.
    Thank you so much for any insight or help you can provide.

    jakeskee wrote:
    Okay, so I just recently updated my s3 and so far I love everything about it, very nice job. Just two things bother me about it (not sure if the second one has to do with the update or not)
    Firstly, when you receive a text message it pops up on your lock screen with about the first sentence of the message. Now that's a big problem for me, I enjoy my privacy, so if I'm texting someone, get up and leave me phone wherever I am at the time, someone could pick up my phone and instantly see who I'm talking to and what about without any type of security (I have the pin lock). If there is a way to disable it I cannot find it anywhere, maybe I'm not looking hard enough, any help would be appreciated.
    Thank you so much for any insight or help you can provide.
    If you are using the stock Text messaging App. Open the app (while on the screen that shows all your people you have text, (not an individual person) click on your menu icon, the go to Settings> scroll down to >Notification settings>Notifications  The box should be unchecked, or if it is checked there is a "Preview message" option that you can uncheck. That will take it off of the lock screen. Hth.
    ***Sorry, did not see the link that Tikibar posted ref the first question. If you leave the "Notifications" box checked, you can customize the rest of your notifications...and just uncheck the "Preview message" box.

  • Who can tell how to solve about the apple ID, because my apple ID was been disabled since two last week. And, i tried change my password through iForgot. Anyone? Thanks.

    Anyone? Thanks ;) tell me
    How to solve about the "apple ID has been disabled"?

    I am having the same issue. I just got my Iphone4 on Friday and no matter what I do to confirm my AppleID, it says its been disabled. Anyone have any ideas?

  • Two Questions about the SRP527W

    Hello all,
    The SRP527 is working fine with VPN however I can't ping my local netwerk on the client side.
    The IP addres range is the same as from the remote side only start from 240.
    My internal IP addresses are:
    On the side where the router is:
    10.10.56.1 <> default gateway from the router
    10.10.56.3 <> a Server all the devices there are working and can map to local drives.
    Local:
    After connect the VPN I get IP address 10.10.56.240 who also become my default gateway.
    Ping to a local printer on 10.10.56.110 give a reply from 10.10.56.1 destination can't be reached
    In the client software I can mark Allow local LAN Network. It make no difference still not possible to ping local.
    Second question:
    Can I remote install the new firmware without getting problems with my VPN line? Can I still acces the router from remote even after update the firmware?
    Thanks for your time to  read this

    Hello Luis Arias,
    Thank you for giving me support on the issue.
    About the suggestion to change the subnet mask on one side, which I did:
    In the router a start address 10.10.56.240 is set with a subnet mask 255.255.0.0 when try to change that subnet mask to 255.255.255.0 the network address is already existent.
    Playing with the IP number does not give met the final result 10.10.56.240 with subnet 255.255.255.0 so I needed to leave it with the subnet mask 255.255.0.0
    I changed the client side to 10.10.56.20 with subnet 255.255.255.0 and marked the selection allow local LAN.
    After make the connection with the VPN I get 10.10.56.240 as local address which also becomes my default gateway.
    Still not possible to ping the local printer 10.10.56.110 and get from 10.10.56.1 destination can't be reached
    The 10.10.56.1 is the VPN router default gateway address.
    Hope it give you enough information to help to solve my problem,
    Greetings,
    Ronald

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

Maybe you are looking for