Using MoviePlayer sample with two buttons and two movies

I am using the MoviePlayer template and would like to have two buttons on the screen and play two different movies. I can't seem to figure it out as to how I would do this. I have created the two buttons in interface builder but can't figure out the routine in the myViewController.m page to code it. I am thinking I need to create a variable for the movie path that fits into the -(IBAction)playMovie1:(id)sender and (IBAction)playMovie2:(id)sender sections. Please HELP if you have suggestions. I am stumped and can't find anything on this!
Thanks,
Frank

Are you trying to acquire from one camera at a time or switch between the two cameras in the same acquisition?
If you simply want to use channel 1 instead of the default channel zero, then just add a constant to the IMAQ Configure Buffer VI in the LL Triggered Snap example to specify channel 1.
If you want to alternate between the two cameras, then you could start with the LL Ring Scan Channels example. Add a Configure Trigger VI between the Configure Buffer loop and the Start and specify "Trigger Each Buffer". By default the example will set up an acquisition on all 4 channels, however you can change this to use only 2.
The board does not support using different triggers for different channels.
Regards,
Brent R.
Applications Engineer
National Instrument
s

Similar Messages

  • How to handle event structures for two buttons and two counters.

         *I have two buttons A and B, and have to compare the difference in hits between them.  So do I place an event structure within a while loop for each button (2 buttons, 2 event structures, 2 while loops), or does it need to be one event structure with cases for both buttons whithin one while loop? 
         *How do I pass the values of buttons A and B's hit counters out of the while loop in order to calculate the differences between them after each increment, not just the final count after the stop button is hit? 
         *How would I make one stop button work to handle both buttons A and B?   I tried to place the actual stop button in one button A's structure and its global in B's structure, but It wont seem to let me use a local variable for a latchable control
    Checker

    You should probably have not started a new thread and waited until your question in the original thread was answered. You can modify altenbach's example for a second button. You have a single event structure with a new event for the second button. You have a second shift register to track the number of times the second button is pressed. Inside the while loop but outside the event structure, you just have a subtract function in or to report the difference. do not modify the posted example for the stop button. It works perfectly as is.

  • TS3474 my i pod is still on a white screen after restoring with the two buttons and also restoring on i tunes and it still has a white screen

    my i pod is still on a white screen after restoring with the two buttons and also restoring on i tunes and it still has a white screen

    I've been struggling with mine all morning with the same issue.
    Mine would not wake up from sleep (will just white screen).
    It will boot using a hard reset (i.e. the power button and volume down button being held down for 8 or so secs). I restored and synced it multiple times but it still has a problem waking up and just just goes to white screen.
    I saw a post suggesting a loose connection which I had my doubts about (as it will wake with hard reset) - bit BINGO! If I wake mine (with index finger) whilst applying pressure to the top of the screen area (with my thumbs) it will wake up. When I become frustrated enough I'll take it apart and see if something has become loose.
    Hope this helps.

  • My iPad is frozen. Does not turn off or charge just black screen with logo. Tried to reset by pressing the two buttons and nothing.

    My iPad is frozen. Does not turn off or charge just black screen with logo. Tried to reset by pressing the two buttons and nothing.

    Then you should try restoring the iOS software next. Read this and pay attention to the last part of the article that describes recovery mode, you may have to restore your iPad that way.
    iTunes: Restoring iOS software - Support - Apple

  • I have two apple ids somehow, probably from two mobile and two computers - how do I merge them into one account so they all work with iCloud?

    Somewhere, somehow, between two mobile and two macs, I ended up with two apple ids. I figured that this was the root of my problem to syncing. So, I am syncing Mail, Contacts, etc through the one account that I bought storage on this year in iCloud. I want to merge the two accounts, since many of my apps were purchased with my other id. Apparently, Keynote will not merge files since the app was bought with the second id, not the id I am using for icloud.
    What to do??? I read, in the forums, that I am definitely not alone. I always had the id I used for the Apple Store to buy iTunes items, and then apps. The other id, that I am using for iCloud was based on my iDisk id, and apparently I set up as a separate account. The much failed iDisk account appears to be the one that I wish I never got involved with. Should I feel the same way about iCloud. If I cannot merge the two APPLE accounts from the same person (ME!!!), then many dropbox really is the answer for my file sharing needs.
    Please help me decide.

    To begin with, I would like to try to explain Apple's confusing nomenclature in regard to iCloud.
    Apple have called the whole cloud thing iCloud, there are a number of features under the iCloud umbrella, some of which require their own login. iTunes is one of these, another is what Apple have unfortunately also called iCloud too.
    You can use the same Apple ID (account) to login to both iCloud and iTunes, but you don't need to and often users will login to each service using a different ID.
    The part that you need to remember is that the services available when you log into iCloud are completely different and unrelated to those when you log in to iTunes. Your iCloud login enables mail, contacts, calendars, find my phone, Back to My Mac, Documents & Data sharing and photostream, it does not affect any of your iTunes services.
    To avoid confusion when discussing your problem, when I mention iCloud, I am referring to the services under the iCloud login, Whereas I will refer to the whole cloud thing as The Cloud.
    To go back to your question; you cannot merge accounts, but perhaps using one account for iCloud and the other for iTunes will resolve the majority of the reasons you needed to merge to begin with.

  • Where can I find a sample of application with textboxs ,buttons and ..

    Hi,
    I'm new to Java and I'd like to know where can I find a sample of application with textbox, buttons and accessing a database (Oracle or MS-Access) something like a commercial application to start my knowledge in Java. I'm a developer and I use Visual Basic with Oracle DB. I have knowledge in C language.
    Thanks.
    Autair

    Hi Lionalx,
    I've tried to follow your tip but I got a page that contains the following message : "This directory contains some helper apps and scripts for setting
    up Microsoft Access, SQL Server, or Sybase databases to use with
    the examples in examples/Table. For details see the online
    documentation in:
    http://java.sun.com/products/jfc/swingdoc-current/db.html". Just it. So I've copied the indicadet address but it's redirect to main page of 'swing'. I was there before.
    Despite of this error, I'm finding some interesting tips in the address that you indicated. OK?
    Thanks.
    If you have something new or tip please write me
    Thanks
    Autair

  • I have an 21.5 Mid 2011 iMac and i want to upgrade my RAM.  Currently I have two 2GB and two free slots.  Do I have to put in two 2GB in the free slots or can I use two 4GB or 8GB?

    I have an 21.5 Mid 2011 iMac and I want to upgrade my RAM.  Currently I have two 2GB and two free slots.  Do I have to put in two 2GB in the free slots or can I use two 4GB or 8GB?

    You can leave the existing RAM in their current slots and add compatible modules in the empty slots. For best performance, add two of teh same size. Our 2010 iMac 21" shipped with 4GB RAM---two 2GB modules in two of the four slots. I added two 2GB modules to the empty slots and now have 8 GB RAM.
    Be sure to order RAM from a trusted Mac-savvy RAM vendor. Some vendors thing a Mac is a hamburger. For over a decade I've bought all our Mac RAM (and we have 18 Macs in teh family!) from one vendor:
    http://eshop.macsales.com/shop/memory/iMac/2011/DDR3_21.5_27
    The link is to the proper RAM for your Mac.
    Crucial.com is also a trusted vendor.

  • HT1420 I use two MacBook pro, two iPads and two iPhones. Upon connection and attempt to synchronize photos I receive a message that my authorization limit is exceeded. I read that iOS devices do not count against the authorization limit.

    I use two MacBook pro, two iPads and two iPhones. Upon connection and attempt to synchronize photos I receive a message that my authorization limit is exceeded. I read that iOS devices do not count against the authorization limit. One iPhone and one iPad show in the authorization list. iTunes wants to delete my purchased programs and books from the iPad to continue synchronization. What can I do?

    Ok, now I do wish I could edit....
    I forgot to APPLY the network settings for the USB cable to work. Connected thru USB I can tether.
    So, I kept playing, and playing some more...
    I had previously unpaired everything, and gone as far as removing network devices HOWEVER...
    I didn't remove the Ethernet, Firewire or Airport Network devices.
    Now, I have done so. I REMOVED EVERYTHING
    No pairing, no network devices.
    Bluetooth was already turned off, and I rebooted.
    I turned off tethering and rebooted the iphone.
    I turned on bluetooth (on the MBP), I turned on tethering. I browsed for the iphone. It said I was already paired???? Ok, repair AGAIN, and THE IPHONE SHOWED MY BLUETOOTH TETHERING BLUE BAR at the top of the screen!
    I opened a web page, no go... d4mn, I was close...
    Opened network preferences and the created a new bluetooth PAN and voila! Internet back on the MBP. I am about to reinstall the ethernet and airport (I can live without firewire for now) and see what happens.
    Basically, the link I posted two posts ago, I had already done that, but I NEEDED to remove ethernet, firewire and airport as well...
    So MAYBE it's fixed, we'll see for how long. I'm not going to mark this as answered for now, because basically, it has failed for no reason, and I want to know why...
    Hopefully someone can come up with something, but having to delete and reinstall all pairings and network devices (to me) is not really a solution, it's a workaround (at best).

  • My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

  • I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Cent

    I was online earlier this week and liked the forms with submit buttons and the Adobe site directed me to upgrade to Adobe PRO XI in order to use forms so I bought five licenses. Just had it installed today and it is now asking me to sign up for forms Central in order to use this feature. What gives? The Adobe site gave me the impression that I would have this feature after purchasing the new upgrade. I would not have purchased the upgrade, let alone five of them had I know this. Am I missing something?

    Acrobat XI comes with the Fromscentral AIR application and the ability to create PDF forms authored in Formscentral. To have more than the free (1 form with 50 responses) level account you need to sign up for a Formscentral subscription.
    Andrew

  • Get number of hours between two dates and two hours using factory calendar

    Hello all,
    I have the following requirement: I need to calculate the number of hours between two dates and two hours (start date- finish date and start hour-finish hour) or timestamps using a factory calendar. I must program it on CRM environment.
    Does anybody know a function module that makes it?
    Thanks in advance.
    Carmen

    Please check function module DURATION_DETERMINE.
    - April King

  • We have two ipads and two different itunes accounts, can I sync my wife's apps and she mine?

    we have two ipads and two different itunes accounts. can I sync my wife's apps and she mine?

    Yes, you can use the apps from both accounts on the same iPad. You will both need to authorize each others iTunes account for use in each others computer account. You may authorize up to five Macs/PCs to use stuff from your account and that computer can then transfer the stuff to up to 10 iOS devices.
    Open iTunes in your account and have your wife sign into her iTunes account in the iTunes app. First authorize your computer account to use her iTunes stuff from the iTunes Store menu. Then have your wife download all of the iOS apps that you want to use into iTunes. Now you do the same in her computer account.
    Remember that only you can update apps acquired with your iTunes account and vice versa. So you will need to either sign into iTunes on the computer or directly on each others iPad to update any apps that need it. It is a little confusing at first, but you get the hang of it quickly.

  • Can bookmarks be protable for multiple computers? Is it an option to log on and use my bookmarks with multiple computers and locations? Thanks

    Can bookmarks be protable for multiple computers? Is it an option to log on and use my bookmarks with multiple computers and locations? Thanks

    Profile is a folder which store all your personal data in a safe place
    * https://support.mozilla.com/en-US/kb/Profiles
    You can use this button to go to the current Firefox profile folder:
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    here explain how to backup profile
    * https://support.mozilla.com/en-US/kb/Backing%20up%20your%20information
    Here explain how to restore it
    *https://support.mozilla.com/en-US/kb/Recovering%20important%20data%20from%20an%20old%20profile

  • TS3274 I used to double click home button and then hold down each - app.

    How do I close out apps with iOS 7? I use to double click home button and hold down each - app.

    Double tap the home button, swipe to the large image of the app then swipe up and off the screen

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

Maybe you are looking for

  • Problem installing SOA suite 10.1.3.1 on RHEL4 AS

    Hi, I want to install SOA sute on a machine with RHEL 4 AS Operating System. I have earlier installed oracle 10g R2 on the same machine. It s installation went on smoothly. For both installations I followed documentation given in OTN. But SOA install

  • Converting CAP 3 files to Cap 4 files

    Hi, I recently purchased Cap 4. I already had Cap 3 on my computer prior to downloading Cap 4. I thought that Cap 4 would automatically convert older C3 files to C4. So i removed C3 software. Once removed, all current C3 files were shown as unopenabl

  • Multiple Axis Waveform Chart History?

    Hello Everyone, Recently I have been working on increasing my capabilities with waveform charts.  I am plotting 3 signals on 3 seperate axis.  I'd like to be able to transfer the plot history from one chart to another via property nodes.  The problem

  • SPM Addon Installation error due to BI cont 7.04

    Hi All, I am installing SPM 2.0 ( Spend Performance Management )on BI system with BI cont 7.04, installation is not starting complaining that BI CONT should be 7.03. Following messages are thrown in the  SAINT. OCS package SAPK-200AGINOPMFND does not

  • Event renaming bug?

    If I remember correctly, in iLife '09 it was possible to rename the Event title while viewing the photos therein. In iPhoto '11, however, the only way to rename the Event's title is to return to the list of events and rename it there. There exists NO