Problem resetting count on read with fp ctr-500 counter

Using the ctr-500 module with a FP-1000.  I want to reset the count of a channel on each read.  The CTR-500 manual says to selecting "Reset on Read" from the Value menu.  I've done that but the counter never resets when I read it.  I then tried clicking on "Creat item" under channel attributes in MAX.  It creates an item called "Read Reset Mode @Count Input 0" under Data Neighborhood.  Added that item to the program and wrote to it with both a 1 and 0,  but when I read channel 0 it still will not reset. Obviously, I'm missing something. I would appreciate any help or a simple example so I can get this resolved.  Thanks, Mike
Message Edited by mike72903 on 01-31-2008 10:51 AM
Attachments:
reset count1.vi ‏15 KB

Found an example.  Thanks anyway

Similar Messages

  • How can we substitute the invalid option "reset after read" in FP-CTR-500 + FP-1600 frequency measurement application?

    We nned to incorpore the values of 2 frequency signals (0-10 Khz)into a process controlled by a VisualBasic application running on 1 PC with W'95. Because the FP-CTR-500 working with FP-1600 hasn't the option "reset after read", the process of reading is a bit complicate, and sometimes, we receive wrong values of frequency from those devices. Could you help me? Is there any extremely reliable method of reading? Best regards,
    Puho

    For frequency measurement information on the FP-CTR-500/502 modules. Please see KnowledgeBase Article #1TB63SUS
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d8db42f9fdc3607e862568640047f144?OpenDocument
    Ultimately, the FP-CTR-500/502 modules are not designed for frequency measurement, although it is possible to use them to measure frequency. The one thing is that it works best to do the measurements over relatively long integration periods (1/4 second or more).
    Regards,
    Aaron

  • Flowmeter with FP-CTR-500/502

    Hi to all,
    any people have experiencing for flowmeter with a counter NI FP-CTR-500/502,
    its a right choice for mesureament from 4 to 400 GUS/h ?
    Many thanks in advance for any indication.
    Best regards.  

    Hi adrtab5,
    I'm not sure about what GUS/h means. Looks like a sort of "rotation rate" something like rpm but slower.
    Anyway you can find information about 500/502 specs on this KB Measuring Frequency With the FP-CTR-500/502
    And obviously in the manual FP-CTR-500 and cFP-CTR-500 Operating Instructions.
    You should see if the specification of the CTR-500 match your needs, namely the specification of your flowmeter.
    Here's an extract.
    Input Characteristics
    Number of channels.......................... 12 (8 count, 4 gate)
    Input type..........................................10–30 VDC sinking,
    compatible with most 12 and
    24 VDC devices
    Maximum input voltage....................30 VDC
    Input threshold level
    ON state......................................≥10 V
    OFF state ....................................≤6 V
    Input current limiting........................5 mA maximum
    Input bandwidth
    Count inputs ...............................50 kHz; 200 Hz with
    software-enabled lowpass
    filter
    Gate inputs..................................50 kHz
    Maximum off-state leakage
    current for external devices...............0.2 mA
    Best Regards
    FiloP
    It doesn't matter how beautiful your theory is, it doesn't matter how smart you are. If it doesn't agree with experiment, it's wrong.
    Richard P. Feynman

  • Frequency in cFP CTR 500

    Hi, I got a VI to read frequency from cFP 2020 with the CTR-500 module (Frequency Measurement.vi) in NI Example Finder. When I run this VI in LabVIEW for Windows, it's all right. But I want to run it embedded selecting the target and, when I do it, I cannot read the frequency. Does anybody knows what could be happening? Thanks

    Hi letreca,
    I took a look at your code and it doesn't look like
    anything is really wrong there.  There was one thing that I think might
    help you.  Because you do not have any sort of data dependencies, you
    could be causing a condition where you are resetting the counter before you
    read it.  The best way to change this would be to connect the error out of
    the Read.vi with the error in of the Write.vi.
    You mentioned in your first post that you were using
    Frequency Measurement.vi from the example finder (Browse > Hardware Input
    and Output > FieldPoint > Advanced); however, the code for frequencia.vi
    looks completely different.  If you run the example do you get the same
    behavior? 
    I think you may be having an issue mentioned in the first
    paragraph because you may be resetting the counters too early.  Try the
    example and if that works, use the same technique.  If that doesn't work,
    then try to modify your existing code as described.  If neither works tell
    me what has changed and what hasn't so I can try to take a closer look into
    everything.
    Regards,
    Otis
    Training and Certification
    Product Support Engineer
    National Instruments

  • Pulse Counting Problem CTR-500

    I am using a couple CTR-500 on a compact fieldpoint setup to measure pulses from 2 energy (BTU) meters, 3 diaphragm gas meters, 2 liquid flow meters and 2 Watt-hour electrical meters.  I seem to have a problem with my pulse counts accelerating upon start up of the program (up to 1000 pulses/15 minutes <- which is unrealistic for the hardware installed and then falling to 5-10 pulses/15minutes <-reasonable value).  The pulse count does not correlate with the manual meter readings I have taken either, with the exception of the Watthour meters.  I am unsure if it is my program, wiring, or peripheral equipment at this point. 
    Has anyone seen a problem like this before?  I have included a couple graphs showing the raw pulse count (saved every 15 minutes) and the change in pulse count every 15 minutes.
    Solved!
    Go to Solution.
    Attachments:
    Pulse Counting Run Away.pdf ‏128 KB

    Here is an example vi of how I am reading the pulses and some data processing I am doing with the signal.  I have built in a totalised pulse counter to compensate for the maximum of 65535 pulses that can be counted by the module - so I do not miss pulse counts on reset. 
    Attachments:
    Example code for counting.pdf ‏60 KB

  • FP-CTR-500 don't read external count inputs

    I have 4 frequency signal inputs (0-10 KHz) connected to ports 2,3,4,5 of one FP-CTR-500, but I can't read any change on counting values, using FieldPoint Explorer. The module is OK, all the LEDs are green, including those four inputs, the firmware version of FP-1600 is 4.11 and software version of FieldPoint Explorer is 3.0.0 I can view a fix value of 53xx counts on each input, after a power up sequence (the external frequency is 8.2 KHz aprox.). What can I do?

    There are several reasons that you may be having problems with the count. First, if the channel LED is always on, then the signal wired into the FP-CTR-500 may not be going low enough (below 6 volts) for the module to see the falling and rising edges. Second, if the inputs have been configured with the 200 Hz low pass filter setting, you may be filtering out your signal. Third, if you have configured the count channels for internal count inputs (1 kHz Reference or 32 kHz Reference) or previous count channel, then the module is not looking at your actual wired signals. Fourth, If you have enabled the Gate Inputs (channels 8-11) for any of the counters, then the count will not increment while the gate is low. Fifth, if the channel is configured for Reset On Read fu
    nctionality, every time the FP-1600 polls the FP-CTR-500, the channel will reset itself.
    Regards,
    Aaron

  • Cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy.

    cannot connect to Net, have done for last 12 months no problem, I have other apple products that are connecting to the same hub happily. The hub is seen and the signal is strong, it just doesn't connect. I have reset the network settings with no joy. Any help much appreciated?

    Try restarting your WiFi router by removing power to it for 30 seconds.

  • I need to count intermitte​nt high speed pulses from an outside source with cFP-CTR-50​2 and labview.

    I need to count intermittent high speed pulses from an outside source with cFP-CTR-502 and Labview 8.2 . I've found example code for generating pulses and creating intricate count setups but no straightforward examples of a simple counter. Any suggestions?

    Hello tinfish,
    I could not find a simple example that implements simple counting either, but it should be straightforward enough for us to try. Do you have the CTR module configured properly in MAX? If so, can you monitor the channels on your CTR 502 for input? Try connecting a square wave or some other digital pulse to the terminal to test the functionality of the counter module first (before programming). If you monitor the input channels with somethign connected you should see the count increment each time it sees a rising edge (assuming default configuration).
    Once you've verified that everything works in MAX, you can set up your CTR module in a LV 8.2 project. If you need help with this, refer to the help document (look in the "Configuring FieldPoint in LabVIEW" section):
    C:\Program Files\National Instruments\FieldPoint\documentation\Online Help\fplv.chm
    You should be able to just read a channel tag from your CTR 502 using an FP Read VI. (Simply drag the channel from your project onto the block diagram). Since counting is the default behavior of the 502, there is no special programming involved to make it work.
    I hope this helps -- if it's too high-level we can talk details about specific questions you have.  Have a good one!
    Charlie S.
    Visit ni.com/gettingstarted for step-by-step help in setting up your system

  • We are reading 4 external counting signal and 1 internal 32 Khz clock simultaneously, via a FP-CTR-500 and a VisualBasic app

    lication with OPC server. Can we assure that the time of reading of values for all the channels is the same?. We need to compare those 4 external counting values between them, using the 32 Khz internal clock like a time base reference. Can anybody help us?The timing of reading from the VisualBasic application is 2 seconds, and external pulses are incoming at 8 Khz aprox.

    lication with OPC server. Can we assure that the time of reading of values for all the channels is the same?. We need to compare those 4 external counting values between them, using the 32 Khz internal clock like a time base reference. Can anybody help us?Eduardo,
    The FP-1600 should be sending data is relatively synchronized to the OPC Server. However, since items containing multiple analog/count channels are not allowed in the OPC Server, the OPC Server is treating the channels as separate channels and may not be transmitting the data simultaneously.
    The more complete picture looks like this: The FP-1600 reads all 6 channels of the FP-CTR-500, it compares each value to the configured deadband and places any values that have changed in the transmit queue, it then does the same thing for any other I/O modules on the system. Following the scan of the entire bank, it transmits all of the changed data to the client computer. It then starts scanning the bank and the process repeats. The OPC Serv
    er on the client computer breaks the data down by channels into the appropriate memory locations. An OPC Client will establish separate requests for each channel. Thus a client may sequentially request data from separate channels and may get data from different times if the OPC Client has updated channels between responding to one data request and then the next.
    Regards,
    Aaron

  • Problem to import clips video with "Lightning to SD Card Camera Reader", my mini ipad and my camcorder?

    I need import immediatly my clips video from my camcorder in my mini ipad with my SD card.
    Solution: I have to use "Lightning to SD Card Camera Reader"
    Problem: When i insert my Sd card in the "Lightning to SD Card Camera Reader", my mini ipad don't recognize the sd card... And i'm sure the format of clips video is accepted by ipad (specs).
    I know why my mini ipad don't recognize the sd card... Because the directory where my camcorder put the clips video on the SD card is not accepted by  "Lightning to SD Card Camera Reader". After some research, this device accept only the video in "DCIM" directory.
    So my question: WHO KNOW WHICH CAMCORDER CAN BE ACCEPTED BY  "Lightning to SD Card Camera Reader" WITH CORRECT VIDEO FORMAT (SPECS) AND CORRECT WRITING DIRECTORY "DCIM"?
    Thanx for your help!!!!!

    Since the ipad is not a computer it cannot be expected to behave as such. The resources are limited  and so are the capabilities. Some things will work just fine but others will not. You have to be  willing to make some compromises and accept some of the limitations, otherwise you will end up being frustrated. Maybe another device will better suite your needs.

  • Problem in reading with DOM

    i have the following xml file to read with DOM
    <?xml version="1.0" encoding="UTF-8" ?>
    - <usecasediag>
    - <actor id="1">
      <name>customer</name>
      <usecase>reservation of tour</usecase>
      <usecase>view tour data</usecase>
      <usecase>cancel reservation</usecase>
      <usecase>complain</usecase>
      </actor>
    - <actor id="2">
      <name>employee</name>
      <usecase>access</usecase>
      <usecase>update</usecase>
      </actor>
    </usecasediag>after reading the above file i need to create another XML file using DOM. I have the following code but i am not able to get the value "customer","enployee" while reading the XML file....
    import java.io.File;
    import java.io.IOException;
    import org.w3c.dom.*;
    import javax.xml.parsers.ParserConfigurationException;
    import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    class Post
       Document dom; //to read
       Document dwrite; //to write
       Element root;//to read
       Element rootEle;//to write
       Post()
            File docFile = new File("..\\uml\\xml file\\sample.xml");
            try {
                DocumentBuilderFactory dbf =DocumentBuilderFactory.newInstance();
                DocumentBuilder db = dbf.newDocumentBuilder();
                dom= db.parse(docFile);
                  } catch (java.io.IOException e)
                System.out.println("Can't find the file");
                } catch (Exception e)
                System.out.print("Problem parsing the file.");
            Element root = dom.getDocumentElement();
            findActor();
    void findActor()
         Element ele=null;     
         NodeList nl1 = dom.getElementsByTagName("actor");
         if(nl1 != null && nl1.getLength() > 0)
             for(int i = 0 ; i < nl1.getLength();i++)
                   //get each actor element
                   ele = (Element)nl1.item(i);
                   Node nameEle=ele.getFirstChild();//name element
                   Node actnm=nameEle.getFirstChild();//customer
                   String clname=actnm.getNodeValue();
             }//for
         }//if               
    }//classcan anyone figure out the problem...thanx in advance

    you are right...its taking empty tag...i tried doing it some other way but the control is not matching the "if" statement....can you please tell me how do i write code to get the name & usecase element for each actor..
    void findActor()
         Element ele=null;     
         NodeList nl1 = dom.getElementsByTagName("actor"); //all actor tags in XML
         if(nl1 != null && nl1.getLength() > 0)
             for(int i = 0 ; i < nl1.getLength();i++)
                   //get each actor element
                   ele = (Element)nl1.item(i);
                   for(Node child=ele.getFirstChild();child!=null;child=child.getNextSibling())
              if(child.equals("name"))
              { System.out.println("got it");
                   break;
             }//for i loop
         }//if               
    }

  • Having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    having problems opening a pdf file with reader 10/11 get error msg cannot open close reader and try again any ideas

    Hi George ,
    Is it happening with all the PDF' or any specific one?
    Could you please share the error message so that we can replicate at our end ?
    Try repairing reader  once and see if that fixes the issue.
    Launch Reader>Navigate to Help>Repair Adobe Reader Installation
    Regards
    Sukrit Dhingra

  • I meet a lot of 3G signal when a call signal disappears 3G! I read the manuals and anything I find the problem! I do so with other brands and other cell does not, the same goes when I receive a call!

    I meet a lot of 3G signal when a call signal disappears 3G! I read the manuals and anything I find the problem! I do so with other brands and other cell does not, the same goes when I receive a call!

    Who is your carrier?  Are you actually on 3G?
    Do you have 3G turned on or off?  Settings > General > Network > Enable 3G

  • I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly.

    I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.

    Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your  kind assistance.

  • Hi im having problems with my internet and email ive reset the network even with my wifi on ive also turned off and on airplane mode help please thank you

    hi im having problems with my internet and email Ive reset the network even with my WiFi on Ive also turned off and on airplane mode help please thank you

    hi Ive reset my network toggled the airplane on and off and turned off my carrier off then turned my phone off and turned my carrier back on but still problem persists

Maybe you are looking for

  • Strange issue when scaling text

    Hi, I'm using inDesign CS6 and there's a strange issue when rescaling a text with overflow to 200%: As you can see, the fourth paragraph doesn't change its font size, even if it has exactly the same configuration. This happens apparently randomly to

  • Adding shutterfly upload software changed the defaul mail program in iPhoto

    I recently added the shutterfly upload software for iPhoto and in the process, it changed my default email program in iPhoto from Mail to some new microsoft program. I went into preferences to change back, but now Mail is greyed out and not an option

  • Configure SPNEGO [keytab]

    Hi, While configuring the SPNEGO [Add new realm by principal], getting the below error "Error during generation of encryption key with type AES256-CTS-HMAC-SHA1-96: Illegal key size. Check the crypto policy file in use and also SAP Note 1240081" we a

  • How do I redownload adobe creative suite design standard

    I purchased Adobe Creative suite CS6 from the apple store in 2012. Came in a box with a disc and a card with the series number. However recently my macbook had a fault and had to be wiped and restored to factory settings meaning my programmes were un

  • Problems with GUI...

    I have written a simple Application... If I break the JFrame and JPanel into 2 different classes Everything is normal when I launch the Application at console.... But if I launch the Application with Java Web Start.. I just saw a blank window appeari