Multiple analog events counted and recorded to file

I have this VI that I created where Ch 5 is attached to a reed switch on a door and counts how many times the door is opened and writes a date and time stamp to file each time and also updates the numeric counter on the front panel.  I would like to add 4 more switches with the same functionality and have them all write to the same file in different columns.  I have tried a number of different approaches to make this happen but can figure out what I’m missing.  Any thought on how I could add the same function with more switches?  Eventually I would like to be able to not only record when the door is open but for how long it stays open for.  Thank you.
Solved!
Go to Solution.
Attachments:
Pressure + Temp.vi ‏141 KB

It is true that local variables are not the most efficient communication method and they are not recomended to pass information among loops, mainly because they can create horrible reace condition errors. However, in this case I only read information from the local variables (except from the stop button, which should not be a problem either), so race conditions will not be a problem. Still, that's why a "more elegant solution" probably exists.
Also, I used a flat sequence structure to initialize the controls before execution and to force the initialization to happen before enything else. I guess you can use is to initialize the 0 constant outside the top while loop (even though I doubt there will be a rece condition there, it might e the only possible source for any).
About how to display only the total time, you should be able to do that by playing a littile with the shift registers and the select function. For example, what I did was to show the Elapsed Time.vi output if the boolean controls are on, and show the shift register value if they are off. Instead, you can simply add a second Select function on each elapsed time "circuit" so that the indicators will show the shift register value only when the boolean controls are off.
Camilo V.
Applications Engineer
National Instruments
www.ni.com/support

Similar Messages

  • Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?

    Music and Video on Nas in folders but how do i set up itunes on multiple computers to see and use these files and create libraries?
    So i have had a itunes set up on my old PC, bought a NAS and copied the folders over to the NAS, i did this incorrectly and so then even when i told the old PC to use that folder it saw all the songs but wasnt able to play the songs as it was looking in the incorrect place.
    So now i want my Mac as well as my PC and others to all use the music, videos etc on the NAS they are in itunes friendly folders (as they were compiled this way by the itunes on the old PC.
    When i tell the mac to use the itunes library.itl file it sees the song list (about 100gb) but cant see any songs, so i have removed this file to another location for now with the hope to set up a new file and then get it to see the songs on the folder from the NAS.
    Can someone tell me how to do this for all the Mac's and PC's on my network as i really want one master library that all use and add too.
    Thanks for your help in advance.

    I have the same question but I am using two pc's

  • How to do search with multiple texts across documents and rename the file with found text?

    Hello:
    I'm trying to do the batch search across the multiple documents and rename the file (or save as) after the found word?
    In example:
    I have many unique texts and would want to search across the multiple documents.
    If a document is found with that unique text then, the document is either renamed or save as with that unique text. 
    So, I could know what unique text that file holds.
    How do I do that?
    Let me know.
    Thanks

    Welcome to the forum!
    When you want to post a block of code, you can enclose it with the mark ups { code }
    That is the key word code surrounded by curly brackets, but without the spaces
    You seem to be running a very old (and unsupported release of the database)
    7.3 has not been a current release for about 10 years.
    It's probably been that long since I've used this technique, but i think it should work.
    You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
    If you used split to chop up your export file, use cat or dd to reassemble it.
    So, something like this:
    mknod bk.dmp p
    cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
    imp SYSTEM/$PASSWD parfile=imp_bk.parfile
    rm bk.dmp
    $ cat imp_bk.parfile
    file=bk.dmp
    log=imp.log
    full=y
    buffer=1048576
    ignore=y
    commit=y let us know if still have problems.
    Good Luck!

  • Multiple failure during exporting and recording

    Hello everyone,
    I'm currently helping a friend to create a slideshow to be used on their wedding banquet that talks about their childhood and love story. It's a combination of photographs, with 1 short video clip. As well as 1 personally remixed soundtrack to be played on the background. The whole slideshow plays for a good 8 min 36 sec due to the fact that the bride have asked for an edited soundtrack (combination of several songs being edited into one track).
    To make it brief, this slideshow have 95 slides, divided into sections: childhood, dating, engagement portraits, overseas engagement party, pre-wedding portraits. Each transition (style/effect) , transition duration, and transition delays varies as I have to match it with each sections of entire soundtrack.
    Everything went perfectly............... if it's only playing (preview) on my own MacBook Pro.
    I have read through the user guide, troubleshoots, tutorials video clips on YouTube, and suggestions posted by other users on the forum. Unfortunately, nothing works for me, and I couldn't find out what went wrong. I even tried to play the .key file on another Mac, all the transition duration and transition delays which I have pre-set individually were still messed up. Even experienced a major delay (up to 10 sec pause after playing the slide which contains a short video clip).
    And, I did followed the instructions to make sure the "include audio (sound files, movie audio)" and "include slideshow soundtrack" boxes are checked.
    I have stumble upon the following problems:
    When I tried to record the slideshow, the audio plays way faster than the slides.
    After I tried to export as QuickTime Movie, only the first 4 slides kept jamming while the audio continue to play, and the rest of the 91 slides doesn't even show.
    I tried to export as all available options/file size of the QuickTime Movie, same results occurred.
    Same thing happened as I tried to export to iDVD.
    I also tried to export as iTunes Movies, the duration of the entire slideshow went from 8 min 36 sec to 11 minutes+. And, transition duration and transition delays which I have pre-set individually were all messed up.
    I even tried to export to a copy of Microsoft PowerPoint presentation, it doesn't even play at all.
    My goal is to successfully burn this slideshow into a DVD as a movie for the wedding couple, so they can keep it after playing it on their banquet.
    I really don't know what else to do in order to get done, I'm desperately hoping any Keynote '09 experts could kindly give me some advise and/or solutions. Thank you very much for your time on reading this, and all your help would be greatly appreciated!

    Sounds like you are hitting all the big problems in one slideshow! There have been numerous posts here about the Keynote timing getting messed up on export to Quicktime. There have also been problems with exporting video clips when there is a soundtrack or voiceover.
    Try removing the soundtrack from the Keynote so all you have are the slides with pics and video. Record the slideshow to get the timing of the transition. Then export that to Quicktime and make sure to uncheck the box that says to include recorded audio. Then import it into iMovie. Once in iMovie add the soundtrack. This way if the timing gets messed up on the slides, you can add the individual songs that make up the soundtrack and adjust where to fade out and bring in the next one. With iMovie, it is still easy to send to iDVD to burn your DVD.
    Hope this helps and let me know if you have any more question or if you run into some other problem.

  • Generate a series of waveforms and record the data in a file

    System:
    Win7
    Labview 8.5 or 10 (can choose)
    PXI-1033 rack with:
    PXI-5421 AWG
    PXI-4071 DMM
    PXI-6542 Digital IO
    PXI-4110 DCPower
    PXI-5124 Digitizer
    I am working on a summer project to create a functional test system for four different types of PCBs. I will use a test rig as an interface to these PCBs, where each type will be identified by its position. Please see attached UML as to how I want the program to run.
    I want a user settings box pop up when the application is started, where the operator must enter his name and choose which type of board. Further, after entering these details, I want the application to start testing according to which type of board is in the system and which type the operator indicates (the user prompt for card details is just a precaution).
    I am trying to figure out what sort of architecture I should use for the LV part of it. So far I've managed to run the AWG and digitizer as two seperate VIs, but I've read a little bit about using the Producer/Consumer architecture, and want to know if this is a good idea? And which parts should be where? The AWG will input data to the PCB, which will be recorded by the digitizer and then testet using a mathscript and recorded to file.
    So I figure I have to use some sort of event and sequence structure. For example, I want to output two sinusoidal signals with different frequencies after each other and check the voltage amplitude of the scoped output signal and record this.
    If someone could point me in a direction of how to start, I would be very happy. After looking through some of the topics here, I have seen that it is often suggested to use the producer/consumer architecture, so before I do a lot of work which I might have to re-do I want to ask for help will post my solutions as I go.
    Attachments:
    uml.png ‏63 KB

    The LabVIEW large applications community should be able to give you all the info you need.  Check it out here.  Let us know if you need more info.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How multiple users can open and update it same time in Sharepoint 2010, excel file

    we are using SharePoint 2010, multiple users can open and update the file at same time in SharePoint, I have searched a lot and
    read it, some suggestions were can create the file as share work book and then save on Share point and other were its supported only with Office web Apps, Excel Web App, we don't have office Web apps or excel web app, is there any other suggestion,
    any help will be great, thanks in advance

    Hi,
    You need office web apps for co-authoring, see Software version requirements for co-authoring in SharePoint 2013 and SharePoint Online section in below link -
    http://technet.microsoft.com/en-us/library/ff718249(v=office.15).aspx
    and
    http://office.microsoft.com/en-us/sharepoint-foundation-help/document-collaboration-and-co-authoring-HA102772333.aspx
    Edit: Link for SP 2010
    http://technet.microsoft.com/en-us/library/ff718249(v=office.14).aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • Displaying multiple analog input channels using DAQmx READ commands.

    I am using a NI USB-6009 module in a hydraulic load test stand.  I want to read multiple analog voltage inputs and display them on my front panel.  Using DAQmx commands or DAQ assistant, LabVIEW will only let you have one READ command for the analog inputs.  Can someone point me to an example or give me some ideas on being able to display at least 3 analog inputs?  Thanks.

    With the DAQ Assistant, when you get a list of 'Supported Physical Channels', look at the bottom of the window. It says "<Ctrl> or <Shift> click to select multiple channels. When you use the DAQmx Create Channel and have a physcial channel control/constant, click the little arrow on the right side of the control/constant, select browse and use the same <Ctrl> or <Shift> click technique. If you want to enter the channels manually, the format is Dev1/ai0:2 for consecutive or Dev1/ai0,Dev1ai3 non-consecutive channels.

  • Old computer and ipod play files but new computer and iphone4 will not! why

    Well I just found out I have a problem. About a year or so ago I converted an audio tape to AAC by running a line into my iMac G5 and recording the files. Now on my new mac mini snow leopard server I cannot get the files to play, but when trying to play it on my old iMac G5 there is no problem. I have it set as an audiobook since it's some tapes that go along with a textbook I use for teaching.
    If I sync the files on my iPhone 4, they will not play. If I sync them on my old ipod with clickwheel (40GB) they play fine (synced from my new computer), and they play fine on a Windows 7 machine running iTunes. So I cannot figure out what is my problem.
    I have tried converting the files a million different ways on the old machine and the new machine without any luck.
    Does it have something to do with the new quicktime integration with Snow Leopard?

    may have to restore as new http://support.apple.com/kb/ht1212

  • Event counter using USB-6210 analog

    Hi,
    Any suggestions or directions where to look to generate a VI that would record event from a magnetic counter of a mouse wheel. I would like to record up to 16 wheels using the USB-6210 device. Thanks!
    VO2max

    Thanks for the extra information.
    The 6210 actually has two counters, so you could count the edges (on two of the wheels) if the signals are TTL compatible.  You can use the Count Digital Events.vi example to help you get started.  From LabVIEW, it can be found at:
    Help » Find Examples... » Hardware Input and Output » DAQmx » Counter Measurements » Count Digital Events
    If your signals are TTL compatible, I would highly recommend purchasing a PCI-6602 and using this method for all 8 channels.  You could modify the example code by increasing the delay (software-timed sample rate) to a larger value (say 1 minute), and logging the results to a file as you run.  Doing this would log the value of the event counter every minute, and would keep the file size relatively small (about 15kB if you run for 8 hours).
    If you must use a single 6210 and require all 8 channels, the only option would be to use continuous analog inputs.  You would have to sample at a high enough rate to not skip the pulses (I am not sure what that is without knowing more about the signal), and then process the digitized signal in software to determine the information that you need.  I would use the Producer/Consumer design template in conjunction with a continuous analog input example to get started.  In the consumer loop, you would have to implement the functionality of the counter in software.
    Using a hardware counter would be preferrable to using analog inputs.  The counter is made for exactly this type of task, and implementing it in software can be complicated as well as processor intensive.  If you have any questions let me know, I'm happy to help you out.  You can always try out the counter task on the 6210 for two wheels to see how it will work before deciding whether or not to purchase a new board.
    -John 
    P.S. After your first post I had assumed that you were testing computer peripherals, but it looks like you actually have eight rodents.  We had a good laugh over here over my confusion.
    John Passiak

  • Buffered event counting. Why can't I explicitly sequence generating the Sample Clock Pulse and reading the counters?

    At irregular occasions I need to grab counts from several counters, and buffering the counts must be done simultaneously for all counters. I'm modeling my approach after zone.ni.com/devzone/cda/tut/p/id/5404 which someone kindly pointed out in an earlier thread. However, that example only uses one counter, and you can't test the synchronization with only one counter, so I am using two counters configured the same way, and they're wired to a single benchtop signal generator (for example at 300 kHz).
    What I want to do, I can test in a loop with a somewhat random wait in it. I want to drive a hardware digital output line high for a few ms and then low again. The hardware line is physically connected to terminals for my timing vi's Sample Clock Source and so will cause them to buffer their counts for later reading. After I pulse this line, when I know new good buffered counts await me, I want to read both my counters. If their bufferings are simultaneous, then each counter will have counted the same number of additional counts since the last loop iteration, which I can check by subtracting the last value sitting in a shift register and then subtracting the two "additional counts" values and displaying this difference as "Diff". It should always be 0, or occasionally +1 followed immediately by -1, or else the reverse, because buffering and a count could happen practically at the same moment.
    When I do this using a flat sequence to control the relative timing of these steps, so the read happens after the pulse, the counters often time out and everything dies. The lengths of time before, during, and after the pulse, and the timeout value for the read vi, and the size of the buffer and various other things, don't seem to change this, even if I make things so long I could do the counting myself holding a clipboard as my buffer. I've attached AfterPulse.vi to illustrate this. If I get 3 or 10 or so iterations before it dies, I observe Diff = 0; at least that much is good.
    When I use two flat sequences running in parallel inside my test loop, one to control the pulse timing, and the other to read the counters and do things with their results, it seems to work. In fact, Diff is always 0 or very occasionally the +/- 1 sequence. But in this case there is nothing controlling the relative timing such that the counters only get read after the pulse fires, though the results seem to show that this is true. I think the reads should be indeterminate with respect to the pulses, which would be unreliable. I don't know why it's working and can't expect it to work in other environments, can I? Moreover, if I set some of the pulse timing numbers to 1 or 2 or 5 ms, timeouts start happening again, too. So I think I have a workaround that I don't understand, shouldn't work, and shouldn't be trusted. See SeparateSequence.vi for this one.
    I also tried other versions of the well-defined, single sequence vi, moving the counter reads to different sequence frames so that they occur with the Sample Clock Source's rising edge, or while it is high, or with the falling edge, and they also often time out. I'll post these if anyone likes but can't post now due to the attachment limit.
    Here's an odd, unexpected observation: I have to sequence the reads of the counters to occur before I use the results I read, or else many of the cycles of this combine a new count from one counter with the one-back count from the other counter, and Diff takes on values like the number of counts in a loop. I though the dataflow principle would dictate that current values would get used, but apparently not so. Sequencing the calculations to happen after the reads fixes this. Any idea why?
    So, why am I not succeeding in taking proper control of the sequence of these events?
    Thanks!!!
    Attachments:
    AfterPulse.vi ‏51 KB
    InSeparateSequence.vi ‏49 KB

    Kevin, thanks for all the work.
    >Have you run with the little execution highlighting lightbulb on? -Yes. In versions of this where there is no enforced timing between the counter and the digital line, and there's a delay inserted before the digital line, it works. There are nearly simultaneous starts on two tracks. Execution proceeds directly along the task wire to the counter. Meanwhile, the execution along the task wire to the digital high gets delayed. Then, when the digital high fires, the counter completes its task, and execution proceeds downstream from the counter. Note, I do have to set the timeout on the counter longer, because the vi runs so slowly when it's painting its progress along the wires. If there is any timing relationship enforced between the counter and the digital transition, it doesn't work. It appears to me that to read a counter, you have to ask it for a result, then drive the line high, and then receive the result, and execution inside the counter has to be ongoing during the rising line edge.
    >from what I remember, there isn't much to it.  There really aren't many candidate places for trouble.  A pulse is generated with DIO, then a single sample is read from each counter.  -Yup, you got it. This should be trivial.
    >A timeout means either that the pulse isn't generated or that the counter tasks don't receive it. - Or it could mean that the counter task must be in the middle of executing when the rising edge of the pulse arrives. Certainly the highlighted execution indicates that. Making a broken vi run by cutting the error wires that sequence the counter read relative to the pulse also seems to support that.
    >Have you verified that the digital pulse happens using a scope? -Verified in some versions by running another loop watching a digital input, and lighting an indicator, or recording how many times the line goes high, etc. Also, in your vi, with highlighting, if I delete the error wire from the last digital output to the first counter to allow parallel execution, I see the counter execution start before the rising edge, and complete when the line high vi executes. Also, if I use separate loops to drive the line high and to read the counter, it works (see TwoLoops.vi or see the screenshot of the block diagram attached below so you don't need a LV box). I could go sign out a scope, but think it's obvious the line is pulsing given that all these things work.
    >Wait!  I think that's it!  If I recall correctly, you're generating the digital pulse on port0/line0...  On a 6259, the lines of port 0 are only for correlated DIO and do not map to PFI. -But I'm not using internal connections, I actually physically wired P0L1 (pin 66) to PFI0 (pin 73). It was port0/line1, by the way. And when running some of these vi's, I also physically jumper this connection to port0/line2 as an analog input to watch it. And, again, the pulse does cause the counter to operate, so it clearly connects - it just doesn't operate the way I think it is described operating.
    For what it's worth, there's another mystery. Some of the docs seem to say that the pulse has to be applied to the counter gate terminal, rather than to the line associated with the sample clock source on the timing vi. I have tried combinations of counter gate and or sample clock source and concluded it seems like the sample clock source is the terminal that matters, and it's what I'm using lately, but for example the document I cited, "Buffered Event Counting", from last September, says "It uses both the source and gate of a counter for its operation. The active edges on the gate of a counter is used to latch the current count register value in a hardware register which is then transferred via Direct Memory Access...". I may go a round of trying those combinations with the latest vi's we've discussed.
    Attachments:
    NestedSequences.png ‏26 KB

  • Need a relative sequence (count of record) in an input file in ESB input fi

    I am using ESB to pick up text files and pass them to a stored procedure. I have multiple variable length records in the file. I pass each record to the
    output file adapter, along with the input filename. I would also like to get a relative record number for each record within the file. I use an xsd file
    to convert the input to XML. The entire file is at the root level, each record is an element. Is there a way to get a relative count of each element?
    Here is the xsd file:
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/Filein"
    xmlns:tns="http://TargetNamespace.com/Filein"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
    <xsd:element name="Root-Element">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" minOccurs="1" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="C1" type="xsd:string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;">
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    <!--NXSDWIZ:J:\\UPLD5383.INM:-->
    <!--USE-HEADER:false:-->
    I need to map the relative record number to a field in the output.
    Is there a function similar to the get filename that would return this value to me?
    <xsl:value-of select='ehdr:getRequestHeader("/fhdr:InboundFileHeaderType/fhdr:fileName","fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;")'/>
    I use this in the xsl file to get the file name .

    does each record start with a new line? if it does a
    simple wc -l can help you. If not, you can pre
    process this XML file by first removing all the new
    line characters using sed and then adding new line
    characters after the end tag of the xml using sed and
    finally doing a wc -l . this would be a simple shell
    script. Not sure if you want to use Unix shell
    scripting to achieve this.The sheer nature of XML means that it does not conform to any visual formatting. i.e. An xml file containing...
    <employee><empno>3</empno></employee>
    is identical in XML terms to...
    <employee>
    <empno>3</empno>
    </employee>
    which is also identical in XML terms to...
    <employee>
    <empno>
    3
    </empno>
    </employee>
    which is also identical in XML terms to...
    <employee><empno>
    3
    </empno></employee>
    etc.
    You cannot rely on the number of CR's or CR/LF's in the file to count the records. Proper XML processing should be used for such a task.

  • How Do I Get Rid Of Multiple Duplicates AND Relocate Numerous Files?

    Basically I'm fed up of iTunes.
    A couple of months ago, i had a problem with my itunes library due to a message regarding the iCloud. This practically deleted my whole iTunes library and forced me to relocate every single track, which took a lot longer than it needed to.
    I was already annoyed with iTunes by this point, until yesterday around 1/3 of my tracks were still unlocated, however I could cope with this because I had the majority of my songs, despite this not being ideal.
    Yesterday I was informed I needed to update my iPod, naturally I did. Then...this is when I start to get mad, my iPod crashed, then restored itself COMPLETELY back to factory settings, removing my songs and all my apps. I reopen my iTunes library to see that, that has also restored and NONE of my music is there.
    Now, after a bit of fiddling, I have an iTunes library full of songs which have been duplicated twice or even three times, to add to it, hardly any are actually located. It's not just as simple as redownloading from iTunes, because I expect half my library is music from CDs. So now not only am I faced with trying to get rid of all the duplicates, I also have to locate all the songs (I have checked the preferences and redirected it to My Music > iTunes - basically what it should be) and I have to get rid of all the songs that I didn't want in the first place such as old songs that should be long gone off my iPod/Library from now.
    If anyone could help, that would be great, because I'm so tired this time-consuming mess my iTunes has become.
    Thanks in advance!

    Broken Links
    It depends a bit on why things aren't where iTunes expects to find them but if they are in sensible Artist & Album folders in some common location then my FindTracks script should be able to reconnect them to iTunes. FindTracks uses some fuzzy matching routines and searches for multiple potential locations within a media folder. For more details see this thread.
    Duplicates
    Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    I intend at some point to improve DeDuper so that when there are multiple duplicates, where at least one is connected to a file while others are missing, it can throw away the entries to any missing files, however the current version needs all duplicates to have been repaired first.
    tt2

  • 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

  • HT201066 How can I split a long recording audio file into multiple audio files?

    Hi,
    How can I split a long recording audio file into multiple audio files?
    With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
    Thanks!

    Hello ingiorgio
    You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out. 
    GarageBand - Split regions in the Tracks area
    http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
    GarageBand - Share songs to iTunes
    http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
    Regards,
    -Norm G.

  • Posting  multiple records from file to idoc

    Hi Exerts,
       i have done scenario to post one record from file to IDOC, to post multiple records from file to idoc what are the options to be modified in the scenario.
    thanks,
    dhanush

    Hi Dhanush,
      You need to change the occurance of idoc to 0 to unbounded ie need to opt idoc packaging.
      Just download the xsd of you idoc to the desktop and change the occurance tag as "<xsd:element name="IDOC" type="COND_A.COND_A02" maxOccurs="unbounded" />" and then reimport it into External definition and use it in your message mapping and then map it with you source structure.
    Regards,
    Prasanthi.

Maybe you are looking for