How should i read two counter through software of Ni 6602

Hello all,
i want to know that how should i read two counters same time of NI 6602  using c#.net.
Please  guide me.

Hello,
I have a couple of suggestions for you to look into and determine which is best for you application. 
-  Use a Two Edge Separation task to count ticks and not seconds (by changing the units) between a start and stop trigger.  The two trigger signals will need to come from different sources.  The KnowledgeBase (KB) linked below describes the task in further detail.  This KB explains why a reference trigger is not recommended.  Open up the C# example in the Measure 2 Edge Separation folder from the location listed in the previous post.
AE KB 2IK8FRXA: How Do I Count Digital Edges Between a Start and Stop Trigger on an NI 6602 Counter/...
-  Use an Arm Start Trigger as a start trigger with the Count Digital Event task.  It will only allow of a start trigger and not necessarily a stop trigger.  The Developer Zone link below provides a coded example. 
Developer Zone: DAQmx - Event Counting on Multiple Counters with Digital Start Trigger (TIO) - LabVI...
-  Use an Arm Start Trigger to synchronize multiple Count Digital Edge tasks and paired with Pause Triggers to pause acquisition based on source level. 
Developer Zone: Synchronous trigger start of multiple counters and pause independently
For more information on the type of triggers mentioned, refer to the DAQmx Help.
Samantha
National Instruments
Applications Engineer

Similar Messages

  • How do I read two dimentional string object in C through JNI

    HI,
    I am new to JNI and Java as well. I want to read two dimentional string object passed by java to a native method written in C/C++. Say for example I have declared a two dimentional string object as below:
    In Java
    class InstanceFieldAccess {
    private String [][] originalAddress = new String[][13];
    private static native String [] accessField(String [][] referenceAddress);
    public static void main(String args[]) {
    /// Java code to get the string object and pass the string object to native method
    new InstanceFieldAccess ().accessField(referenceAddress);
    static {
    System.loadLibrary("ReadStr");
    In C/C++
    I want to read the passed two dimentional string array in C/C++ native code and do the further processing and pass the string
    back to Java class.
    Could anybody tell me how to write the corresponding C/C++ native method.
    Thanks in Advance.
    Pramod.

    i got it thanks.

  • How can I read two channels with fieldpoint and labview

    I'm trying to read two or more channels with the TC 120, and I follow the examples of sopport page, but doesn't work.
    What can I do?

    For more information about reading or writing to or from multiple channels in Fieldpoint, please refer to:
    How Do I Read or Write to Multiple Channels on a Fieldpoint Module in LabVIEW?
    This should enable you to read multiple channels. The only other option available is to use one fp open.vi, multiple Create Tag.vi's and multiple FP Tag Read.vi's.

  • How should i open another application through url....?

    Hi,
              how should i open new application in new window thorough url of that application.
    I know , one way is link to url property of ui element but in my case i dont wont to use that.
    i m having url of another application and if i want to open that through any code...how its possible.?
    is there any windows code for that ?
    thanks
    saurin shah.

    hi,
    After insertion of LinkToURL element into the View.
    for "reference=<give here your application URL>
    for property
    reference=https://www.sdn.sap.com
    and for property
    text = <give the name what ever you want here>
    and the same can be done using
    "LinkToAction" element also.
    Thanks
    RameshBabu.V
    Edited by: Ramesh Babu V on Jul 9, 2008 11:28 AM
    Edited by: Ramesh Babu V on Jul 9, 2008 11:33 AM

  • How do I read ModBus counter holding registers in Lookout 5

    We are using Lookout v5 with Zetron M1700 and M1716 RTUs. The M1700 is Modbus1 and the M1716 is Modbus2.
    We need to be able to count the number of times a digital input is turned on and off over a period of time.
    We are using digital input #9 on the M1716 RTU. According to the Zetron literature, the counter holding registers for digital input #9 are 42091-42093 for the value and 42094-42096 for the period.
    I tried to calculate the the value stored in the registers by using this formula which was suggested by Zetron in an expression:
    (((Modbus2.42093*10000)+Modbus2.42092)*10000)+Modbus2.42091
    However, this always returns zero.
    I read through your example on reading the BCD registers and doing calculation
    s on them but it hasn't helped me with my problem.
    Is there some command I need to use or a special type of an object I need to use to read the counter holding registers?
    I know we are communicating with Modbus2 properly because I can see when the digital input is on or off.
    Any help is greatly appreciated.

    Hi,
    Is it possible to share or point us to the Zetron literature explaining this calculation?
    If you just read the registers 42091-42093 individually from Modbus2, what do you get?
    Alternatively, you can maybe count the digital line directly in Lookout. For this, you would create a Counter object and specify the digital input as the "Count=" input. Not sure if this is a feasible option for you.
    Again, if you can share the Zetron documentation, I can take a look at it to see why it may not be working.
    Regards,
    Khalid

  • I am using NI PXIe-1073 with Labview-2014.After deploying the VI how can i read the data through host computer?

    sankar,new delhi

    PIB. I want to read the data from the GPIB after the operation complete. I am using *opc? command, which should set the status register bit after the completion of the operation, but this is not working. How to know that the Operation is complete"-Thanks.The NI-488 global status variables ibsta, ibcnt, and iberr is what you are looking for. Look into the 4882 help file for details. Also NI-Spy, http://www.ni.com/support/gpib/nispy.htm, is a good debug util. There is a website that lists common GPIB error codes and solutions. You may check there for some things to try. You'll find the link at ni.com > Support > Troubleshooting > Installation/Getting Started > GPIB, titled "GPIB Error Codes and Common Solutions".
    You could find a driver for this instrument at http://www.ni.com/devzone/idnet/default.htm . If it's not listed there, it leaves you with one of a couple options. First, I would like you to submit a request for this driver at: http://zone.ni.com/idnet97.nsf/instrumentdriverrequest/
    We develop dri
    vers based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one.
    If you would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://www.ni.com/devzone/idnet/development.htm
    We also have a syndicate of third party vendors that specialize in National Instruments' products and services. Some of the vendors specialize in driver development. I would suggest contacting one of the Alliance members at:
    http://www.ni.com/alliance
    Hope this helps.

  • How can I disable a key through software?

    A friend of mine spilt water on her keyboard. As a result, her forward slash key frequently spams and makes typing difficult. I used a program to remap the forward slash key to a forward delete key, but that has also caused problems. What I'm looking for is a program that will allow me to completely disable a key.
    I should note, I've used KeyRemap4Macbook and I've also developed my own code, which disables the key on Cocoa applications. However, the key still spams on applications like Microsoft Word.
    Her Macbook is more than a year old, and she can't afford to buy a new one.
    Any suggestions?

    Liquid in a physical keyboard is great trouble. You may worsen state if you continue to use it like this, make the effort to change it. It is not cheap, but may prove cheaper than damage the whole computer.

  • How to merge alphabetically two lists through a rational solution?

    Have two lists of captions it two languages and need to merge alphabetically, but this solution is very poor.
    (list x)
    Palacio Imperial, Barcelona, 2012
    Cementerio, 2009
    (list y)
    Imperial Palace
    Cemetery
    to obtain:
    Palacio Imperial, Barcelona, 2012
    Imperial Palace
    Cementerio, 2009
    Cemetery
    One method very naive:
    · number the lists
    · convert numbering to text
    · in list y add a constant to sort in order:
    1. Palacio Imperial, Barcelona, 2012
    2. Cementerio, 2009
    1a. Imperial Palace
    2a. Cemetery
    and sort:
    1. Palacio Imperial, Barcelona, 2012
    1a. Imperial Palace
    2. Cementerio, 2009
    2a. Cemetery
    delete the code:
    Palacio Imperial, Barcelona, 2012
    Imperial Palace
    Cementerio, 2009
    Cemetery
    (italics are not required)
    Thanks.

    Camilo,
    Another more original way with QuicKeys! [I love this little soft for a long time!] Only 1 click!
    For it, you need to use a different paragraph style for each list [eg. List1_Style and List2_Style].
    Eg, our list:
    A1
    A2
    A3
    A4
    B1
    B2
    B3
    B4
    Search: (?<=\r)(.+\r)+
    Search format: List1_Style
    Search-Research Windows must be open into ID.
    Shorcut in QuicKeys:
    1rst research
    1/ Click on the button: Search (actived - in blue)
    A2
    A3
    A4
    is selected.
    2/ Cut it (shortcut: Apple+X)
    3/ Down arrow (of the keyboard)
    4/ Copy it
    We obtain:
    A1
    B1
    A2
    A3
    A4
    B2
    B3
    B4
    2nd research
    1/ Click on the button: Search (actived - in blue)
    A3
    A4
    is selected.
    2/ Cut it (shortcut: Apple+X)
    3/ Down arrow (of the keyboard)
    4/ Copy it
    We obtain:
    A1
    B1
    A2
    B2
    A3
    A4
    B3
    B4
    3rd research
    1/ Click on the button: Search (actived - in blue)
    A4
    is selected.
    2/ Cut it (shortcut: Apple+X)
    3/ Down arrow (of the keyboard)
    4/ Copy it
    We obtain:
    A1
    B1
    A2
    B2
    A3
    B3
    A4
    B4
    The research stops automatically.
    The last work (after this test) is to create a loop in QuicKeys to run the steps 1/-2/-3/-4/ as many times as necessary until the end of the process. 

  • How can I read two double after typing?

    Hi everyone!!
    Thank you for reading me, I need your help.
    I'm new (very very new) in JAVA programming.
    I have a problem. I'm trying to write an application that reads a couple of
    numbers (double). It shows a message on screen that says something like
    'type a number', and then it reads it.
    The thing is that the program doesn't stop for the input of the second
    number and I don't know how to solve it.
    Can you help me please?
    My code is similiar to the following one:
    System.out.println("Type the first number: ");
              try{
                   x = System.in.read();
                   }     catch(IOException e){
                   System.out.println("It didn't work.");
    System.out.println("Type the second number: ");
              try{               
                   y = System.in.read();
                   }     catch(IOException e){
                   System.out.println("It didn't work.");
    // We build the point
    Point point1 = new Point(x,y);
    Thank you very much for your attention and help.

    You need to read the docs more carefully. read() just reads a single byte. If you type a capital 'A', read will return the number 65.
    Look at the java.util.Scanner class. I think it has a readDouble method.
    If you're not on 1.5 yet, use a BufferedReader around System.in to read a line, and then use Double.parseDouble.
    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • How are JNDI lookups load balanced through software?

    Presumably they are not generally speaking.
              I can see how HTTP Requests are via HttpClusterServlet but how are the
              JNDI lookups handled if the client isn't specify a specific node in their
              intialcontext?
              

    Is there any way of doing that with one nic only?
              Rajesh Mirchandani <[email protected]> wrote in message news:<[email protected]>...
              > You machine could be multi-homed.
              >
              > Robert Nicholson wrote:
              >
              > > Specifically how can I run multiple clusternodes on the same machine and
              > > still load balance my JNDI lookups across them if obviously they are not all
              > > running on the same port and I cannot use
              > >
              > > ht.put(Context.PROVIDER_URL, "t3://acme1,acme2,acme3:7001");
              > >
              > > like syntax.
              > >
              > > "Robert Nicholson" <[email protected]> wrote in message
              > > news:[email protected]..
              > > > Presumably they are not generally speaking.
              > > >
              > > > I can see how HTTP Requests are via HttpClusterServlet but how are the
              > > > JNDI lookups handled if the client isn't specify a specific node in their
              > > > intialcontext?
              > > >
              > > >
              

  • Please Help ! How would i Read xml file through servlet

    My requirement is that i have to make a stock exchange streamer.
    i am making an applet to show real time data to client. i had succeded in applet-servlet communication, but i m getting problem in
    parsing the xml files inside a servlet and throw it to applet again.

    I would suggest that you find out what the problem is, then. Once you find that out you will be far ahead of anybody else reading this post, because they have absolutely no idea what your problem is.

  • How can I read a column of numbers saved as .txt and display as a wave?

    Hi Tiano
    LabVIEW General
    Ask:
    Please enter a one-line summary of your question
    Resources
    • Technical Support
    • Development Library
    • Measurement Encyclopedia
    "data/time reading into chart"
    "In the attached file, I am trying to read the first column of data, and the next column is the value on the x-axis I want it plotted at. How do I read two columns of different data? I have looked in the books I have access to and the help within Labview but am still having trouble.
    Thank you,
    Ellie"
    data_set (Plain Text, 3K)
    -posted by Ellie on 9/11/2001
    markwysong on 9/11/2001 answered:
    "Ellie,
    The first thing you need to do is to read your file in as a spreadsheet file. Then, you display it in a chart.
    That sounds simple, but looking at your dataset, there's a few things you should know. First, the "read from spreadsheet VI" is looking for data in columns, like your data set, but columns separated by tabs. Therefore, your data must be saved that way; currently, it doesn't seem that it is. Another thing; you must skip the header portion (labels) of your file when reading.
    Next, it would be easier if your time was first, and your data was second in your columns, but that can be overcome. In the VI I am including, I have copied your data set into a file called data.txt, and I've removed the header and separated the columns with a tab. Then, I read in the data, and I break out each column so I can put the time first, and then I combine them again into a cluster so it can be displayed on an XY chart.
    Take a look!
    Mark"
    Graph data from file (Binary Executable, 20K)
    data.txt (Plain Text, 3K)
    This answer has not yet been rated.
    Rate this answer:
    Mikael Garcia on 9/11/2001 answered:
    "Ellie,
    Here is one way of doing it. Take a look at this example (compatible with LabVIEW 4.1 and up) and post comments if you need further help. Basically, I read your file as text; split it; and make use of the Spread sheet string to Array function before I plot your data. Hope this helps./ Mikael"
    ExtractAndPlot.vi (Binary Executable, 36K)
    This answer has not yet been rated.
    Rate this answer:
    Ellie on 9/12/2001 commented:
    "Thank you. I am trying to get the data from the text file into a string and am having some trouble. I am reading the file from a spreadsheet, and sending the output array to "Array to Spreadsheet String", but I'm not sure this is what I want to do. Is there another way to make an array into a string? Do I need to reformat my data?
    Can you offer me any advice?
    Thank you."
    data_1 (Plain Text, 3K)
    Mikael Garcia on 9/12/2001 commented:
    "I noticed that you changed your file format according to what was said here. Yes, this new file of yours is easier to use but your original file does not have to be changed. Take a look at this example. I now added the file-read part. It will give you a dialog to locate your data file (use this VI with your original file with the header since this VI includes a string split function). Hope this helps. /Mikael"
    ReadExtractandPlot.vi (Binary Executable, 35K)
    Niko on 9/12/2001 answered:
    "If you read this file with the "read from spreadsheet file.vi" you get you
    data in a 2-D-array. Now it is easy with array- and cluster-functions to
    handle the data the way you want.
    hope that helps, Niko"
    This answer has not yet been rated.
    Rate this answer:
    I intend to read from a .txt file that contains a column of numbers. After reading I want to display it as a waveform. In fact the numbers represent points along a waveform/graph of Flow vs. time. Thus I want to have this info in the chart or graph with flow in the y0axis and time in the x-axis. Can someone give me some detailed help please? Thank you in advance.
    Attachments:
    The_file.txt ‏18 KB

    All you have to do is use Read From Spreadsheet File.vi that's on the File I/O palette. For your example .txt, set the Transpose input to true and wire the First Row output to a waveform graph. The only problem I see is that since your file doesn't contain any sampling info, the time axis will be relative. If have that information elsewhere, then you can put a build waveform function between the read and the graph. Wire the First Row output to the Y input Build Waveform and add t0 and dt values. I've attached an example.
    Attachments:
    Graph_from_text.vi ‏29 KB

  • How to send the two PDF attachments into one mail

    Hi Team,
    I need one requirement...I have two forms ,one is cover sheet and another one is form data. These two forms are converted into two PDF documents and sent to vendor as mail attachments...
    Please suggest me,  how to send the two attachments through one mail .....
    Thanks & Regards,
    Samantula.

    Please SEARCH in SCN before posting. There are lots of threads related to send mail with multiple attachments.

  • Reading two data points at a time in Excel

    I would like some help on a programming issue:
    I know how to read whole excel data sets but how do you read two points at a time?  I would like to extract a number from row 1 column 1 and row 1 column 2.  I will use these numbers simultaneously as for loop counters.  Then the program should read row 2 column 1 and row 2 column 2.  This pattern should continue (number of times unknown) until the two numbers both equal 0.
    Please help me with any suggestions you have.
    Thanks ahead of time!

    Hi mtcellar65
    1. you know how to read the whole excel data -  just read the 2D Array (whole information)
    2. extract the single elements using 'Index Array' Function.
     the index for row and column can be kept in a shift register.
    3. increment the indices and repeat step 2 again
    hope this helps
    Renn
    Kudos always welcome for helpful posts

  • Reset 6602 Counter with Software

    How can I reset a 6602 counter through software (using DAQmx functionality i assume) while a counter task is running?  I would like to be able to reset the counter at any point while the task is running without restarting the task itself.
    Message Edited by MREDAY on 06-08-2009 02:46 PM
    Message Edited by MREDAY on 06-08-2009 02:47 PM

    Sam,
    This sounds like a very strange problem, and difficult to diagnose without more information.  Is it consistent about how many times you can stop and restart the task before running into this problem?  Can you go into MAX and start and stop the Test Panels repeatedly without any issues?   What about running the example programs, do they work fine?  Also, does it give you any kind of error message when it crashes and/or the next time you open your program?  (What are you using to communicate with your cDAQ?  LabVIEW?)  
    Also, which version of the DAQmx drivers do you have?  If you don't already have the latest version (9.0.2), I would recommend upgrading.  You can download the latest ones here.   Do you have any other computers that you could try this on?  It would be interesting to see if you see the same behavior there.  
    -Christina

Maybe you are looking for

  • Directory error when deployed in enterprise

    I have a project when ran on Studio, lists the right applications on the workspace for the participant. I exported the project and deployed on the standalone enterprise version. When I log in as the participant, the applications are not listed. I und

  • Problem in integrating sunone webserver with websphere app server

    Hello all I am trying to integrate sunone6.0 webserver with websphere5.0 app server. I did the following changes in sunone6.0 config files 1) Added one directive to the obj.conf file after "<Object name=default>": Service fn="as_handler" 2) Added two

  • RMAN-06023: no backup or copy of datafile 5 found to restore ??

    Hi, Am on Apps 12.0.4 DB 10gR2 Am trying to recover a datafile: got below error ? Hex dump of (file 5, block 11701) in trace file /u01/app/oracle/admin/ora10g/udump/ora10g_ora_6482.trc Corrupt block relative dba: 0x01402db5 (file 5, block 11701) Bad

  • How to delimit business roles in Org Strucutre

    Hello, I have a requirement where in I need to schedule and delimit business roles in the organisation structure(ppoma_crm). Business Requirement: Short term assignment of the Sales executive to Sales manager (Duty manager) role. The main issue is ho

  • Interpreta​tion of and solution to error message

    I am trying to use a PCI-5122 card in a Windows XP PC/LabView set up to receive input from a Sodium Iodide detector to create a Multichannel Analyzer for Gamma ray spectrometry.  It runs for a second or so then gives an error: Error - 1074118632 niSc