Run two counters simultaneously with out affecting each other

Hi
I am new to labview. I am trying to figure out how the two counters/ timers( one is nongateable standard timer and another is standard timer which is software based) run simultaneously. I created it in different while loops. Is it possible to create two counters in single loop with out affecting each other?

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

Similar Messages

  • How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?

    How to sync 2 different Mac users using the same Apple ID and with out mixing each other info?
    We are two people using three difrent Macs, 1 Iphone and 1 Ipad with separate USERS  on each Mac but sharing the same Apple ID: xxxxxx
    I set up the first user to iCloud and it was OK but when I set up the second user to use iCoud the first users's info gets mixed with the second user's info?
    Do we have to set up a diffrent Apple ID for each other?
    Sometime ago I added my friends E mail (yyyyy) to the main Apple ID (xxxx) as for using his E mail account (to separate our e mail accounts, and it's working ok) but now when I try to create a new apple ID whith the same friend's e mail (yyyyyy)  it says that his mail (yyyyy) is already an apple ID when the Apple ID is really my E mail (xxxxx)... any clue?
    Thanks

    I believe because you migrated from a Nokia to an iPhone you need to register the Bn phone number with your Apple ID so it can be used for iMessage. The Pn number seems to be the only one registered
    Go here > https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Manage your Apple ID and see if that does the trick
    Hope that helps

  • 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

  • )How can we schedule the info package daily run at 6 AM, with out useing in

    Hi
       Can any one explain 1) what is information broadcasting &how can we use this.
    2)What are the settings we have to do when we use the charts in WAD's
    3)How can we schedule the info package daily run at 6 AM, with out useing in process chains
    Thanks
    Bharath

    Hi,
      Information broadcaster :
          you can precalculate and distribute(thru mail) the query, workbook and webtemplate through online link or html file to the receipents (users).
    have a look at the below link.
         http://help.sap.com/saphelp_nw04/helpdata/en/3a/0e044017355c0ce10000000a1550b0/frameset.htm
    Infopackage scheduling:
         you can schedule the infopackage daily at your desired time .In the schedule tab ,select the start later in background and in the scheduling option give the date and time and give the period values as daily.
    Regards,
    Siva.

  • I've got two iTunes accounts with apps under each - how can I reconcile them both under one account and one email address?

    I've got two iTunes accounts with apps under each - how can I reconcile them both under one account and one email address?

    You cannot.
    Sorry.

  • Is there any way how i can download and run Window based games, with out installing Windows-thus Bootcamp? and if so, is it free?

    is there any way how i can download and run Window based games, with out installing Windows-thus Bootcamp? and if so, is it free?

    No, you must install Windows to run Windows software. You do not need to use Boot Camp (yes, it's free because it comes with OS X.)
    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows XP w/Service Pak2, Vista, or Windows 7.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusionand Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. Boot Camp is only available with Leopard or Snow Leopard. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.

  • How can i run my java program with out java language

    Hai to every one ..Iam new to java language ...am using windows xp operating system , i did not installed java language in my system .. how can i run a java program with out installing java language... Which files is requied to run java program..?
    any one can help me??

    Hai to every one ..Iam new to java language ...am
    using windows xp operating system , i did not
    installed java language in my system .. how can i run
    a java program with out installing java language...
    you ... can ... not ... do ... this
    Which files is requied to run java program..?
    any one can help me??a JVM. Download it from sun's website.
    [url http://java.sun.com/javase/downloads/index.jsp]Download JavaSE here

  • Run form6i on web with out Jinitiator

    I am running forms 6i (path 8) on Windows 2000 server. I know we can run form6i on web with out Jinitiator, but I can not find a detailed instruaction on this issue. Can anyone tell me the how-to or where to find the how-to.
    Thanks.

    Here is an example using the Forms Servlet listener. Actually there is a bug with the f60all.cab file provided with Patch# 8. In my case I used a backported f60all.cab file. There is a note in metalink about it. Refer to Bug No. 2097653 and apply patch 1138690:
    <!-- $Header: baseie.htm@@/main/TOOLS_DEV2K_994/2 \
    Checked in on Thu Oct 19 17:23:15 PDT 2000 by vobadm \
    Copyright (c) 2000 by Oracle Corporation. All Rights Reserved. \
    $
    -->
    <HTML>
    <!-- FILE: base.htm (Oracle Developer Forms) -->
    <!-- This is the default base HTML file for running a form on the -->
    <!-- web using APPLET-style tags to include the Forms applet. -->
    <!-- This file will be REPLACED if you reinstall "Forms Web CGI and -->
    <!-- cartridge", so you are advised to make your own version if you -->
    <!-- want to make any modifications. You should then set the -->
    <!-- baseHTML parameter in the Forms web CGI configuration file -->
    <!-- (formsweb.cfg) to point to your new file instead of this one. -->
    <!-- IMPORTANT NOTE: default values for all the variables which -->
    <!-- appear below (delimited by the percent character) are defined -->
    <!-- in the formsweb.cfg file. It is preferable to make changes in -->
    <!-- that file where possible, and leave this one untouched. -->
    <HEAD><TITLE></TITLE></HEAD>
    <BODY >
    <!-- Forms applet definition (start) -->
    <APPLET CODEBASE="/forms60java/"
    CODE="oracle.forms.engine.Main"
    WIDTH="750"
    HEIGHT="700">
    <PARAM NAME="cabbase" VALUE="f60all.cab">
    <PARAM NAME="serverURL" VALUE="/servlet/oracle.forms.servlet.ListenerServlet">
    <PARAM NAME="serverArgs"
    VALUE="module=myform.fmx">
    <PARAM NAME="splashScreen" VALUE="NO">
    <PARAM NAME="background" VALUE="no">
    <!PARAM NAME="lookAndFeel" VALUE="oracle">
    <!PARAM NAME="colorScheme" VALUE="teal">
    <PARAM NAME="serverApp" VALUE="default">
    </APPLET>
    <!-- Forms applet definition (end) -->
    </BODY>
    </HTML>

  • Multiple Analog input channels affecting each other (DAQ_mx)

    Hi, I use NI BNC-2110 / PCIe-6363 + Labview 2012 for my DAQ.
    In out task, we acquire two analog samples(these two samples are timed by on board clock, 1000000 rate) from each analog input (AI_0 and AI_4) whenever DAQ receives a digital trigger from PFI0 (rising edge and retriggerable). We will receive 200 triggers and our program will finish until we receive 400 samples on each channel.
    The interesting thing is that different analog inputs seem to affect each other. As shown in the figure below, the white curve is analog input AI_0 and the red curve is analog input AI_4.  AI_0 is connected to a triangle input and the curve
    below seems right. AI_4 is actually shorted (some result if open) but the acquired data is affected by AI_0.
    However, this problem does not occur when only one channel is used in vi (Only the "create channel" and the "read" vi's are changed to be multiple sample and we repeat the experiment with everything else unchanged). So I believe it is not an actual voltage problem before the BNC-2110 board receives the analog input.
    Any idea about how to solve this? Thanks in advance! Happy new Year.
    Yang
    Attachments:
    Two Analog Inputs.vi ‏23 KB

    I used a wire to connect the BNC core and BNC shell on AI_4 when I shorted it(it is set on floating source mode).
    The effect happens even if I have some other kind of input in AI_4(the input is like a stair case but it is always modulated by AI_1). AI_4 always appears modulated by AI_0.
    Actually it will not bother me at all if this only happens when AI_0 is open.
    I guess the sample clock (1000000) is too high to cause this(Yep, probably it is Ghosting...). When this rate is 1000, it does not happen as I have just tried.

  • Is Two Classes that call methods from each other possible?

    I have a class lets call it
    gui and it has a method called addMessage that appends a string onto a text field
    i also have a method called JNIinterface that has a method called
    sendAlong Takes a string and sends it along which does alot of stuff
    K the gui also has a text field and when a button is pushed it needs to call sendAlong
    the JNIinterface randomly recieves messages and when it does it has to call AddMessage so they can be displayed
    any way to do this??

    Is Two Classes that call methods from each other possible?Do you mean like this?
       class A
         static void doB() { B.fromA(); }
         static void fromB() {}
       class B
         static void doA() { A.fromB(); }
         static void fromA() {}
    .I doubt there is anyway to do exactly that. You can use an interface however.
       Interface IB
         void fromA();
       class A
         IB b;
         A(IB instance) {b = instance;}
         void doB() { b.fromA(); }
         void fromB() {}
       class B implements IB
         static void doA() { A.fromB(); }
         void fromA() {}
    .Note that you might want to re-examine your design if you have circular references. There is probably something wrong with it.

  • Can you use one PC for 2 different Ipods, with out erasing the others music from Itunes?

    Can you use one PC for different Ipod touch's , with out erasing the other persons Itunes music?

    Yes.  See:
    How to use multiple iPods, iPads, or iPhones with one computer

  • Two different projects spliced together over each other some how?

    Greetings everyone,
    I thought forum users might be interested in this one. I don't use the forum often so I don't know the history but has anybody ever had two different projects spliced together over each other some how? For example, I was tweaking a project and left it alone for several months. I came back today to work on it and clips from other projects were in it some how. Also the audio from the new clips were in the new project and overriding the existing project. Does anybody know how to restore the two and make them separate them without losing any info. from either one? The thing's a mess. I had 1 video track w/ some subtitles, a voice over, and some music in the background. Now it has two video clips, and two of everything else. It's crazy. I don't think it's a virus or anything. Nothing else on my machine is acting strange. I hope nobody else has experienced this yet can help.
    Peace

    If you have a backup external drive and Time Machine, I would suggest the following:
    Locate this specific clip in your Finder. Highlight it and rename it "old", or something similar.
    Launch Time Machine.
    Go back to a date in time when this clip was as you properly edited it.
    Again, make sure Finder is still open and highlight the clip.
    Click "restore" in Time Machine.
    Open iMovie and you will see your project as you had it all those months ago.
    This works for me when I have an iMovie project behaving badly.
    iMovie is a great application: but just like us, it has good days and bad days.
    Dan

  • Cannot run two webcams simultaneously under Mountain Lion

    I am working on  a film project for which I want to record skype calls while I at the same time record the "local" side of the conversation in HD quality with the C910 in the Logitech webcam software. Hence, I want to run two webcams at the same time. The in-built laptop camera in Skype and the C910 in the Logitech Webcam software.
    I have had a lot of difficulties doing thid in Mac OS X. On my old MacBook Pro under OS X 10.6.8. the logitech support recommended initiating the skype conversation with the Isight camera first and only then launching the Logitech software and starting the recording with the C910 cam. That worked fine.
    Now, however I have to do the same on a newer 13" MacBook Pro with OS X 10.8.4. and built in Facetime webcam and it just won`t work. Only one webcam functions at a time. If I launch the Logitech software first, the Facetime camera won´t work in Skype   And when I start a skype conversation first, I only get a black screen (no failure notice whatsoever, the C910 is still detected) in the Logitech Webcam Software.
    I am completely desperate and Logitech product service only told me I should contact apple support. Does anyone know how I can get both webcams running simultaneously?

    I am trying to do something similar...not necessarily with skype but need to connect two webcams (via wifi) and want both feeds displayed simultaneosly on imac.  hoping my reply boosts this thread

  • Running two SSIDs, one with WPA2 and one with WEP

    Hi,
    I have a WRT610N. 
    How isolated are the two SSIDs that I can run?
    I know one is running at 5GHz and the other at 2.4GHz.  I've given each an SSID and a different security policy:  I run "sensitive" stuff under WPA2, and I run the other for legacy hardware that supports only WEP (eg my son's Nintento DS).
    But are these two keys to the same house, so to speak?  If someone cracks my WEP network, can they access the machines on the WPA network?  Or are they completely isolated?
    Does this make sense?
    Thanks for any enlightenment.
    -- Mike 
    Solved!
    Go to Solution.

    Yes, they are "two keys to the same house".   The "house" is your LAN.   If someone cracks your WEP, and wirelessly breaks into your router, then they have access to your LAN.   This would be like allowing a hacker to wire his computer directly to your router.   Being on your LAN, puts the hacker in a very good position to break into any other computer on your network.    Your WPA2 encryption does not give you any protection from someone who is already on your LAN.
    The solution to your problem is to run two separate wireless routers:
    modem  ----  router1  ---  router2
    router1 is set to "Local IP address"  192.168.1.1 , WEP encryption , set "AP isolation" to "enabled" , (note: no printers on router1)
    router2 is set to "Local IP address"  192.168.2.1 , WPA2 encryption, use a strong password (and not anything similar to the WEP password). 
    modem is wired to Internet port of router1
    LAN port of router1 is wired to Internet port of router2
    The wireless 2.4 GHz channels on the two routers must be different, and are preferably at least 5 channels apart.  Usually channels 1, 6, or 11 work best. 
    With the above two router setup, the Internet port of router2 should protect you from any intruders on router1. 

  • How can i run my .class file with out installing java ?

    Hai friends..am new to java , plz help me any one.
    I wrote a small program in java lang. i want to run this program in my friend's system , which is doesnt have java language .. How can i run this program in my friends system with out installing java language?
    one of my friends told that ,it needs to copy the jvm in to ur directory where the java code is present . How can i copy the jvm from where to where ..?plz help me any one

    Your friend will have to install the Java runtime if they want to run Java
    programs.
    Don't go copying files yourself - and especially don't go copying them to the
    location of the Java code. After all, if your friend wants to run 42 different
    Java programs they shouldn't have to have 42 copies of the runtime.
    Just download and run the installer from this site:
    http://java.sun.com/javase/downloads/index.jsp
    Be careful to download the "Java Runtime Environment" not the JDK.

Maybe you are looking for

  • How do I get my Course Manager to display in English and not German?

    My company is registered in both Germany and United Kingdom, and conduct business mainly in English Language. I signed up for iTunesU in order to create courses to share on iTunesU on behalf of my college. However, each time I insert the link below t

  • Using ipod as hard drive?

    Hi... well this is the situation.. at work i bought a movie on itunes now the thing is my ipod is insync with the computer at home.. now i know that there has to b a way for me to transfer this movie onto my ipod, but i dont want to erase the songs o

  • Flashing question mark at start up (details in post)

    Problem: Flashing question mark at startup. System: iBook G4 running OS X version 10.3.something. Details: The machine froze on waking up when I opened it last night. I held down the power key to turn it off, then powered it up again and got a flashi

  • How can I create a simple app that will automatically add folder script

    Hi! I hope I can get a little help on this.  I tried searching online and haven't found anything. Is there away I can make a simple "application" that will automatically add a folder script to a users folder? Basically I need a folder script to run b

  • Doubt on Consuming webservices

    Hi all, I have a requirement to create a webservice from rfc and third party wantsto consume webservice from external system. I have created rfc and webservice from the same and got wsdl link. Can anyone tell how the external system can access wsdl l