Setting output pin to high while counter counts edges - 660x

Traditional DAQ allowed you to set the output of a counter while it counted, is there an equivalent for daqmx?  The counter output for our current setup spins a motor until the counter reaches the proper number of counted edges from another pulse generator on the board. Perhaps I need to reconsider the setup, but there should be a method to do this action.  I was only able to find an indicator of the output state in the Channel property nodes. Any ideas? Thanks.

Hello Roth,
An event is thrown whenever a counter reaches its terminal count, and you should be able to use that to your advantage here.  Once that terminal count is reached, you can use DAQmx properties to set the counter to output a pulse or toggle the line.  If you use this property in conjunction with the initial count property, you can have the counter cound X number of edges and then toggle the output line:
I hope this helps!
Thanks,
Justin M.
National Instruments
Message Edited by Justin M. on 06-12-2006 01:05 PM
Attachments:
Terminal Count Toggle.JPG ‏11 KB

Similar Messages

  • Counter Output Pin on PCI-6229

    I am using NI-DAQmx 7.3 C API with (among others) a PCI-6229.
    I have used DAQmxSetCOPulseTerm() to connect a counter output to a terminal other than the default. It seems to work- the output pulses do, in fact, appear at PFI 6 (the terminal I'm using for testing). But the pulses continue to appear at the default output pin as well.
    Is that expected?
    In order to reverse the situation, I used DAQmxResetCOPulseTerm() just before calling DAQmxClearTask(). The function returns zero, but if I subsequently make a new task to do pulse output from the same counter, pulses appear at both PFI 6 and at the default pin.
    Am I missing something?
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

    Salvador Santolucito wrote:
    Hi John,
    I would suggest using the DAQmxTristateOutputTerminal. I have tried what you are doing in LabVIEW and I'm seeing the exact same results. When I set the default pin to tristate, the counter output does not show up on it.
    -Sal
    Thanks for trying it and confirming what I saw, and thanks for the pointer to DAQmxTristateOutputTerminal.
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • CDAQ module for high speed pulse counting

    I need to know a USB module which can be used for pulse counting. The pulses are generated from an encoder attached with an stepper motor. It generates 15 pulses per step.Pulse amplitude is 0 to 5V. I am using a compact DAQ system (ni 9178).

    The counters are on the cDAQ chassis backplane (there are 4 of them on the 9178).  So, in order to use an external signal with the counters you would need a way to route the signal to the backplane.  Your available options are:
    1.  Any digital I/O module with 8 or less lines on it (some modules are input-only or output-only--input modules can be used for counter input tasks only, output modules can be used for counter output tasks only).  Modules with over 8 lines transfer the data serially to the chassis backplane and so do not support routing signals through to the counters.
    2.  The 2 PFI lines on the 9178 (I should have mentioned this earlier, this might be a good option for you to route your encoder pulses without having to purchase an additional module if you only need 2 inputs--that is, no Z index signal).  The bandwidth on the chassis PFI lines is lower than that of the 9401 and 9402, I believe the chassis PFI lines should take signals up to ~1 MHz.
    3.  An analog module with triggering capabilities (at this time only the 9205 and 9206) can route a digital signal (the 9205 and 9206 have a PFI line) or an "analog comparison event" (see my post here) to the counter terminals.
    In case 1 above, you configure this by selecting the counter using the module's name (e.g. "cDAQ1Mod2/ctr0").  Default input terminals will be used (check the device pinouts for your module in Measurement and Automation Explorer) or you can select which terminals to use for your inputs using a DAQmx channel property node.
    In cases 2 and 3, you would need to select the counter as the internal backplane counter (e.g. "cDAQ1/_ctr0").  You will need to select which terminal your signal is coming from (since the internal backplane counter does not have default terminals.  This same method can be used to count internal signals (e.g. sample clocks, counter outputs, etc.) without having to use any of the 3 routing options mentioned above.
    Best Regards,
    John Passiak

  • Hello, I would like to produce 2 different pulse trains on the CTRo and CTR1 output pins.

    (DAQ-CARD E6024 PCMCIA)I have the 2 output pins monitored on my scope, when CTR0 puts out a pulse train, CTR1 goes high. When CTR1 puts out a pulse train CTR0 goes high. Also, the pulses are interleaved with each other. Is there a way to make then start at the same time
    Attachments:
    Stim_Output_pulses_CTR_0,1.vi ‏94 KB

    Hello Zoltan,
    I would suggest using the counter gates to synchronize the counters. You will need to externally run a wire from one of the DIO lines you're not using to one of the counters' gates. When the counter gate is high, the pulse train will be generated on each counter. Both counters will need to use the same PFI line as the gate.
    There is an example program that ships with LabVIEW 7 called "Gen Dig Pulse Train-Continuous-Pause Trigger" for DAQmx. This demonstrates how to configure the counter to only generate the pulse train when the gate is high.
    With this configuration, you could synchronize the counters by writing to the DIO line which is wired to one of the counter gates when you're ready to start the pulse train generation.
    Hope t
    his helps.
    Kristi Hummel
    Applications Engineer
    National Instruments

  • Doing Buffered Event count by using Count Buffered Edges.vi, what is the max buffer size allowed?

    I'm currently using Count Buffered Edges.vi to do Buffered Event count with the following settings,
    Source : Internal timebase, 100Khz, 10usec for each count
    gate : use the function generator to send in a 50Hz signal(for testing purpose only). Period of 0.02sec
    the max internal buffer size that i can allocate is only about 100~300. Whenever i change both the internal buffer size and counts to read to a higher value, this vi don't seem to function well. I need to have a buffer size of at least 2000.
    1. is it possible to have a buffer size of 2000? what is the problem causing the wrong counter value?
    2. also note that the size of max internal buffer varies w
    ith the frequency of signal sent to the gate, why is this so? eg: buffer size get smaller as frequency decrease.
    3. i'll get funny response and counter value when both the internal buffer size and counts to read are not set to the same. Why is this so? is it a must to set both value the same?
    thks and best regards
    lyn

    Hi,
    I have tried the same example, and used a 100Hz signal on the gate. I increased the buffer size to 2000 and I did not get any errors. The buffer size does not get smaller when increasing the frequency of the gate signal; simply, the number of counts gets smaller when the gate frequency becomes larger. The buffer size must be able to contain the number of counts you want to read, otherwise, the VI might not function correctly.
    Regards,
    RamziH.

  • How do I set a PFI to High on a 6602 Board with DAQ Traditional

    Dear All,
    I am using LabVIEW 8.5 on 32-bit Windows XP with an NI 6602 DAQ board. In the past I've used DAQmx but for compatability with older software I need to do a few simple things using Traditional DAQ, which I have never used. Specifically I would like to make a simple VI that sets PFI 5 to high when the user presses a button and then low when they press the button a second time. How do I set PFI 5 for output and then write true to it?
    Thanks,
    Ed
    Solved!
    Go to Solution.

    Dear All,
    Apparently its as simple as using the Write to Digital Line VI. However, the non obvious thing is the port width of the 6602 board is 32 not the default 8. Buried in the LabVIEW help files is a list of physical port widths that one must stumble upon. Like the bat cave. In the attached image of the super simple VI I've made the 16 refers to PFI 16. Good to know.
    Best,
    Ed
    Attachments:
    write_low.JPG ‏5 KB

  • Counter counts twice as many edges as it should, but correct frequency. Why?

    Hi everyone,
    I am using a PCI 6122 (S Series, DAQ-STC) and Labview 7.1 on a Windows XP.  There are only two counters on this card (Ctr 0 and Ctr 1) and I need to use both of them to count edges.  While testing the counters, I am inputing a TTL signal of 10kHz to the Gate of each counter, to be used as an external sample clock, and a 20Hz TTL signal into the Source of each counter, to be used as the input signal.  Ctr 0 counts 40 edges per second, i.e. twice as many as it should, while Ctr 1 is reading the correct number of edges, i.e. 20 edges per second.
    The strange thing is that when I switch the connections of Gate and Source for both counters to measure the frequency (or period), both counters read the correct frequency, i.e. 20Hz.  To the best of my knowledge, both counters were reading the
    correct number of edges a couple of weeks ago.  Also, I have reset the
    device several times but it does not make a difference.  I am trying to figure out why this is happening and how to fix it, but I am no closer to answering either question.  Does anyone have any suggestions?
    Thanks.
    Solved!
    Go to Solution.

    After many tests on my own and after speaking with a NI engineer and repeating some tests over the phone, it seems like there is something wrong with the (one) counter on the board.  I have sent it back for repairs (thankfully, it was still under warranty . 
    Message Edited by DanceWiz on 09-15-2009 09:58 AM

  • Having count- count(count(1))

    I have two queries below- first of which outputs one record, the Second query doesn't.
    Can you explain why First query returns always records, at least one record? In explanation, can you say which process is runned after which (something like where is runned firstly, then group by, then...)?
    --First:
    select count(count(1)) from dual
    where 1=2
    group by dummy
    having count(dummy) > 0;--1 row, value: 0
    --Second:
    select count(1) from dual
    where 1=2
    group by dummy
    having count(dummy) > 0;--0 rows

    Hi,
    Aggregate queries with nested aggregate functions (such as "COUNT (COUNT (1))") always return exactly 1 row, even if there are no rows in the table (or, as in your first example, no rows survive the WHERE clause).
    The outer layer of nested aggreate functions is evaluated after the GROUP BY and HAVING clauses have been applied.
    If you have a GROUP BY clause, but no nested aggregate fucntions, then the output contains one row for every distinct group, subject to the WHERE- and HAVING clauses. In your second example, no rows are left after the WHERE clause, so there will be no rows in the output.
    You can think of things as happening in this order
    (1) WHERE
    (2) GROUP BY
    (3) (inner) aggregate fucntions
    (4) HAVING
    (5) Nested aggregate functions
    The optimizer may not actually follow the steps above, but you won't notice that.
    Edited by: Frank Kulash on Mar 25, 2010 11:51 AM
    The following thread may help you:
    Re: group function

  • Le noeud de méthode "Set Output Enable"

    Bonjour,
    J'ai un NI cRIO 9074 avec un module NI TTL High-Speed Digital input/output 9401et je veux savoir si c'est possible d'utiliser un noeud de méthode "Set Output Enable" et comment le configurer car j'arrive pas a trouver la configuracion pour cette option et j'ai le besoin pour finir mon projet.
    Merci
    hello,
    I have a NI cRIO 9074 with NI High-Speed Digital TTL input / output unit 9401et I want to know if it is possible to use a method node "Set Output Enable" and how to configure it because I can not have find configuracion for this option and I need to finish my project.
    Thank you

    Bonjour ,,
    Cette question a déja été posée sur notre forum,
    http://forums.ni.com/t5/LabVIEW/How-do-you-configure-a-cRIO-9401-for-output/td-p/365842
    Je vous souhaite une bonne journée,
    Cordialement,
    Sabri JATLAOUI - Certified LabVIEW Developer

  • Can i Count digital edges with all three channels on a 9421 cDAQ

    Hi!
    We have just purchased a Compact DAQ with NI 9203, NI 9217 and a digital card 9421. In the application for which these parts have been purchased I want to measure flow, power, pressure, temperature and water and energy consumption of a sterilizer. I have connected the flowmeters, and pressuremeters to the analog current card 9203, the RTD termomters to the 9217 and three digital pulse outputs from two flowmeters and a poweranalyser to the 9421 card. I have configured the analog inputs on 9203 and 9217 to my satidafction. But now to my question. I want to configure VI to count the digital edges from the three channels in the 9421. I know that the card only has two counters but since my pulses only has a frequency of approximately 1 Hz I believe that i in some way should be possible to count the edges with a regular digital input channel as well.
    I know I have signal from all three pulse outputs to the 9421 card, since I have tested this in the Measuremnet & Automation explorer.
    Do I need to add an extra DAQ-assistant to be able to acquire the digital signal parallell to the analog signals from the two other cards?
    And is it possible to count the edges of mylow frequency on say for example channel di0, di1 and di2 as i wish and not only on di0 and di5 which I think are the counter-channels?
    Do i need to put the 9421 card in one particular slot on my cDAQ-station, this I also ask since my pulses frequnency is low and I don´t now if i really need to use the counter on slot 5-6 to count my pulses?
    Attachments:
    Measurementbench.vi ‏143 KB

    Hi Gravy Train,
    I'm curious about why you are using 2 loops.   You mentioned one is for monitoring and one is for DAQ....what do you mean by that?   What is the overall goal of this piece of code.   Also, I noticed that you are not closing the task.   Since this is just a subset, I realize you could be closing it in your actual code, but just in case you're not.....it is very important that you close all tasks when you are down acquiring data.
    Best Regards,
    Starla T  

  • Not able to set Weblogic Runtime on eclipse while adding new weblogic srvr

    Hi Everyone,
    I downloaded Oracle Integration pack for eclipse by clicking at "Download additional server adapters". I am not able to set Weblogic Runtime on eclipse while adding new weblogic server.
    I am trying to give following values:
    Name :Oracle WebLogic Server 10gR3 (2)
    Weblogic home :C:\bea\wlserver_10.3
    Java home: C:\bea\jrockit_160_05
    Below it I am getting "No applicable extension found" and finish button is greyed out.
    Please help in telling what is wrong. Never faced such an issue.
    Thanks
    SM

    I found this problem too.
    OS:windows7、eclipse:helios、oepe:Part of Oracle Enterprise Pack for Eclipse 11.1.1.7.3
    <workspace>\.metadata\.log:
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: enter_new_hit_count in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: exception_occurred_setting_bp_properties in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: hit_count_must_be_positive in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: no_description_provided in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: scripts in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: select_javascript_file in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: set_bp_hit_count in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: suspend_target in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: suspend_thread in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    !ENTRY org.eclipse.osgi 2 1 2012-06-05 00:16:06.357
    !MESSAGE NLS unused message: the_argument_0_is_not_valid in: org.eclipse.wst.jsdt.debug.internal.ui.messages
    I tried the weblogic 10.3.1、10.3.3、10.3.4、10.3.5 still show the info that "No applicable extension found" and finish button is greyed out.
    What is the reason?
    thanks!

  • How to make the counter count or start at different time

    Hi,
    How to let the counter count the time, that doesn't start at the same time ?
    This timing system is a sport timing system for canoe competition, it need to track 6 competitor that start at different time .
    I have a problem , I have 6 counter in a VI that use to track 6 competitor, but it start count at the same time, how to make it count separately for each competitor ?
    Do you guys know how to solve this problem ?
    Solved!
    Go to Solution.
    Attachments:
    multi competitor.zip ‏50 KB

    HI, 
    ya, i run it. I mean i know how to make it to 6 competitor already , and yes, it works but the time, it still count or start at the same time. I  need to run each competitor at different time , like this competitor A 20-2-2012.VI . This is the one i do but it cant put a stop button. once i put a stop button, the clock stop counting but the whole VI is running.
    Regadrs,
    Sam
    Attachments:
    competitor A 20-2-2012.vi ‏139 KB
    3switch 3-2-2012.vi ‏14 KB

  • Can we set output formats(used in billing)  at the time of project creation

    hi ,
    Can we set output formats(used in billing)  at the time of project creation (Project system)
    Output formats- like e billing format etc.
    Thanks

    Hi
    No .WE CANT

  • How do I set a pin number

    How do I set a pin number

    Settings > General > Passcode Lock
    http://support.apple.com/kb/HT4113

  • Count&Count Distinct

    Hi Gurus,
    In one of OBIEE blogs I studied "Aggregation should only be performed on measure columns, with the possible exception of the aggregation COUNT and Count Distinct"....my Question is what happens if we apply count&count distinct aggregation rules to measures because we are using that in our project,what are problems we will face?

    User wrote:
    you mean it executes a sub query internally to count and later it sum the result..correct.- You can ship the total calculations to the underlying RDBMS if 'Report Based Total' is not ticked, otherwise if it is, the BI Server computes the subtotal.
    and in your answers "No" mean results coming by putting sum in criteria are different ..right- Yes thats what I mean, sorry if unclear - Are your totals correct now? Failing that try 'server complex aggregate' but this is usually only requried if your deriving calculations in Answers (ie % of total etc).

Maybe you are looking for

  • Need urgent help with RAID failure on Graphics server (running OSX10)

    Hey. Here's the deal... Our graphics department has a MAC G4 (fully upgraded. newest patches, OS, etc.) that's got a 4 port SATA RAID controller. They use this with four 750GB hard drives as an external RAID (the OS is on a seperate, 65GB hard drive)

  • How to get CPU status in Java program

    Is there any way by which we can get CPU status in a java program ? Whats the load on the cpu, whats the max it can handle ? and stuff like that. Thanks in advance

  • Error during IMPDP from Client M/c.

    Hi, i am using Edition Release 11.2.0.3.0 of oracle.      I want to import a particular database dump to one of other database and (Note:-i dont have access to the physical database server). I am executing the command from my machine(client m/c) only

  • Can i create pdx programmatically in c# ?

    Can i create pdx programmatically in c# ? If yes, then is it must to use adobe sdk for it ?

  • Proof of Concept for Clustering

              Folks,           I created WebLogic 8.1 cluster with 3 managed servers and it is working great.           How do I explain to the business managers that the clustering works fine? Is there           any sample code or utility available?