Synchronization of two inputs frequency meter with several analog inputs

Hi all

I'm relatively new to LabVIEW and I'm trying to collect data from multiple sources with calendar sync on the acquisition, but I can't understand. My problem is that I have two inputs frequency meter, an optical tachometer reading one pulse per revolution and a max flow meter machines with a 12000 k coefficient. I can't find a way to synchronize the calendar with my multiple analog inputs. I tried to first get the speedometer to synchronize with the analog inputs following the example linked here. (https://decibel.ni.com/content/docs/DOC-10785) So far every time I run it I get an error on the DAQmx read timeout or an error "several sample clock pulses have been detected" (see image).  It seems if I slow the way to down to say 10 hz and make sampling rate ensure that the tachometer signal is more than 800-1000 rpm (13-17 Hz) before starting the VI then the program will run without error until the ROTATION speed is below this threshold, then the "sample Multiple clock pulses" error occurs.  The code is attached below.

Does anyone know of a better way to synchronize the entries of frequency of the counter with analog inputs?  I would like to have a VI that can display 0 RPM (and possibly 0 flow as well, but I think I need to understand the timing of a meter before I have add another, because it seems that I can't have two counters to the same task). Any help on this would be greatly appreciated.

LabVIEW version 13.0

Chassis cDAQ-9178 with NI 9401 for both counter inputs and NI 9205 for the analog inputs.

Thank you!

Richard

I know the error requires to restart the task at least (this particular error puts the material in a State that cannot be recovered from during execution of the task - I've been down this road before) but I'm surprised that you would have to delete and re-create the task altogether.  And then I had to do this to workaround other questions in the past.  It is awkward and should be considered a bug, if this is indeed the behavior.

Honestly, regardless of this bug, the way the material dealing with the situation of several sample clock edges makes measures of sampling frequency clocked essentially unusable for purposes of synchronization (in my opinion anyway) If you encounter a more slow than your sample clock rate.  You are supposed to be "synchronization" of the measure, but it really no longer applies if you have to restart the task over and over again (if you must delete it or not).

Workarounds can get kind of creation (which isn't really a good thing).  For example, you can configure a measure of implicit frequency to keep a buffer of frequencies and use a leader board task (source is the frequency signal, sample clock is the sample clock HAVE) to establish a correlation between the index of your buffer of frequency for singing HAVE sample clock.

Best regards

Tags: NI Software

Similar Questions

  • You can synchronize digital input with an analog input on a 6034e?

    Is there a way to synchronize the digital input and analog input on a 6043e?

    I tried the test application "SyncAI_ReadDigChan", but it fails during the humor tick Verify():

    "The requested value is not supported for this property value.

    Property: NationalInstruments.DAQmx.Timing.SampleTimingType

    You asked: NationalInstruments.DAQmx.SampleTimingType.SampleClock

    "You can select: NationalInstruments.DAQmx.SampleTimingType.OnDemand.

    I'm currently collecting analog input data for the duration of a digital input pulse.

    Thanks for any help.

    Joe

    No, you can't.

    The problem with E-Series cards, is that they have just static DIOs, so you cannot have their clock.

    You would need a M-series card for that where you have correlated DIOs.

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

  • Shortcut for the new window with several tabs

    Is it possible to have a shortcut on the desktop to launch a new window with several tabs? For example - home page is set to "www.google.com", but the shortcut opens new window with tabs "www.cnn.com" and "www.youtube.com".

    Then far,.../firefox.exe-nouveau-fenetre followed by the two URL in quotes will open two new windows. Entry - new-window "www.cnn.com" - new-tab 'www.youtube.com' will open two new windows if no instance of firefox is open, but if another window is already open, youtube will add a tab to the already open window, rather than the new window with cnn.com

    In reply to myself... withdrawal-order new window (and-new-tab), now it works.

    Looks like I'm too complicated it.

    shortened final was "C:\Program Files (x 86) \Mozilla ' 'url1'"url2.

  • Functions defined by the user with several parameters

    I set features three following user using "Define."

    UF1 takes a single patameter;

    UF2 takes two parameters;

    and UFX takes two parameters - with the second is 'X' in the definition.

    Œuvres F1.  F2 is the EVAL of F1 version and it works too.  User functions only seem to work fine.

    F3, a function of two user settings, produces a graph of NaN.

    F4 is the EVAL of F3 version.  Note that 'B 'is not replaced by 1'.  Also produces a NaN chart.

    F5 produces a graph of NaN.

    F6 is EVAL of F5.  The 'X' is not replaced (even with the ' B' above), and even if it looks like 'X * X', it also produces a graph of NaN.

    Is it possible to get defined by the user, with several parameters, features work by tracing the curve?

    Hi!, Fortin:

    If you download and install the ultimate Firmware with the version of the software: 2015 6 17 (8151), with the number of Version: 1.1.2 - 11, you can trace your examples of definition of the function, with curves and values, without NaN.

  • WiFi HP ENVY 4500 with several Access Points - same SSIS Configuration

    Hello

    We just got a HP ENVY 4500.  I have a main homenetwork with a wifi Modem/Router and an old router acting as an Access Point to the floor to extend coverage.

    Both have the same SSID and password and are set to different channels.

    My HP ENVY 4500 fails to connect when the Access Point is lit.

    It will connect with it.

    Once connected, I can turn on the PA and all is well.

    The two router an AP using WPA-PSK/WPA2-PSK encriptación

    The router (that it connects to) should have a better sgnal when both are on, so I do not understand why they need the AP to be turned off to connect.

    Any thoughts people?

    Eserim

    I think he has always had problems with several access points.  Try this, what ever AP is closest to the printer, set it to channel 1.  Then try channel 11.  Try now.

  • Slide with several digital poster Down filter event Bug button?

    A key event filter on a slide with several digital screens down does not work as expected when not waived. If you for example tab of this slide with two digital screens digital display, the cursor remains on his position, rather than get KeyFocus to the next control. Same behavior at fault if you want to move the cursor on the left/right keyboard, nothing happens. Anyone an idea why?

    A simulation of that VI is attached. All other controls, a Slide with a digital display or a standard digital control, the key Down event filter behaves as expected... I tested in versions 8.5.1 LV (attachment), LV2012SP1 and LV2013.

    A teammate now found a solution or workaround. We do not know if this is the way it should be, if yes, then it's a bit hidden, but it works!

    It seems that the cursor needs to know on what digital display the FocusObj is when you use the event notifier KeyDown. Then, when to get the reference of the digital display active and the wiring of this reference to the terminal FocusObj filter event everything works as expected, numbers of tabs, typed, cursor etc and have to filter and notify events structure to the event.

    A vi and a printscreen are attached.

    The question is probably due to the specialty of slides and the class NumericWithScale in general, as its digital displays are a little under References and during the implementation of the features of event KeyDown for the class NumericWithScale filter, LV simply does not know on which side of the main action control part must be executed.

    Or someone has a better solution and explanation?

  • problem with several graph XY axes

    Hallo,

    I'm tracing different variables in the same plot with several axes. I have the following problem (see attachment)

    the y axis secondary on the right side of the plot has a large area of him and one of the other secondary axis falls right above others. I tried it in the two labview 8.2 and 8.5 with the same results.

    any ideas?

    Thank you in advance,

    Thodoros

    Try the following movements:

    Right-click-> popup menu-> advanced-> reset scale layout

  • I'm stuck with several GB of music files on my phone and I can't get down them!

    The other day I tried to install an application on my phone, but I didn't have enough memory.  My phone is full of music via iTunes synchronisation dock. So I connected it to my computer to try to make some more room. But there is a problem.

    (1) Apple does not play nice with Palm. Synchronization is no longer permissible or possible. I can't use iTunes to manage/delete music.

    (2) in USB Mode, there is no way to access/view the library. It's just not there.

    I tried Palm support, and they confirmed that the USB Mode is not working. I guess that the library is located in a hidden folder or directory. They suggested that I downgrade my iTunes. Goal that is unacceptable to me because one) it forces me to break the license Apple, b) it is not taken in charge, and c) if there is still a remote chance it will mess up my iTunes library, I won't.

    I'm ready to get off at Palm headquarters and throw my phone to their building.

    Can someone tell me how to delete my library without hacking iTunes?

    I thought about it. Support, put this in your KB. Everyone who was sync via iTunes on a Mac is currently STUCK with several GB of music on their phone that they cannot manage or remove, which makes the Palm Pre a lot less useful than announced.

    USB mode is a waste of time for people on a Mac. These hidden files are never going to be visible, and the library cannot be removed. The solution: go through a PC. Anywhere, any PC will do. Connect your phone to the PC, go to the USB drive Mode and show hidden files, then delete them from there.

    I got an old laptop lying around at the bottom, and the problem was solved lickety split.

  • Synchronization of the Windows 8 calendar with Android phone

    I have a laptop Windows 8 and an Android phone and seeks to find a way to sync calendars between them. I am not too restless on the use of any particular calendar system, but just want to have the same info on the two and be able to change both.

    I spent hours searching for a solution online and not had much luck. I just need to be able to synchronize the calendar on Windows 8 with google calendar app (if anyone has found a solution that works really...), a Windows Calendar app that can sync with a google account or an Android app that can sync with one account Windows (hotmail) or a third-party calendar that can synchronize with both...

    Any ideas much appreciated!

    (Of course I realize, I could just use google calendar online in the browser, but I would prefer something installed on your computer in order to notifications etc...)

    No problem, the field to Hotmail can be left empty.  The address of the server is m.hotmail.com.

  • Help the records removed from synchronization between two databases

    Hi guys,.

    I am new SOA and process management, so please bear with me.

    I created composite simple synchronization using two Dbadapters. A DbAdapter to share records and others to insert and update data in another database. My question is how can I detect deletions and delete records in another database.

    One of my friends told me to use DB triggers, but I want to do with SOA application using preferably the BPEL components.

    Any help would be useful.

    Thank you

    You can query the database if records are soft deletion, survey in the soft deleted records and then update the database target.

    If these are harsh destruction then the only thing I can think is: -.

    Source database: select * from source

    Target database: delete all records

    Target database: insert the records from the source.

    Other triggers would be best.

  • filters table based on two input fields

    Hello

    I need help, I'll have a single VO read and query is included with where clause and bind variable assume them query is like

    (select in... where updatedate > =: p_fromdate and updatedate > =: p_todate).

    In the user interface, I need to take two input fields date fromdate and to this day, when I get the table of dates (read only VO) should filter.

    what I want is if I enter Fromdate and gets stuck on day of entry values: p_fromdate and: p_todate.

    And I want without using the view criteria.

    Hello

    It would really help if you could give us some basic information, yet vital such as your version of JDev.

    There are many ways to implement your requirement. One of them uses a method of AM that will define and execute your view read-only object.

    Please follow these steps:

    (1) generate the implementation of AM class

    (2) create a custom method like the following:

    {public executeMyReadOnlyView Sub (fromDate Date, Date to date)
    ViewObjectImpl readOnlyView = getReadOnlyView();
    readOnlyView.setNamedWhereClauseParam ("p_fromdate", fromDate);
    readOnlyView.setNamedWhereClauseParam ("p_todate", to date);
    readOnlyView.executeQuery ();
    }

    (3) expose this new method via the client interface

    (4) drag this new method into the page as a button (and link the fromDate parameters and to this day)

    Antonis

  • Creating a DVD with several file format of files/best project for export (PE13)

    Hello! I first 13 (just improved 10) elements and trying to figure out the best way to save my movie on DVD. There are at least two different project files (the film, shock and eventually a video "making of") that I want to put on the same DVD with a menu. A couple of years, trying to do this with first Elements 10, I could not get it to work and had to use a separate DVD menu software. I can do that again, if I need to, but the software I used was lost, so I thought I would check to see if it can be done first before going to buy it again.

    If I can't do it in first, I need advice on the best format to save project files to burn to DVD later. I'm a novice, and most of these sizes looks like gibberish to me! I had problems in the past (a few years ago) with a black border appears around the film, after he was saved, reducing the size of the movie, and I'm hoping to avoid that...

    The film is about 1 1/2 hrs long

    The blooper reel is about 17 minutes

    If there is more info to help answer my questions I'll be happy to find it!

    alsyarn

    Thank you for the important information for troubleshooting your Premiere Elements burn on DVD-VIDEO to DVD disc so that it presents throughout without black borders.

    Open the first elements 13/13.1 to his Expert workspace, go to file Menu/New/Project and set the project preset manually to

    NTSC

    DV widescreen

    Do follow the following order

    • Open the project in the workspace Expert and go to file menu/new project and change the settings.
    • In the settings, set the project preset to NTSC/DV widescreen. OK to get out of there.
    • In the dialog box new project opens, rename the project and make sure you have a checkmark next to the "Force selected setting on this project." OK to get out of there.
    • In the Expert workspace, import your media source by using Add Media / choice.

    Import your Source 3 (720 x 480 widescreen display 16:9) - which should occupy all the space area monitor Edit which is a space of DV widescreen size.

    Import your Source 1 (1920 x 1080 16:9)-that must fill the space of the monitor Edit once the scale is automatically just to fill the space of the Edit monitor.

    Import your Source 2 (720 x 480 which is what is because it has a format of 1.0 pixels)-that does not fit properly. Balance this video in Edit area monitor to enter space monitor without black borders.

    It is unclear why the project 720 p settings have been set for this instead of NTSC DV widescreen. But please implement your project as described above, then export as suggested.

    I have suggested above based on destination DVD VIDEO to DVD disc. When you have a montage with several formats, you set an adjustment everything with scaling in the monitor area space Edit put in place by the predefined project and major. General guideline - the project preset should correspond to the properties of the media source... and with more than one type of format, you define major and if adapt everything with scaling if you don't want black borders.

    Another tip... When you want to scale width and height separately in edit box monitor, first go to applied effects tab/Applied effects Palette/panel of the selected clip expanded Motion and remove the box keep the Proportions.

    Please consider. And then we'll try to condense all that into a workflow that will work for you.

    Thank you.

    RTA

  • Import Illustrator file with several layers and sublayers as composition by keeping all layers and sous-calques

    I drew a map of the country with several layers and sous-calques, including the streets, cities, railroads...

    Now, I want to create a template for my colleagues in After Effects.

    To do this, I want to import the AI in After Effects, holding all sublayers and layers in compositions and subcompositions.

    When I do, I get the first two layers correctly, others just in a merged publication.

    What can I do to get all the layers of each as a layer in After Effects?

    Best regards, Raphael

    Illustrator imports only the first level of the layers. If you have groups or paths below you must release layer groups. The layers will then be stacked in the order in the form of layers. Then you need to move them to the top.

    The procedure is to select a layer in the layer Illustrator Panel, then without selecting any which specific element in the layer click on the menu in the upper right corner and select release to layers. All an elements in this layer will be transformed into layers. Now, select all, and drag them to the top above the original layer. This will leave the empty original layer and put all the elements in new layers.

    Here is a tutorial I made there are a bunch of years and who uses this technique to transform a mixture in a morphing.

    Morphing with Adobe Illustrator. I hope this helps.

  • Smart txt reflow - how do you work with several text boxes?

    Hello

    I create ID cards to work, for 650 employees. I had used the reflow of text before smart on other jobs and I don't foresee any problems with its use for this project. To explain my problem:

    I'm doing a template with a trial of ten employees file. The design on each card, it is a name and a unique ID to be used. The name is 18pt and code 10pt.

    On my main page, I have a block of text for the name and a text block for the employee ID. The text blocks are as wide as the work plan but only high enough to adapt to a single name by image to the relevant point size.

    On the first page of my document, I select 'place' and then select the text file with all the names, I get the change of cursor in the image of the text, I hold SHIFT for the debit option and click on my name text box. InDesign automatically creates 9 new pages, and I now have a 10 page document. So far, perfect.

    I select "place" again, choose the employee code text file, click on my block of text in code used on the first page, and repeat the same process as above.

    My problem starts - I want codes for the employee to just flow through ten pages, as the names, but when I place the codes file and select the text on the first page, inDesign creates 10 new pages after the tenth page. So I find myself with 20 pages - the first ten pages with names and nothing in the code text boxes and the last ten pages with the codes but nothing in the name text boxes.

    I am at a loss as to why he does this. I was playing with the settings in the preferences, but nothing changes. I tried to select both the two text files and import at the same time.

    How do you work with several text boxes and several import of text file on a doicument? There are no extra spaces or something like that in my text files.

    I really don't want to have to link all text blocks - that will forever, but right now it's the only way I can get it to do what I want.

    Also, is there anyway to specify the font and the size of the text is important as? Because it keeps import as minion pro, even if the text boxes on the master are set to the correct font and size. Not a big deal though.

    Help, please! Any help is appreciated, thanks in advance!

    Ah, I think I misunderstood your original post and thought you wanted to do 10 badges per page. If it's only one, you need only a set of images. Same procedure for setting in place, but you have no need to screw anything or use the step and repaet to make copies.

    Place the file name in the frames of name and ID will add pages and then return to the first page and place the numbers. Just don't forget to put the bad slider in the space where the framework and to stay away from the guides (if you click on a guide, ID will ignore masters executives) and hold down the SHIFT key when you click.

Maybe you are looking for