Trying to trigger multiple analog measurements with each pulse of a 500PPR encoder

I am trying to take multiple analog measurements form 6 sensors with each pulse of a 500 ppr encoder and write these to a file.  Problem I have run into is I am not getting 500 readings with 1 revolution of the encoder the most I have received is 187 however this isnt consistant.
using
6024 E Series card
BEI L25G encoder
Still relatively new to labview along with using an older version 7.0
Thank You in advance
Solved!
Go to Solution.
Attachments:
Rotary.vi ‏213 KB

Never mind after looking at it somemore i found i was using the wrong sample rate

Similar Messages

  • Acquire single analog point on each pulse

    Hi,
    I have a query on what i hope is a simple application. Im using a PCI-6220 card and what I would like to do is aquire a single data point which is to be triggered by a digital pulse. The pulse will come from an encoder, and what I would like to do is aquire a single analog data point each time the encoder channel pulse goes high (retriggerable daq?)
    Which would be the best way to approach this?
    Thanks,
    David

    David,
    this is easily done by importing your encoder-signal as external clock for your AI (which is either finite or continuous then!)
    hope this helps,
    Norbert
    [EDIT]: This will work out directly if the encoder creates CMOS/TTL pulses. If it doesn't, you should consider some kind of signalconditioning for your encodersignal
    Message Edited by Norbert B on 11-19-2007 03:41 AM
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • I'm trying to trigger voice over audio with markers in a Edge timeline.

    I’m working on 4 instructional videos.
    Audio was not part of the initial plan, but it is now.
    Here’s the current edge video: http://docs.smoke51.com/Social/email/setup/web/
    I’m trying to sync the audio to the sections of the instructional video.
    There are 5 sections in the video; each can be triggered by a click. The play and pause buttons also work.

    on the button element that you use to pause the animation, you can have the audio pause as well.
    you might try something like the following:
    var myaudio = new Audio();
    myaudio.src = 'narration.wav';
    myaudio.pause();
    or with an audio tag such as <audio id="soundfile">, you can use:
    myaudio = $('soundfile');
    myaudio.pause();
    for the timeline, you can use sym.stop();
    that way, when one pauses, the other one does also.
    to autostart, set a trigger at 0ms on your timeline, then in the editor, put:
    var myaudio = new Audio();
    myaudio.src = 'narration.wav';
    myaudio.play();
    hope this helps.

  • Multiple select parameter with each selected value covering multiple sub values

    Hello, everyone,
    In my SSRS report, I need to set a multiple select parameter called Group, with values: group1 group2, etc....
    When group1 is selected, it needs to apply to data of certain sub groups: sub-group1, sub-group2;
    When group2 is selected, it needs to apply to data of different sub groups: sub-group3, sub-group4 and sub-group5;
    when both group1 and group2 are selected, then, it needs to apply to data of sub-group1 to sub-group5.
    I know how to do it when only one group is selected: simply use a case statement in the query to select the right sub groups based on the group selected.
    But I don't know a good way to do it when multiple groups are selected.
    Any help, pointers are much appreciated. Thanks in advance!
    Regards

    Hi QQFA,
    If I understand correctly, there are two parameters (Group and Sub_group) in the report. When we select group1 in Group parameter, it will auto select sub-group1, sub-group2 in the Sub_group parameter; when we select group2 in Group parameter, it will auto
    select sub-group3, sub-group4 and sub_group5 in the Sub_group parameter; when we select both all, it will auto select all sub_group values. If I have misunderstood, please don't hesitate to let me know.
    In this scenario, we can create a temporary table with Group and Sub_group columns, then select Sub_group column values based on the Group field. For more details, please see:
    Create a dataset with the query below:
    CREATE TABLE #temp([group] nvarchar(50),sub_group nvarchar(50))
    INSERT INTO #temp VALUES     ('group1','sub-group1'),('group1','sub-group2'),('group2','sub-group3'),('group2','sub-group4'),('group2','sub-group5')
    SELECT * FROM  #temp
    where [group]  in (@Group)
    Set available values and default values of Sub_group parameter with get values from the sub_group field in the new dataset.
    Note that the two parameters are all multiple parameters.
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Best way to validate multiple entity objects with each other

    I have the following scenario.
    There is one entity object with the following fields.
    Name
    Start Date
    End Date
    My requirement is to validate the dates in the entity do not overlap.
    What is the best way to achieve the same.
    This validation should be fired when we commit, since the user should be allowed to change the dates freely between entities.(Validation should not kick off when the current row changes)
    Thanks

    For this to achieve there is a concept called Effective Dated Entity Objects in Oracle ADF.
    Official ADF Documentation: http://docs.oracle.com/cd/E37975_01/web.111240/e16182/bcentities.htm#ADFFD20110
    Some blogs to help you
    http://one-size-doesnt-fit-all.blogspot.co.uk/2008/11/jdev11g-new-feature-effective-dated.html
    http://adfblogs.blogspot.co.uk/2011/09/understanding-effective-dated-entities.html
    Regards,
    Peddi.

  • Multiple devices interfering with each other

    My daughter calls me using FaceTime on her MacBook. Both my iPad and iPhone ring.  I answer on my iPad and we begin our conversation. The iPhone continues to ring. Eventually, it stops. When it does, the conversation on the iPad is terminated. Why does this happen and how can it be prevented?

    Turn off Facetime on iPhone or iPad. Go to Setting -> Facetime.
    Turn off the one you don't want to use facetime.

  • How to implement Multiple Roadmap step with in a roadMap

    Hi,
    I am trying to implement Multiple roadmap step with in a roadMap.Can any one help me on this how to do it.
    As of now i have added Multiple roadmap step element with in my Road map navigation and assign a data source which contains single attribute steps. I am stuck here open question like
    1) How i map the view accordingly with the steps that are dynamically created
    2) Weather i have to create dynamic plugs? to handle it
    Can any one help me out or if you have any sample implementation please guide me through that link.
    Thanks in advance.
    Regards,
    Karthikeyan R

    Hi,
    1. In the View add a RoadMapUI element.
    2. Right click->Insert Steps (as many as required)
    3. Set the design property of the Roadmap step as standard / selected (Highlighted if set to "Selected")
    This is for a static approach i.e if there are 3 views, then in all the three views u repeat the procedure above and set the property as Selected for the required step.
    For dynamic selection of roadmap, bind the design property to context attribute of type WDRoadMapDesign and set the property thru code.
    Hope this helps you.
    Regards,
    Poojith MV

  • Error -200288 on multiple analog ins/outs

    Hi there,
    I have modified the MultiFunction-Sync-In-Out to accept 4 analog ins and 1 analog out but as you can see I always get Error -200288. I have attached the vi along with this message. If this problem is solved, I would like to output a second analog channel with a pulse to mark signal out from the first analog out. Please advise. Cheers, Biswa
    Attachments:
    noise_natural_v4.vi ‏451 KB

    Hi there, Thanks for the message. You are right that this is because of the task not getting stopped at every iteration of the while loop. It seems stopping a task at the end of each iteration only holds for software triggered DAQ and not otherwise.  have herewith attached the next version of the code. The query is if I am doing finite sample acq. and generation (the samples are set as fixed for AO and AI) then shouldn't my text file for data saved via AI/AO operation have equal number of points starting at set start time. It certainly doesn't seem to be the case and I reckon this is something to do with the buffer. Your advice on this would be highly appreciated. Cheers, Biswa
    Attachments:
    stimFCO_v4.vi ‏582 KB

  • Synchroniz​ing two counter frequency inputs with multiple analog inputs

    Hello all,
    I'm fairly new to LabVIEW and I'm trying to collec​t data from multiple sources with synchronized tim​ing on the acquisition but I'm having trouble figu​ring it out. My problem is that I've got two count​er frequency inputs, one optical tachometer readin​g one pulse per revolution, and a max machinery fl​ow meter with a k factor of 12000. I can't seem to​ figure out how to sync the timing with my multiple analog inputs. I've be​en attempting to get the tachometer  to sync with ​the analog inputs first by following the example l​inked here. (https://decibel.ni.com/content/docs/DOC-10785) So far each time I run it I either get a timeout e​rror on the DAQmx read or a "Multiple sample clock​ pulses were detected" error (see attached image).  It seems if I slow the sampling rate way down to ​say 10 hz and ensure that the tachometer signal is​ over 800-1000 RPM (13-17 Hz) before starting the VI then the program will run without errors until ​the RPM drops below that threshold then the "Multi​ple sample clock pulses" error occurs.  The code is attached below.
    Does anyone know of a more effective way of syncin​g counter frequency inputs with analog inputs?  I'd like to have a VI that can show 0 RPM (and ev​entually 0 flow as well, but I think I need to fig​ure out the timing of one counter before I add ano​ther as it seems I can't have two counters in the ​same task). Any help on this would be greatly appr​eciated.
    LabVIEW version 13.0
    cDAQ-9178 Chassis with NI 9401 for the two counter inputs and NI 9205 for the analog inputs.
    Thanks!
    Richard
    Solved!
    Go to Solution.
    Attachments:
    SimpleDAQ.vi ‏44 KB
    LV_Error.JPG ‏31 KB

    Maybe third times the charm? 
    So I've finally got a good handle on why the VI is having problems at low RPM though I'm somewhat embarassed how long it took me to do that
    Because I have the counter time synced to my Analog input task if it doesn't see at least two pulses between the two clock pulses set by the analog input task I get the -201314 "Multiple sample clock pulses" error. This seems fine at first as it just sets a minimum RPM that I can measure and it's well below the area I'm interested in so no problems there.  I tried a simple error handler that would clear the error when it happend assuming the loop would keep iterating until the RPM went above that minimum at which point I would get a signal again. This is not the case, the read function just continues to spit out the -201314 error even after the RPM is back in the readable range. So then I tried adding two case structures so that when the error occured it would stop the task, clear the error, and then start the task again on the next loop iteration (Code Attached). This also doesn't work as the error shows up again on the stop task and then AGAIN on the start task on the next loop iteration. It seems this error is not actually being cleared and once it happens it stays with the task regardless of what the error cluster is carrying. 
    Anyone have any ideas?  The only solution I can think of is to just clear all tasks and recreate them each loop iteration until the RPM is readable again but that strikes me as a horribly clunky solution.
    Richard 
    Attachments:
    SimpleDAQ_1_Start Stop.vi ‏48 KB

  • Anyone have an example of a PCI-6250 Digital and Analog Aquistion with Analog Post-Trigger?

    Hey All,
    We're trying to set up a post trigger data capture of parallel absolute strobed Gurley 17-bit encoder data (ignoring MSB for 16-bit aquisition) with an analog signal that is the output of a torque load cell.  The trick is to use the analog signal level as a post-trigger to stop the data aquisition.
    1) can the analog signal be recorded and used as the trigger?
    2) does anyone have an example using the PCI-6250 (or 6251)
    Thanks in advance for your help,
    -Drewksi 

    Hi Drewski,
    You can use the APFI0 line as an analog trigger for your signal. However, in this case you need to connect your analog signal to both the analog channel you want to acquire at and the APFI0 line.
    Assuming you are using LabVIEW,you can check the "Acq&Graph Voltage-Ext Clk-Analog reference.vi" example. This examples uses an external clock but it works also with the internal clock. All you have to do to change the control to onboard clock.
    You can find this example in LabVIEW Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurement >> Voltage
    Best Regards,
    Faris
    Bueller

  • Multi trigger measurements with a keithley 2100

    Hi all,
    I am using a Keithley 2100 DMM to measure voltages through an USB bus. I am using an agilent multiplexer to route different chanels to be measured by the 2100. A labview software control the two instruments.
    If I use a labview  “read single” KE2100 function between each switch of the agilent the program works well. The problem is I would like my measurement to be done faster. So I am trying to store the measurements in the buffer and collect all the data at the end. It goes like this:
          Configure the trigger
    (sample count=1 , trigger count X, trigger source: bus)
    2.       Initiate the trigger (VISA INIT)
    3.       Trig the measurement with “*TRG” X time in a for loop
    4.       Fetch the data
    For some reason I cannot collect these data, I just get one or sometimes two measurements
    Does anyone know what the problem is? Many thanks for your help !
    PS: enclosed a simple labview version of what I would like to do
    Attachments:
    pic_Voc_buffer.png ‏110 KB

    Hello Melanie,
    I discussed with them indeed and it seems it is not possible to trig from the bus in case you just have a USB bus and not a GPIB one. Therefore I will try  to trig the DMM measurement with the "channel closed output" from the MUX and see if it can work like that.
    Best regards,
    max

  • Problem with Loader, trying to load multiple png files, error 1069 on the contentLoaderInfo

    Hi helpers !@
    im trying to load multiple external png files from a folder.  the path for the images comes from an xml attribute and i got no problem with the path. The error message pops on when i try to add the loader into an array for later use and then when im done remove each child i created.  There is something in my pratice that is not ok , i meen i know im wrong with at some point !  Duh theres an Error message for each loader i create .. .
    ReferenceError: Error #1069: Property Loader not found on flash.display.LoaderInfo and there is no default value.
    here some code  , pls  guide me !
    function affichageM(){
      var nodeM:XML;
    for each ( nodeM in listeM ){
       var reqM:String = localLogoM + nodeM.attribute("icon_max2");
       var imageLoaderJ = new Loader();
       imageLoaderJ.contentLoaderInfo.addEventListener(Event.INIT,addM);
       imageLoaderJ.load(new URLRequest(reqM));
         // just counting for fun
       iNodeM ++;
    function addM(e:Event){
    try { var l_img:Loader = Loader(e.currentTarget.Loader);
           l_img.name = "imageLoaderJ" + mc_ArrayImg.length().toString() ;
           l_img.visible = false;
           mc_ArrayImg.push(l_img);
           mc_Jour.addChild(l_img);
             //calling the fucntion that will animate all img in the array and had some text to them.....
          drawMyImg(mc_ArrayMImg.length()-1);
    catch (error:Error) {
           //just counting errors for fun
          iErreurM++;
            var errorMessage:TextField = new TextField();
            errorMessage.autoSize = TextFieldAutoSize.LEFT;
            errorMessage.textColor = 0xFF0000;
            errorMessage.text = error.message + " " +  mc_Jour.numChildren + " " + mc_ArrayImg.length;
            errorMessage.x = 10*iErreurM;
            addChild(errorMessage);
            return;

    Hi, I'm not sure you are on the correct forum. This is the Flash Player forum. When you first open your thread, look to your right "More like This" and perhaps one of those forums would be helpful. Perhaps the Flash forum?
    Thanks,
    eidnolb

  • How do I merge multiple Excel files with more than one tab in each file using PowerQuery?

    Hello
    I have 12 Excel (.xlsx) files and each file has three identically named and ordered tabs in them. 
    I know how to merge multiple Excel files in a folder using M (those guides are all over the web) but how do I merge multiple Excel files with multiple (yet identically named and ordered) tabs? Surely it is possible? I just don't know how to do it in M.
    Cheers
    James

    What Laurence says is correct, and probably the best thing to do when the sheets have differing structures. Here is an alternate approach that works well when the sheets all have the same structure.
    When you first open the Excel file from Power Query, you can see its structure in the navigator at the right-hand-side of the screen. If you select the root (which is the filename itself) and click Edit, you'll see all the tabs in the sheet as a single table.
    You can now do filtering based on the Name, Item and Kind values. When you've reduced the set of things down to the sheets you want, select the Data column and say "Remove Other Columns". If the sheets don't have any header rows, you can just click the expand
    icon in the header and you'll be done.
    Otherwise, if the sheets have headers or if some other kind of sheet-level transformation is required against each sheet before doing a merge, you'll have to write some M code manually. In the following example, each sheet has a header row consisting of
    two columns: Foo and Bar. So the only step I need to perform before merging is to promote the first row into a header. This is done via the Table.TransformColumns operation.
    let
        Source = Excel.Workbook(File.Contents("C:\Users\CurtH\Desktop\Test1.xlsx")),
        RemovedOtherColumns = Table.SelectColumns(Source,{"Data"}),
        PromotedHeaders = Table.TransformColumns(RemovedOtherColumns,{{"Data", each Table.PromoteHeaders(_)}}),
        ExpandData = Table.ExpandTableColumn(PromotedHeaders, "Data", {"Foo", "Bar"}, {"Data.Foo", "Data.Bar"})
    in
        ExpandData

  • 1 xml file to multiple xml files with 200 records in each

    Hello Experts,
    I have below scenario.
    Please suggest me which might be the best approch to work on.
    1) XML file to XML file
    I will have 1 pretty huge XML file which i need to break in multiple XML files with 200 records each.
      1) first approch i can have bpm in which i can split the file according to my requirement.
      2) Second approch i can create 2 scenarios in which 1st scenario will pick up XML file and create multiple flat files with File content conversion. Second scenario will pick up all these flat files and create XML files.
    2) XML file to XML file
    Or i can have multiple files with 1 record per file and i need to merge in multiple XML files with 200 records in each.
    So its kind of 1:N or M:N scenarios.
    Please tell me which is might be better performance and design wise.
    Or if you have any idea in any other way i can do this, then please reply as soon as possbile.
    Please tell me if you have OS command for the same or some script to run or anything which i can implement.
    Thanks,
    Hetal

    what is your senario? is it File to File?
    You can use multi mapping concept without BPM. You can handle the 200 records per message logic in the multimapping.
    Regards,
    Praveen Gujjeti.

  • My question has to do with analog input and triggering? Does anyone have any suggestions on how i can improve the attached vi so it can trigger on a 50kHz ten cycles pulse after the pulse has been sent out on the output?

    Could you just look at this vi and tell me if i am doing anything wrong? I get errors that are different each time I change something. here are the inputs I am using
    Output Side:
    amplitude = 1
    freuency = 50kHz
    Sampling Frequency = 1MHz
    3 of Samples = 200
    Input Side:
    Input Buffer 4000
    trigger type = analog
    pretrigger = 5
    edge or slope = rising
    scan rate = 500kHz
    # of scans = 2000
    Conditional Retrieval
    mode = on
    slope = rising
    skip count = 0
    level = .1
    offset = 0
    hysteresis = 0
    So what we want to do is capture the ten
    cycles of the 50k output pulse on the input and need to store that so we can plot it later, do you have any suggestions. we are using the PCI-MIO- 16E board.
    Thanks,
    Jarrod
    Attachments:
    InputOutput2.vi ‏88 KB

    1) Toss the sequence frames (no flames please).
    2) Set you read and have it ready to trigger before oing the output.
    3) After the output, go back and read the data that is waiting for you.
    4) If you have errors tell us what they are and under what conditions they occured.
    End of Ben's suggestions for now.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • 3 Bugs in LR3 that need to be fixed.

    1.  Ratings do not carry over to modified .tiffs from Photoshop.  After sending a file to Photoshop to be edited, saved, and the resulting .tiff automatically added to LR3, the rating does not carry over to the new tiff from the original file. 2.  Fi

  • Material's Unit of Measurment differentin  Con & Rec due to Prd Process ?

    Hi   We got some byproduct due to the production. So we are planned we will take qty in m2 & stock maintain in kg, because this is child material of another one product, so that time we consumption book in kg wise only u2026. Finally we want:       R

  • Oracle streams configuration

    Hi, Our organization is planning to implement Oracle streams. I have couple of fundamental questions: 1. Can you configure Oracle Streams while the source database is up and running? 2. I think the answer is yes, but please confirm that the LCR data

  • OSB: Checking content type of a Business Service response

    Hi, I have a Proxy Service <-> Business Service configured as a pass-through only. (including http headers) The situation is: Sometimes, the service which my BS access send a fault response as a HTML instead of a fault soap envelop or something relat

  • Wrapper error in OC4J

    Hello Folks, We are setting up Oracle 9iAS server and testing a simple EJB from JSP/Servlet and getting a strange following problem (java.lang.NullPointerException      at EmployeeHome_EntityHomeWrapper1.findAll(EmployeeHome_EntityHomeWrapper1.java:1