SEARCH ARRAY AND COUNT TRANSITION FROM HIGH TO LOW

I have 4 dig inputs.  I want to count the number of times each individual input transitions from high to low and display the count  I attached the vi as v11.  Thanks for any help.
Solved!
Go to Solution.
Attachments:
count.PNG ‏94 KB
9422_Digital_In_mod.vi ‏52 KB

Hello Jootbox,
Are you by any chance using a cDAQ 9181 chassis?
If you are it might be a good idea to use the 4 counters internally available on this chassis.
A simple example about counting edges can be found over here:
https://decibel.ni.com/content/docs/DOC-11412
Kind Regards,
Thierry C - Applications Engineering Specialist Northern European Region - National Instruments
CLD, CTA
If someone helped you, let them know. Mark as solved and/or give a kudo.

Similar Messages

  • Samplerate problem using Analog In and Counter In from a NI 6259 USB. "Counter timeout" setting in DAQmx?!

    Hello,
    I got a fundamental problem with the correlation of the timer settings of the DAQmx driver in DIAdem DAQ. I dont know where the problem is located exactly but maybe someone can help me if I explain what happens:
    In my configuration I use some analog inputs from a USB 6259 with 20kHz samplerate and two counter inputs for frequency measuring via DAQmx in DIAdem DAQ.
    There has to be an extra DAQin block for the analog inputs and the counter inputs with also an extra "Clock"-block for each of them. The clock of the analog inputs runs with 20kHz hardware clock and the other one with 10Hz software clock because the hardware clock mode is not allowed or supported.
    My problem is the display refresh rate in VIEW. If the counter signal has no input (because the measured system is not active) the display seems to wait for any input and doesnt refresh the analog values on screen. If the system is active and a rectangle signal is seen by the counter in, the display refresh rate raises and the frequency value is displayed more or less accurate. Has that something to do with the counter timeout setting in the DAQin driver options block (marked in the attached image)? If i decrease the timeout, the display refresh rate gets better but not as good as without using the counter inputs in my DAQ diagram. I think the counter input is not as easy to handle as the usual analog inputs... I only want to see the measured frequency on the display during the measurement without getting any influence on the analog input channels and their displaying.
    The other problem is the display and the measurement of the frequency itself. If i check the function of the counter input in the Meas. & Automation Explorer the frequency is display correct without any dropouts or something like that. The signal I measure in DIAdem on the other side looks quite bad because there are spikes of some MHz and even more although the measured range is between 20 and 80Hz!
    Has anybody made similar experiences?
    Regards
    S. Zimmer
    Attachments:
    probs.png ‏112 KB

    Hi there,
    it seems that german is your mothertongue, so I'll reply on german.
    Digitale Eingänge müssen Software getaktet werden, da nur analoge Eingänge Hardware-Takt Unterstützung haben!
    Sie können den Hardware-Takt nur mit analogen Eingängen einsetzen, die, von einem Timer gesteuert, gepuffert Werte einlesen können. Digitale Größen verarbeitet der Hardware-Takt nicht.
    Mit dem Hardware-Takt erreichen Sie sehr hohe Abtastraten. DIAdem überträgt die gewünschte Rate und die Kanalliste auf die Karte und startet die Messung. Die Hardware erfasst die Daten selbstständig und sammelt die Daten. Der PC ist nur für den Abtransport und die Weiterverarbeitung verantwortlich.[...]
    Da digitale Signale nicht im Hardware-Takt erfasst werden können, müssen diese Signale parallel in Software-Takten ermittelt werden. Dies kann zu zeitlichen Verschiebungen führen, weil sowohl beim Start der Messung als auch während der Messung keine Synchronisierung der Timer im PC und im Messgerät erfolgen kann. Da zwei Timer nie ganz genau gleichzeitig gestartet werden und auch nie ganz genau gleich schnell laufen, stimmen die Zeiten in den Zeitkanälen nach der Messung nicht genau überein. Üblicherweise betragen die Abweichungen einige Millisekunden.[...]
    Weiters hab ich mal n Versuchsaufbau für die Frequenzmessung gemacht. Ich konnte problemlos Frequenzen messen...
    Am besten du schilderst kurz den Aufbau deiner Messung, was du messen möchtest und wie du den Max konfiguriert hast.
    Mfg Markus

  • How to go about building a app that searches for and displays pages from Google.

    I was wondering how i would go about building an app that takes a users input such as a sentence (not a URL) and then searches  for their input on Google. This app would then have to display a selected page automatically on the UIWebView.
    My existing code in my viewcontroller.m is as follows:
    - (void)viewDidLoad
    [super viewDidLoad]; [webView loadRequest: [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.google.com"]]];
    I now want my app to use a users input (a word or a sentence) and search Google with that input but do it in the background then display the first search result in the UIWebView, what code would i need?
    Thanks

    Sorry, I cant view the App Store Review Guidelines
    https://developer.apple.com/appstore/resources/approval/guidelines.htmllink, maybe its because i dont have a developers account yet i will be getting one when i am ready to launch my app on the app store.

  • Acrobat - Conversion from higher to lower version - Problem & Bizhubs printing problem

    My team developed a form using Acrobat 7.x that will be triggered from a portal - directly routed to a printer. (that is, a user can  print the form directly to the printer just by clicking the form name - no need to open the form).
    The form is getting printed in certain Laser Printers but its not printing in Bizhubs.
    I suspect that the server that routes the form to printer doesnt have acrobat reader and uses Internet explorer as default application to open.  I heard that IE is not much compatible with Acrobat 7.x.
    So I tried to convert the form from Acrobat 7.X to Acrobat 6.X (using the Print option -> Adobe pdf)
    The form gets converted to Acrobat 6.X but the form misses some properties.
    That is, the form holds the Text boxes & text areas in it (in 7.X) when i converted to 6.X all these text boxes are no more.
    Could any one please help me over come these problems?
    1- Why a form that is routed thru server is getting printed in Laser Printers but not in Biz hubs.  (Please note if i open the form in my machine and print directly to any printer it prints.  It fails only when invoked thru portal - inturn thru server)
    2- why conversion to lower version of pdf misses its properties.
    Your timely help is much appreciated.  Thank you so much in Adavance.
    Thanks,
    Aravind Srinivasan.

    This is a good read for anyone attempting to convert a PDF to a Word document...
    http://www.planetpdf.com/enterprise/article.asp?ContentID=PDF-to-Word_Conversion_-_Why_it_ is_so_hard_to_do&gid=7837&fa

  • Import from higher to lower version is possible ?

    Hi,
    One of my production database is in 10.2.0.3 version and development is in 10.2.0.1 version?
    I need to refresh dev database from prod. Export/import is possible in this scenario ?
    Thanks,
    Dasarath

    Cj wrote:
    Export/import is possible in this scenario ?
    Yes. Its possible.
    Use 9i exp/imp to do this.
    ThanksWhy 9i ? :-) I believe this is misleading info :-)
    You will need to use the lower database version executables (in this case 10.2.0.1) to perform the export and import.
    How to Import to lower version database or run network export with exp/imp utilities          (Doc ID 1065604.1)
    Compatibility Matrix for Export And Import Between Different Oracle Versions [Video]          (Doc ID 132904.1)
    HTH
    Srini

  • Just installed, speed from high to low?

    So we just got ours installed a few hours ago, on first test download was 36mb/s and upload was 8mb/s.
    Done a couple more tests and its now sitting on 2-3mb/s download and around 6mb/s upload.
    Any idea when I can expect it to go back to my proper speed? The engineer who tested the line said it himself "you're looking at 40mb here".

    Run the speedtest at  http://speedtest.btwholesale.com/ and after the test choose ‘Further Diagnostics’ and post the speeds and the profiles that this gives.
    Check for incoming telephone wiring to see if there are any junction boxes that come into the wiring before it reaches the master socket and that have extensions wired off them.
    Slightly different advice from Devon_Dave's:  Reboot the router/HomeHub each morning until things are stable.  
    We agree on:  Do NOT touch the modem unless things go seriously wrong.

  • Importing from higher to lower version of oracle database

    I have taken user backup from Oracle 9i database.
    Now I want to import that user into Oracle 8i database.
    Is there any method to do this?

    Always use a version of the EXPORT utility that is equal to the lowest version of either the source or the target database.
    I suggest you to read this:
    Compatibility Matrix for Export & Import Between Different Oracle Versions
         Doc ID:      Note:132904.1      
    ~ Madrid

  • Problem searching array

    I have an array in a column that I extracted from a data file. I want
    to search the array for particular values and return the index which
    is easily implemented by the search 1d array subvi. However, when I
    input the values to search, it returns a -1 for some values and others
    it finds fine where I know all the values exist. To be more precise,
    my array is about 80 values between -2 and 2 in steps of 0.05. When I
    search for -2, -1.5, -1, etc., I get the correct index. When I search
    for other numbers like -1.8, -1.7, -1.85, etc., I get a return value
    of -1. It is really strange and I am not sure of the problem. Anyone
    have any ideas? Does it have anything to do with the precision or how
    I read the spreadsheet file to extract the column?
    T
    hanks
    Heather

    Thanks for all your help. I ended up converting both the search array
    and the search element to strings with 2 decimal point precision and
    it works fine.
    You guys are the best.
    Heather
    [email protected] (H) wrote in message news:<[email protected]>...
    > I have an array in a column that I extracted from a data file. I want
    > to search the array for particular values and return the index which
    > is easily implemented by the search 1d array subvi. However, when I
    > input the values to search, it returns a -1 for some values and others
    > it finds fine where I know all the values exist. To be more precise,
    > my array is about 80 values between -2 and 2 in steps of 0.05. When I
    > search for -2, -1.5, -1, etc., I get the correct index. When I
    search
    > for other numbers like -1.8, -1.7, -1.85, etc., I get a return value
    > of -1. It is really strange and I am not sure of the problem. Anyone
    > have any ideas? Does it have anything to do with the precision or how
    > I read the spreadsheet file to extract the column?
    >
    > Thanks
    > Heather

  • Excel & ActiveX: Insert arbitrary columns from 2D array and create graph problems

    Hi there,
    I want to insert data from either a 1D or 2D array from LabView into Excel and create graphs.
    I used the information from the following example:
    http://www.ni.com/example/28934/en/
    and was able to create a new Excel file (I'm using Excel 2010), writing data from an 1D array to a column in excel by creating a while loop and using the first element of the array to write it to a specific cell. I use the counter of the loop to write to the next cell when the loop starts over and always delete the first value, which I write to the cell, from the array until it is empty.
    Now I also would like to write a 2D array - so the first column in Excel should be the first column from the array and so. Here I cannot use the loop counter directly as Excel only counts 1,2,... for the rows, but uses A,B,... to count columns. Also I do not know in advance how many columns my 2D array will contain, so creating a lookup table like (A means 1, B means 2,...) is not really an option (except there really is no other way). Is there a possibilty to convert numbers into letters or some way to 'explain' to the program that column 2 in the array means column B in Excel for example, or is there a way to insert new columns?
    I figured out how to add new Worksheets and as I also need to create a certain number of Worksheets and I know that on standard 3 sheets are present when creating the file, I use the 'add' methode to create every new worksheets before worksheet 3 - I could use the same methode to create new columns in Excel, but so far I didn't find a methode to do so. Or is there a way to enter the whole 2D array at once?
    Then I'd like to create a graph (in case of the 1D arrays a bar plot, when using 2D arrays a 3D plot) to view the data. I found this example:
    http://www.ni.com/newsletter/51339/en/
    -> as I do not have the toolkit I'd like to do it using ActiveX directly, so I tried to do things like shown under the headline 'DIY ActiveX/.NET'
    I tried to load the snippet to a new Excel file but got the error message 'microsoft.office.interop.excel.dll not found' and hence the code is not working. That confuses me a little as I would guess when this dll is not present I cannot access Excel from LabView at all, though my understanding of what I'm really doing so far is quiet limited. ;-)
    Also - as far as I understand from the snippet - when creating a new chart object I should be able the create methodes for it, however when I do a right click on the chart object of an ActiveX Worksheet symbol there are none listed.
    To explain my problems better I added a snippet showing my two problems: The inner of the two while loops shows how I import a 1D array. In the outer loop I seperate the columns. I know that currently this is not working as all data end up in column A of the Excel sheet - so I would need to convert the number of the outer counter to A, B,... or find a different solution.
    Moreover on the snippet I placed an ActiveX Worksheet Property with the Chart Object - as I can see the difference to the Chart Object in the example code from the last link above is the color. However I'm not sure what that means and how to change/ solve this.
    And just to make sure - I know this way the VI does not run as the Chart Object is placed completely wrong - I just did it, so it is included in the snippet.
    I'd be thankful for any suggestions,
    Thanks!
    Solved!
    Go to Solution.
    Attachments:
    ExcelAreaScan.png ‏60 KB

    Hello everyone and thanks for the answers.
    I only have the LabView Student Edition available here - is the toolkit included in it too. How can I check if it is installed/ available and in case it is installed - where can I find it?
    Today I had time to take a look at the example
    Create via ActiveX Labview a XY Scatter plot graph on an excel sheet
    It almost does what I want in terms of creating a graph. The only problem I could not fix, is that in this example a sheet is created where only the graph is present. i'd like to add the graph to a previously created worksheet. Today I tried get this working but it seems I stilll don't really understand what I'm doing, I'll post a snippet of my code as soon as I can access the PC with LabView on it again.
    I also took a look at the other example for inserting 2D attays - it seems to be what I need, I just had no time so far to test it, I'll post an update when I could test it.
    Thanks for the help so far!

  • How to count records from 2 tables and show in RDLC Report

    hi all,
    its being a one day searching for the solution but No Luck.
     I have two SQL tables tblstudetail and tblfeereceiptdetail.
    i just want to count records from both tables and show in RDLC report.
    I tried SQl Query Like This:
    select a.session, a.course,
    Count(CASE a.ADstatus WHEN 'OK' THEN 1 ELSE 0 END ) AS Admission,
    Count(CASE s .I_receiptstatus WHEN 'OK' THEN 1 ELSE 0 END) AS Feeprint
    from
    tblstudetail a
    FULL join
    tblfeereceiptdetail s on s.studentID = a.studentID
    where a.session = '2015' AND s.Fsession = '2015' AND a.adcat = 'Regular'
    GROUP BY a.session,a.course
    ORDER by a.course
    The result Show the Same Value in Both columns
    Session    Course      Admission       FeeDetail
    2015          B.A. I               275              275
    2015          B.A. II              307             307
    2015         B.A. III             255            255
    2015          B.Sc. I             110             110
    2015           B.Sc. II           105            105
    2015          B.Sc. III            64               64
    Actully I want to Count How many ADMISSION have been Taken(FROM tblstudetail) and How many FEE RECEIPT have been Print (From tblfeereceiptdetail).
    please guide me for this as soon as possible.
    thanks in advance...

    I am counting 'OK' in both the table columns I.e 'ADstatus' in tblstudetail and 'feereceiptstatus' in tblfeereceiptdetail
    please suggest me

  • Search given string array and replace with another string array using Regex

    Hi All,
    I want to search the given string array and replace with another string array using regex in java
    for example,
    String news = "If you wish to search for any of these characters, they must be preceded by the character to be interpreted"
    String fromValue[] = {"you", "search", "for", "any"}
    String toValue[] = {"me", "dont search", "never", "trip"}
    so the string "you" needs to be converted to "me" i.e you --> me. Similarly
    you --> me
    search --> don't search
    for --> never
    any --> trip
    I want a SINGLE Regular Expression with search and replaces and returns a SINGLE String after replacing all.
    I don't like to iterate one by one and applying regex for each from and to value. Instead i want to iterate the array and form a SINGLE Regulare expression and use to replace the contents of the Entire String.
    One Single regular expression which matches the pattern and solve the issue.
    the output should be as:
    If me wish to don't search never trip etc...,
    Please help me to resolve this.
    Thanks In Advance,
    Kathir

    As stated, no, it can't be done. But that doesn't mean you have to make a separate pass over the input for each word you want to replace. You can employ a regex that matches any word, then use the lower-level Matcher methods to replace the word or not depending on what was matched. Here's an example: import java.util.*;
    import java.util.regex.*;
    public class Test
      static final List<String> oldWords =
          Arrays.asList("you", "search", "for", "any");
      static final List<String> newWords =
          Arrays.asList("me", "dont search", "never", "trip");
      public static void main(String[] args) throws Exception
        String str = "If you wish to search for any of these characters, "
            + "they must be preceded by the character to be interpreted";
        System.out.println(doReplace(str));
      public static String doReplace(String str)
        Pattern p = Pattern.compile("\\b\\w+\\b");
        Matcher m = p.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (m.find())
          int pos = oldWords.indexOf(m.group());
          if (pos > -1)
            m.appendReplacement(sb, "");
            sb.append(newWords.get(pos));
        m.appendTail(sb);
        return sb.toString();
    } This is just a demonstration of the technique; a real-world solution would require a more complicated regex, and I would probably use a Map instead of the two Lists (or arrays).

  • When I am using the browser for a while and try to use ANY search bar and hit the "search" button it does a whopping NOTHING is there anyway of keeping this from happening?

    Whenever I am using Firefox mobile - either regular, beta or aurora and go to search for something like through the Google search page and attempt to search for something the search bar does nothing and hitting the enter button instead doesn't do anything either. Is there a way to keep this from happening?

    Hi and thanks to not leaving the firefox user alone.
    Cor-el your answer is right as the madperson is and I already knew all these
    answer and I said that before I don’t use any antivirus and I always turn off my firewall from the moment I installed my Windows.
    I even turn off any automatic update for any of my software and I never let any unknown plugins or any thing like that be install without informing me. And if you know some things like Offline Storage and cookies must be to much more than usual and you have to clear them and delete them and I know so much more
    And if you want to know it fixed now. But I don’t know how?
    For understanding my problem read and research about Ixplorer.exe virus it is the same problem about the speed but the different is it doesn’t show any process in task manager like Ixplorer.exe virus
    Bt I have done some things but still I don’t know that’s why it is fixed or not
    First: I searched my system and removed any files have been crated on my system from two days ago since the problem happened.
    And then I used to go about the article in this page and did like this:
    http://answers.yahoo.com/question/index?qid=20080910101846AAazxN5
    but still I don’t know any thing about the problem.
    I can do so many things to fix but I am just curios if that is a virus why it just cut the speed when I am using the browser.
    Please if any one found the reason send me your information I like to know it will improve my knowledge however my problem is solved fro now.

  • How can I change the default Google search engine in Firefox 8 from google.fr to google.co.uk? Yes, I live in France with a French ISP, but English is my mother tongue and I want UK based responses.

    How can I change the default Google search engine in Firefox 8 from google.fr to google.co.uk? Yes, I live in France with a French ISP, but English is my mother tongue and I want UK based responses.
    I'm using XP Pro.

    You can find search engines on the Mycroft Project website.
    * http://mycroft.mozdev.org/
    * http://mycroft.mozdev.org/google-search-plugins.html

  • How can I get rid of "History and Bookmarks" section from the search history drop down menu in safari 6.0.2?

    Let's just say I have saved bookmarks of things that i do NOT want my friends to see when they use my computer occasionally. I know they could go and find these bookmarks anyway in the bookmarks menu but they dont snoop around my computer. i would rather it not just pop up when they go to search for something or type in a webpage. If there is no way to customize what shows up in the drop down menu for search results then that is something apple overlooked. Not everybody wants things all in one place. Whats the point of deleting search history and website history if its just going to show the certain things you have bookmarked? Any solution to this would be appreciated. One solution i thought would work was disabling search from suggesting, but i guess that only supresses the webpages not the url/search bar. Oh and this is for safari 6.0.2 please dont give me outdated advice.
    Thanks

    Activate the Guest account for your friends and keep your account for yourself.

  • I have .me and .mac email accounts on my iPhone 4. I thought I had successfully transitioned from MobileMe to iCloud, but something must be wrong. iCloud seems to work fine on my computer and, with the exception of two email accounts, seems to be fine on

    I have .me and .mac email accounts on my iPhone 4. I thought I had successfully transitioned from MobileMe to iCloud, but something must be wrong. iCloud seems to work fine on my computer and, with the exception of two email accounts, seems to be fine on my phone. Can/should I delete the accounts on my phone and start over? It is somewhat of a nuisance to have two email accounts and double the amount of emails. The only thing different about the two iCloud accounts is the email addresses. Thanks.

    Well, seems I managed to unscrew this...I deleted my iCloud mail account and reinstalled it on my phone. That got rid of the duplicate .me/.mac email accounts.

Maybe you are looking for

  • Database connection error | created a new datasource | web application

    Hi, I am trying to deploy a J2EE web application on SAP Netweaver 7.0. I have to connect to a Oracle database schema (Not the default schema used by SAP). I am using Java and JDBC to make connections to the database. In order to accomplish this, I cr

  • Revised product name: "Oracle GlassFish Enterprise Message Queue"

    Hello, the release notes for OpenMQ 4.5 build 16 include a note about a revised product name, "Oracle GlassFish Enterprise Message Queue". Is this planned to be the future product name for the commercial product (the product formerly known as Java Sy

  • Dock disappears when i hover the mouse on it

    Brand new 27" iMac, the dock dissapears when I hover mouse over it, making it impossible to open apps. I have to open via mission control...any ideas folks??

  • Magazines

    I don't have an iPad yet (I'm waiting for 2nd generation). But one thing I do want to do when I get one is subscribe to some magazines. Specifically National Geographic and some photography magazines. Currently the only digital subscription to NatGeo

  • X-Fi I/O Drive ca

    Hi I just got a X-FI Platinum. My computer case is modded and i have uv sensiti've cables inside with cold cathodes. Well the cable coming with the X-Fi to plug the I/O Dri've is ugly. So i wonder can i use a normal IDE cable to plug it ? Please answ