Question about pause trigger: multiple triggersources

Hello,
I have two digital signals which I want to use as source for pause triggering. The pause triggering is done with a triggernode. The problem I have is that I can add two sources to the node but it won't react on both, just one. So I guess it only accepts one signal. The first triggersignal will start the logging for an unknown period of time. When the first triggersignal drops, the second trigger signal will follow immediately and will continue for 5 seconds. Maybe there is no need to add a second trigger source because the time the signal has to be logged is known and follows directly after the first trigger signal. But I can't seem to find a solution for that.
Another problem I have is that I'm logging at a rate of 100 Hz but on my excel file I find only 500 samples after 10 seconds of logging. Im logging the signals from 2 NI9237's and a NI9219. The rate from the NI9237 is 2000 Hz but I decimate it to 100 samples per second. The signals from the NI9219 are logged at 100 Hz and are untouched.
Thank you
Solved!
Go to Solution.
Attachments:
Prog.7z ‏138 KB

Thanks for letting us know it is solved. i will close the call at our end.
Regards,
Rik Prins, CLD
Applications Engineering Specialist Northern Europe, National Instruments
Please tip your answer providers with kudos.
Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

Similar Messages

  • Question about distinct_values for multiple fields

    Hi,
    With the distinct_values() function we can get the distinct value for a specified field, and is there any way to get the distinct value for multiple fields?
    Thanks!

    Hi simpson213,
    According to your description, you have some questions about your report design.
    1. How to have non-duplicating child info?
    In this scenario, since you don't want to hide the duplicate data, we suggest you filter the duplicated records on query level by using Distinct statement. If you want to do it on report level, you can group
    records on chid id and use First() function on other fields. 
    Reference: First Function (Report Builder and SSRS)
    2. How to  have various sections that contain fields with numerous values?
    We can also add these fileds into the child group of child and have them toggled by child id. 
    Reference: Add an Expand/Collapse Action to an Item (Report Builder and SSRS)
    3. How to add a page break between each child?
    Right click on the Row Group(child id)->Page Break->Select between each group instance.
    Reference: Add a Page Break (Report Builder and SSRS)
    4. How to select multiple child id when rendering report?
    When creating parameter, select Allow multiple values in General.
    Reference: Add, Change, or Delete a Report Parameter (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Question about upgrading iTunes multiple computers with shared library

    Greetings,
    I have a question about upgrading to the current version of iTunes.
    Currently, my household uses 3 Mac computers (2 Powerbook 17in laptops and a Mack Mini). We are all (currently) on system 10.4.11 (with iTunes 9.2.1). Between the 3 computers we have a shared iTunes music and video library on a networked high capacity hard drive.
    We recently purchased an iPad. In order to make it easy for updates and to use media from our iTunes shared library I decided that we should upgrade the systems on our home computers to Snow Leopard. I have ensured that all the computers have at lease 2 Gb of RAM and adequate hard drive space.
    The only possible problem I see is that one of the Powerbook laptops uses the old Motorola processor. (This is one of the last Powerbooks to use that processor.) I don’t think this computer can be upgraded to Snow Leopard.
    My question is, if I upgrade 2 of the computers (and iTunes in the process), will I still be able to access the shared iTunes library using the older computer with the older system and iTunes? Will the upgrade process change the iTunes library in such a way that the one older computer will no longer be able to properly access that library?
    Are there any other problems I might encounter having a mixed system/iTunes environment?
    Thank you,
    Tim

    iantoole wrote:
    Just a thought. Should I somehow open iTunes on MBP2 using MBP1's Library file??
    both Macs can access the same library file, however, only one at a time !
    to do that, you would ideally have the entire iTunes folder (not just the iTunes music folder) on the external. then, on one Mac after the other, launch iTunes while holding the option key, click on +choose library+ when prompted, and select the iTunes folder on the external.
    or, you could have two separate libraries and keep those in sync using third party tools such as Syncopation, TuneRanger or SuperSync.
    for purchases from the iTunes store, you could set up _*Home Sharing*_ - it can be configured to automatically transfer new purchases to home shared libraries.
    Can I create a script to have MBP1 always save the iTunes Library file on the shared hard drive?
    no need.
    JGG

  • Question about Local Variables (Multiple answers welcomed!)

    A couple of questions about Local Variables
    1. Programmers always say: “Do not abuse of Local Variables”. I’d like to know, when and where Local variable are most efficiently used?
    2. If I have to create a couple of local variables, is there anyway to “clone” them without going through the repetitive “create/local variables” mouse click each time? (When I try to copy and paste, it creates a new variables instead of the one that I am trying to reproduce)
    3. Which is faster in execution: Updating a variable through a) writing to property node/value or b) through local variable
    Everyone’s input is welcomed, so if this question is already answered, please
    feel free to add additional comments/answers!

    1. Use Local Variables in user interface code and no where else. The only exception is using a local variable of a cluster output to define the datatype for a bundle by name node.
    2. You can drag copy them then right click to get to a menu of all the currently defined controls and indicators on the VI.
    3. B. The problem with A is that it forces a thread switch to the user interface thread--which can take time if you aren't already in it, and it's a very convoluted process under the hood. NI's advice never update indicator values through a property node unless you absolutely, positively can't figure out some other way of doing it.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Question about support of multiple languages by installer (after modification)

    We are currently developing the plug-in of Adobe Illustrator CS5. 
    I have a question on how to support multiple languages by that plug-in. 
    I want to specify a  path according to a language of Ai and then install the swatch file when installing the plug-in(Extension) by Extension Manager.
    However, the swatch file cannot be placed in a desired path.  
    The folder of swatch libraries to which Ai refers difffers from language to language, so I want to place the swatch file only in an appropriate  path according to a language of Ai...
        Japanese version of Ai    : [Ai installation path]/Presets/ja_JP/スウォッチ
        English version of Ai    : [Ai installation path]/Presets/en_US/swatches
    *In the case that the plug-in is installed into Japanese version of Ai, the expected result is that the swatch file is placed only in "[Ai installation path]/Presets/ja_JP/スウォッチ.
    As a way to place the swatch file according to a language of Ai, I described the following contents in MXI file(project.mxi) and then installed the plug-in.  
        URL that I referenced  : http://help.adobe.com/en_US/extensionmanager/cs/using/packaging_extens ion.pdf
    --The contents of MXI file--
    <macromedia-extension  name="Extension Name"
    name_resid="name_ID"  version="1.0.0" ismultilingual="true" >
              -<omitted>-
    <files xml:lang="en_US">
    <file source="en_US/test.ai" destination="$presets/en_US/swatches"/>
    </files>
    <files xml:lang="ja_JP">
    <file source="ja_JP/test.ai" destination="$presets/ja_JP/スウォッチ"/>
    </files>
    <files xml:lang="it_IT">
    <file source="it_IT/test.ai" destination="$presets/it_IT/swatches"/>
    </files>
    When I installed the plug-in by the installer created by using the MXI file above, the swatch file(test.ai) was placed not in "$presets/ja_JP/スウォッチ" but in "$presets/en_US/swatches".
    Is there anything wrong with the MXI file above?
    Also, is there any way to place the swatch file in a desired path according to a language of Ai other than this way.   
    If someone knows it, please let me know. 
    [Implementation environment]
    OS:
    Windows7 Ultimate 32bit(Japanese version)
    Software and plug-in:
    Adobe IllustratorCS5(Japanese version)
    Adobe ExtensionManagerCS5(Japanese version)
    Adobe FlashBuilder4.6
    Adobe ExtensionBuilder2.0

    You might want to try the Illustrator SDK forum which may be able to answer your questions. Most people here are just users.

  • Questions about going to multiple iCloud IDs for Family

    My wife and I have an iPhone and we also have an iPad that stays at the house everyone uses including our kids. I've always had my Apple ID logged in to the store part so we can share all paid apps and music. The iPad also has my id logged in under iCloud so it's using the iCloud ID that is associated with my store ID, which is the same as my gmail account. If I want to change that one to the family one like the guide on iMore talks about, would I do the following steps or am I missing something? Say for this my gmail is [email protected] and it also gave me [email protected] [email protected]
    Existing iCloud/iTunes account:
    Login to manage my apple ID and change the "Apple ID and Primary Email Address" from [email protected] to the alternate of [email protected]? Do I have to use [email protected] or can I create a new icloud email called [email protected] and set that as my "Apple ID and Primary Email Address"?
    Create New iCloud IDs:
    I created a new iCloud Email address/account for me and my wife. We would each sign in to our own under iCloud to have seperate storage and to have find my friends work.
    We would each continue to setup our gmail accounts as exchange.
    By doing this, and going on the phone and changing the store login to [email protected] or [email protected], would that still have all my purchases moved from the [email protected] to the [email protected]?

    It's not necessary to merge the iCloud and iTunes Store accounts. The Family Organizer should use their own iCloud account when setting up Family Sharing. You'll also be asked to supply the iTunes Store account you want to use to share music, movies, apps, etc., with your family during the setup process. It appears Apple has already addressed this common problem.

  • Question about templates with multiple queries

    I am just starting out with BI Publisher, v.10.1.3.2. I have a report that has multiple queries, but my template is just based on 1 query. How can I make the template use more than one query?
    Thanks!!

    <!-- BI Publisher Report Data Template --!>
    <!-- Report: -->
    <!-- defaultPackage - the PL/SQL package name to resolve any lexical
    references, group filters, or data triggers defined in the template. -->
    <dataTemplate name="dataTemplateName" description="DESCRIPTION" dataSourceRef="ORCL" defaultPackage="<SCHEMA>.<PACKAGE>" version="1.0">
    <properties>
    <property name="include_parameters" value="True|False"></property>
    <property name="include_null_Element" value="True|False"></property>
    <property name="xml_tag_case" value="upper|lower"></property>
    <property name="db_fetch_size" value="500"></property>
    <property name="scalable_mode" value="on|off"></property>
    <property name="include_rowsettag" value="true|false"></property>
    <property name="debug_mode" value="on|off"></property>
    </properties>
    <parameters>
    <parameter name="IDENTIFIER" dataType="character|date|number" defaultValue="0" include_in_output="true|false"></parameter>
    </parameters>
    <!-- Flexfield support for queries against Oracle Applications database -->
    <lexicals>
    <lexical></lexical>
    </lexicals>
    <dataQuery>
    <xml name="xml_query_name" expressionPath="Xpath_expression">
    <url method="GET|POST" realm="auth_name" username="" password="">file:///d:/windir/filename.xml</url>
    </xml>
    <sqlStatement name="query_name">
    <![CDATA[
    SELECT
    FROM
    WHERE
    ]]>
    </sqlStatement>
    </dataQuery>
    <!-- If you have multiple queries, you must link them to create the -->
    <!-- appropriate data output. In the data template, there are two methods -->
    <!-- for linking queries: using bind variables or using the <link> element -->
    <!-- to define the link between queries. -->
    <link parentQuery="parent_query_name" parentColumn="col" childQuery="child_query_name" childColumn="col" condition="= < <= > >="></link>
    <dataTrigger name="beforeReport" source="<package_name>.<function_name>"></dataTrigger>
    <!-- (Required for multiple queries) Defines the structure of the output -->
    <!-- XML. Consists of <group> and <element>elements to specify the -->
    <!-- structure. This section is optional for single queries; if not -->
    <!-- specified, the data engine will generate flat XML. -->
    <dataStructure>
    <group name="group_tag_name" source="query_name" groupFilter="<package_name>.<function_name>">
    <element name="tag_name" value="source_column" function="SUM() COUNT() AVG() MIN() MAX()"></element>
    <element name="tag_name" value="<group_name>.<column/alias name>" function="SUM() COUNT() AVG() MIN() MAX()"></element>
    <group name="group_tag_name" source="query_name" groupFilter="<package_name>.<function_name>">
         <element name="tag_name" value="source_column" function="SUM() COUNT() AVG() MIN() MAX()"></element>
         <element name="tag_name" value="<group_name>.<column/alias name>" function="SUM() COUNT() AVG() MIN() MAX()"></element>
    </group>
    </group>
    </dataStructure>
    <dataTrigger name="afterReport" source="<package_name>.<function_name>"></dataTrigger>
    </dataTemplate>

  • Question about auto-saving multiple files with the same template

    Is there any way to do this? The template will never change - but I will need to save it as a new file each time I open it. Just want to know if there is an automatic way to do this when the template is opened each time? Preferably numeric, starting from any number. I suppose I can just save each file myself - but as it gets up into the thousands of files - I'm not going to want to.
    It would be really cool if it could auto-save the file, assign it a number, and then place that number in the top corner of the saved document.
    If anyone can help - let me know. C.

    OK. First add a text field to the document, say "text1". You probably want it to be read-only. You can duplicate it to all pages if needed. Then open the template document, open the interactive JavaScript console (Ctrl+J), and enter the following code:
    // Interactive Console JavaScript
    // Get the folder this file is in
    var folder = path.replace(documentFileName, "");
    // Save multiple copies (from 1 to 9)
    // with the number in the text field
    for (var i = 1; i < 10; i += 1) {
        getField("text1").value = i;
        saveAs(folder + "template" + i + ".pdf");
    After you paste the code, highlight the lines and press Ctrl+Enter (or the Enter key on the numeric keypad) and Acrobat will save multiple copies to the same folder as the template. Replace "text1" with the name of the field you've set up and "template" with the name you want the copies to have before the number.

  • Question about filtering by multiple keywords

    I must be missing something, because setting up a filter using multiple keywords doesn't seem to be working for me. I'm clicking "Text" in the Library Filter, then selecting "Keywords" and "Contains All". When I type in multiple keywords, separated by a space, the list still contains photos that do not contain ALL of the keywords I entered. The resulting list seems to be displaying photos as if I selected "Contains Any" instead of "Contains All". Am I missing something obvious here?
    - Dave

    Could you provide a specific keyword example? Do you perhaps have two keywords such as 'Horse Carriage' and 'Horse'?
    Using the text filter "Keywords Contain All Horse" would also find images with the keyword 'Horse Carriage'.

  • Question about pausing Timers

    When excuting this method ( Thread.currentThread().wait() ) inside a TimerTask Class, the associated Timer class will also be paused? If not, how could I achieve this?

    magaupe wrote:
    I'm using java.util. Another thing is that I must pause it in the middle of the method. Pausing only the Timer wouldn't make the method run til the end?If you are using swing, change to javax.swing.Timer
    The Timer is separate from your running code, you'll have to stop both.

  • Question about photostream on multiple devices

    I have an iPhone and my son has an iPad. I use icloud to photostream to my PC. I would like him to be able to do that too, but I don't want our pictures all mixed up in the same folder on my PC which is what happened when I set his iPad up to photostream. So I went back in icloud and created another folder location for his pictures, but now his photos won't stream to the PC at all.
    Also, the iPad streaming only worked when I logged into icloud using his account. So I assume that means that when I take pictures on my phone, they won't stream because he is logged on. So I logged out and logged back in under my username, but now my photos won't stream. And if I can get the streaming to work again, does this mean I will have to log in and out of icloud all the time if I want to back up both of our pictures to the PC?
    Wasn't sure if this should be posted as two separate questions, but any help would be appreciated.

    I don't think you can do what you are attempting to do.  Your computer can only sync with a single primary iCloud account.  (I haven't tested this, but I believe this is true even if you created a separate user account for each of you on the shared computer, although you could test this yourself if you want to see if separate user accounts would work.)
    Also, photo stream shouldn't be used to back up photos.  You can use photo stream to stream you photos to your computer, but be sure to copy them to another folder for permanent storage.  Otherwise, if you delete a photo from your photo stream, it will also be deleted from the photo stream folder on your computer and you will lose it.  The best way to ensure your photos are backed up is to import them to your computer as outlined here: http://support.apple.com/kb/HT4083.
    To get photo stream working again, you may need to save all the photos in your photo stream download folder to another location, then turn photo stream off on your computer and your devices, then set it up again.

  • Question about Transferring & Organizing Multiple Users w/ Migration Asst.

    Hello,
    What i want to do is this:
    Migrate the User from my powerbook to my macbook under a new User ID on my macbook.
    I essentially want to Clone the current user and all the info, apps, library etc. on the powerbook to a new user ID on my macbook that would be completely seperate from the current default macbook User.. In other words they would have theyre own seperate applications, library, info etc..
    I initially used the migration assistant to transfer the main user from the powerbook to the macbook. So both the powerbook and the macbook have the same named main user. I want to again transfer this orginal user info to my macbook but under a Different name.
    Does anyone know the best way to go about doing this?
    Thanks

    Dear Rando or others professional who might help, 
                 I have same situation as Rando. I am generating an image when user generate it using webservice then i have to display the image in their webpage. Initially i am generating image and put into webservice folder which didt contain service_deleted.txt . Everything is working perfectly except when webservice didt not work probably, many webservice folders are generated and some folders are not containing service_deleted.txt. This cause me cannot put that image into actual webservice folder. 
                 I tried using the way that Rando mentioned but failed. I put an image inside aws folder and try to access using http://localhost:8080/ . But it returns Access Error:404. I have to put inside folder \aws\database-WWWWWW-WWW-WWWW-WWWWWWW , then only can access by using http://localhost:8080/database. May i ask whether i am doing anything wrong in this? Maybe is different version of labview so having different solution? Btw, i am using Labview 2011. Or maybe there is a way to know which actual webservice folder is running the webservice so that i can put my image into the correct folder?

  • Question about using multiple iPods on the same PC

    I've read the FAQs on this subject but I still have a couple of questions about multiple users with separate iPods using the same PC.
    I want to use my family's desktop (A new Gateway with Vista, if it matters) for my new iPod Classic, but my father already has an iTunes account on there for his iPod. I know I can create a new user account on the PC and move iTunes to a shared folder so that we can share music, but will this second account be able to purchase music from the iTunes store or am I going to have to switch between Windows User accounts to make purchases and then move new songs into my separate iTunes account via the shared folder? Will it be its own separate iTunes account (separate user name, separate credit card used, etc.) or will it just be a second library that's dependant on the first?
    I want to be able to have my own iTunes account, make my own purchases in it, and maybe occasionally share tv shows or something with my father.
    If this can't be done, would I be better off just creating new playlists for our two iPods from the same library, or creating a second library on my Father's account?
    Also, if I want to access things I've purchased from iTunes on this desktop in iTunes on my notebook, will I be able to?
    I hope that made sense.
    Sorry if these seem like silly questions. This will be my first iPod as I'm really excited about the 160gig and want to know if these things are possible.
    Thanks in advance for any help

    Hi, Wes.
    Congratulations on your new iPod Classic and Welcome to the Apple Discussions.
    For no particular reason, let's answer your last question first ...
    ... if I want to access things I've purchased from iTunes on this desktop in iTunes on my notebook, will I be able to?
    The iTunes Store operates on a one download per purchase policy so you will have to copy the purchases from one computer to the other and make sure that you authorize the laptop to play the songs.
    As to your first question ...
    ... will this second account be able to purchase music from the iTunes store or am I going to have to switch between Windows User accounts to make purchases ...
    Whatever XP User Account you are logged in to doesn't really matter. What's important is which Apple Account you sign in to ... yours or your Dad's or - if you had my Apple ID and password - The Mimico Kid's for that matter. You can sign in to any Apple Account on any XP User Account. Or any computer for that matter.
    Where the XP User Account comes into play is that it will determine where on your computer the purchases are downloaded. Files will be sent to the iTunes Music folder as specified in the iTunes Edit menu > Preferences > Advanced tab > General sub-tab. Default settings will have a different location for each User Account - C:\Documents and Settings\ user name \My Documents\My Music\iTunes - but if you've read this article in the Apple Knowledge Base, you will know you can change the location of the iTunes Music folder in each XP Account to a common location such as C:\Documents and Settings\All Users\Documents\My Music\iTunes.
    Post back if all this hasn't been as clear as mud and you need anything clarified.

  • I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher

    I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher #1 iPad to its AppleTV without effecting/projecting onto the adjacent teachers #2 classroom AppleTV?

    Not as such.
    Give the AppleTV units unique names and also enable Airplay password in settings with unique passwords for each teacher.
    AC

  • Question about multiple audio tracks

    Hello,
    I see that imovie has only 2 audio tracks available when creating a movie. I need more than two since I will be working with a voiceover track, a soundtrack and at least one background/environment track all at one time. I won't be able to use the sound recorded with the video so that "track" is not an option.
    My question is; Am I out of luck here and need to spend the 1K for studio pro to add more multiple audio tracks?
    Also, I tried working with garageband but since all of my audio tracks import in at a minimum of 40 beats per minute, the voiceovers are all sped up and sound chipmunky.
    Thanks for any help!

    Well I didn't mean to irritate you...LOL And yes, I realize that this is the iM 6 forum but the gist of my question was related to multiple audio tracks in iM and thought I would ask about it in the forum pertaining to the latest release.
    I had already posted a question in the GB forum regarding the bpm problem and found no answers so I was pretty much about to shelve that idea and forgo the whole garageband thing; this without knowing about the new "swap" features. I just updated to iM 6 yesterday.
    As far as the "on-tape" raw audios: I was working on my movie in iM4. I wanted to add more audio bits but I don't have a proper mic for my G5 so I recorded the audio bits on dv8 tape through my camcorder. I imported the video (the image was the inside of my lens cap!), extracted the audio, took those audio files and imported them into GarageBand. That's when I noticed the bpm problem.
    I'm sorry about the lack of info I originally gave but like I said, I had pretty much gave up on the idea of using GarageBand. I'm pretty new at this and I'm trying to decide what I need in terms of software to get what I want out of my movie. I'd be willing to pay for FCxp but still looking into whether I need to do just that or whether I can get by by using imovie and now it looks like GarageBand too.
    ah, thanks for that
    what irritates me, Prince wrote:
    The audio tracks were voiceovers that came from my
    dv8tape, imported into imovie4.
    ... ehm, but this is the iM 6(six) section, as said,
    iM 6 allows now "swapping" files with GB3... (I'm way
    back in the 90ies.... see my specs... )
    so, video is in some iM, and he wants to use the
    actual "on-tape" raw audios...
    I thnik we need a little more detail...

Maybe you are looking for