Does return main keeps task still in system and be available for other tasks

Hello out there,
I'm heavily stuck to a difficult problem:
Currently I work on a project that is realized in Matlab. So I have Matlabcode that needs to access a NI acquisition card. This is done via MatlabExecutable (short: mex). This just creates a dll file from a cpp file:
Matlab code -> C file-> NI card.
The problem is that normally - in a single c file - you create a task, configure it, start acquisition, check for errors, exiting c code.
BUT, I have following situation:
Matlab -> create_task (configure, etc) -> NI
Matlab -> start_acquisition -> NI
Matlab -> cleanup -> NI
So I need to get the taskHandle from each step. And here I'm stucked. It doesnt work.
Matlab -> create task -> NI: everthing is fine I got all parameters created and I receive the task Handle back to Matlab
Matlab -> start_acq -> NI: I hand over the task Handle but the function DAQmxLoadTask(handle) doesnt work.
Besides my implementation, would it work?? Will the task still be in the system if the c file runs through without cleaning/destoying the task?
And could the DAQmxLoadTask function retrieve it?
Regards
Rked

Hi Rked,
how does the "doesn't work" show? Is there an error message? A crash / hang?
Regards,
Stefan

Similar Messages

  • After installing yosemite iphoto does not open keep getting message"This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    I upgraded to yosemite iphoto does not open keep getting message"This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled.

    Contact App Store support. There's a link on the right hand side of the App Store Window. They're the only ones who can sort out account issues.

  • I currently have Iphoto v. 9.1.4.  There is an update v. 9.4.3 that I am unable to install.  I keep getting a message, "you have updates available for other accounts.  To update this application, sign into the account you used to purchase it."

    I have iPhoto v 9.1.4.  Update available is 9.4.3.  I keep getting this message:  "You have updates available for other accounts.  To update this application, sign into the account you used to purchase it".  I have done this and I keep getting the same message over and over again.  Please help me!

    Please try each of the following steps you haven't already taken, until the issue is resolved. After each step, relaunch the App Store and try again.
    1. Follow the instructions in this Apple Support article.
    2. If any App Store purchases were made under a different Apple ID, or if the bundled iLife applications were accepted under a different ID, sign in to the App Store with that ID to update.
    3. Alternatively, delete the probem applications and re-download them with the ID you're using now. If you haven't already purchased them with that ID, you'll have to do that first, because purchases can't be transferred from one account to another.
    4. Select the Purchased tab in the App Store window. If you see an item in the list marked "You have 3 apps to accept," click Accept.
    5. Triple-click anywhere in the line below on this page to select it:
    /Library/Caches/com.apple.appstore/adoption.plist
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu. A Finder window may open with a file selected. If it does, delete the selected file. You may be prompted for your login password.
    Then repeat step 4.
    6. Select
    Store ▹ View My Account
    from the App Store menu bar, then select View hidden purchases. If you're trying to update any hidden purchases, unhide them.
    7. Launch iTunes and select
    Store ▹ Authorize This Computer
    from the menu bar.
    8. If you've moved any App Store apps out of the Applications folder, or into a subfolder, put them back. Never move or copy those applications. If you have backup copies of the apps on another volume, unmount it and try to update again.
    9. Contact Account and Billing Support.

  • Multiple data flow and sql tasks in a container - are records available in other tasks before transaction commits?

    If I have 3 data flow tasks A > B > C
    Then a SQL task that executes a procedure.
    Can the procedure refer to records that have been added in one of the previous data flow tasks?
    All the tasks are in a container that will commit when its finished, but if its not finished yet, will the SQL task and the procedure be able to refer to any of the records that were loaded?

    That depends on how you handle connections.  Changes made in a transaction are visible to only the connection that made the changes until the transaction commits or rolls back.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • If i download windows with bootcamp does that mean i can still use Macintosh and if so how

    if i download windows with bootcamp does that mean i can still use Macintosh and if so how

    Welcome to Apple Support Communities
    If you installed Windows properly, you can still start in OS X and use it whenever you want. However, Boot Camp changes the startup partition to Windows, so you may note that you can't use Mac OS X.
    There are two ways of starting in OS X:
    1. Hold the Option (Alt) key while your computer is starting until you see all the bootable partitions in the screen, and choose your OS X partition.
    2. Hold the X key while your computer is starting.
    If you have a iMac or a Bluetooth keyboard, make sure you hold the key after hearing the startup chime.
    If you want to start in OS X by default, after starting in OS X, open System Preferences > Startup Disk, and choose the OS X partition

  • Why does my ipad1 keep closing out of games and Facebook before I want too?

    Why does my ipad1 keep closing out of games and Facebook when I am looking at still playing or checking comments on Facebook? This has been happening more and more frequently.

    Try reseting the iPad (different from restarting). Hold down on both the Sleep and Home buttons at the same time for about 10-15 seconds (ignore the red slider button). Keep holding both buttons until the Apple Logo appears. When you see the Apple logo on the black screen, let go of both buttons. Once it powers back up, try your games and Facebook. This "reset" fixes a lot of weird iPad issues.
    Hope this answers your question!
    ~Joe

  • Will reinstalling Lion via the Lion recovery partition cause you to loose all of your applications, documents, etc or does it just replace the Lion operating system and leave everything else untouched?

    Will reinstalling Lion via the Lion recovery partition cause you to loose all of your applications, documents, etc or does it just replace the Lion operating system and leave everything else untouched?

    The latter. I cant tell you how many times I've reinstalled lion! all your apps will be fine!
    Things that will change are system graphics if you altered them with something like candybar or did it manually.
    Having said that, you should always backup your stuff with time machine incase something does happen.
    This is a very important step which will insure the safety of your files while doing things like updating or installing the OS.
    Please exercise caution when doing things with a Hard Drive.

  • Why does the English keep defaulting back to US and not British

    Why does the English keep defaulting back to US and not British.
    This is clear enough it does what it says in English British English

    Where do you get this problem?
    Is this with the spell checking dictionary or with the language setting?
    *Tools > Options > Content > Languages
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Is is possible to stream a movie through my Macbook pro 15inch onto a TV through my HDMI-DVI chord while also using my computer for other tasks and minimizing my streaming show.

    Is is possible to stream a movie through my macbook pro 15in onto a TV through my HDMI-DVI chord while also using my computer for other tasks and minimizing my streaming show.

    To enable a second display over AirPlay, you first need to be connected to the same network as your Apple TV. Next, open System Preferences > Displays, and select your Apple TV from the “AirPlay Display” drop-down menu.
    Once you do this, your display may flash as the second display connection is acquired, and the Apple TV takes over as the second display. If the displays are mirrored, then you can correct this by opening the “Arrangement” tab in System Preferences > Displays, and ensuring that the “Mirror Displays” checkbox is unchecked.
    In this same “Arrangement” tab, you can move the displays around in the pane to ensure that they're positioned correctly, relative to your physical space (usually side-by-side, or top-down). The primary display here is denoted here by the Menu bar on the display. The arrangement helps with being able to drag windows from one display to the next: if your secondary display is arranged to be to the right of your primary one, for example, you can drag things to it through the right side of your primarcy screen.

  • System and landscape estiamte for SCM on Hana for Practice use

    Hi All ,
    We want to know the System and landscape estiamte for SCM on Hana for Practice use.
    Regards,
    Abhishek

    Hi,
    Perhaps this link could help
    http://wiki.sdn.sap.com/wiki/display/SMSETUP/MaintenanceofProductintheSystemLandscape
    Also check out the note :
    For SCM Add-On Products like SAP SNC, SAP EM, SAP F&R the basis component (SAP Netweaver Release) has to be also assigned as relevant Product Instance
    Might be helpful, if you check the product versions being reported for the system in the SLD.
    Regards,
    Srikishan

  • I keep getting notified I have an update available but when I try to update I get the following msg ,"You have updates available for other accounts". I only have one account with apple and purchased the software when I got my macbook in Aug 2012.

    I keep getting notified I have an update available but when I try to update I get the following msg ,"You have updates available for other accounts To update this application, sign in to the account you used to purchase it.". I only have one account with apple and the software was preinstalled when I purchased my macbook in Aug 2012 with that account. Has anyone had this problem or know how to find out what account apple needs?

    You log into the App store using the same Apple ID you used to set the computer up, verify that none of your apps are hidden and that they have all be accepted and then download and install the update
    for help contact the App store support - link is on the right ot the App store window
    LN

  • Define Logical Systems and Template Names for BW Reports

    Hi experts
    I would like to know if someone used the mentioned functionality 'Define Logical Systems and Template Names for BW Reports, I would like to know too IF I create a Z REPORT for example in webdynpro and insert it in this configuration it will work and where it will appear in sourcing cockpit?
    sds.
    Javier

    Hello Muthu,
    BW reports will be shown in SRM Box if the corresponding BW roles for SRM are integrated with SRM roles.
    You might to activate the corresponding datasource of this in SRM.
    And since you have to connect the source system to BW, I think you have to define SRM system as logical system in BW.
    Regards,
    Pavan

  • Output does not match data sheet as only 1 report was available for selecti

    Output does not match data sheet as only 1 report was available for selection in hyperion planning.Can anyone help me in resolving this issues.Its very urgent.

    You will need to provide much more detailed information before anybody can help.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How do we create user defined Task in OM & Which report we run for the Task

    Hi
    How do we create user defined Task in OM & Which report we run for the Task.
    Regards
    Rajesh

    You can create tasks using PFCT or path: Human resources> Organizational management> Expert mode> Task catalog in Easy access.
    Check this link may be useful for you: http://help.sap.com/saphelp_40b/helpdata/pt/fb/135d89457311d189440000e829fbbd/content.htm

  • Mobile Operating systems and Devices support for Dashboards 4.0

    HI ,
    Need Help on  Mobile Operating systems and Devices support for Dashboards 4.0  from sp5 or higher.
    According to below link ,some of the mobile devices are not supported.
    Steps to view SAP BO Dashboards (Xcelsius) on Ipad
    Note: Dashboards are currently not supported on IPhone devices even with latest version of mobile app.
    Note: Dashboard Support to Android(Only Tab not Android phone) is available from SAP BO 4.1
    Checked the PAM  but ,couldn't get the info regarding devices.
    Need Help!!!!!
    Regards
    Sushma

    Hi Sushma,
    Please check the below link & let me know for any assistance.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10e77da7-14a8-3010-6d98-e4aea55e7e56?QuickLink=index&…
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0134dbb-8f10-3010-5084-cf90dbb35284?QuickLink=index&…
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/507d3365-009b-3010-04b0-e5abc8f00c91?QuickLink=index&…
    Dashboards on Mobile/ IPAD
    --SumanT

Maybe you are looking for

  • Color management setting wont stay set?

    Running Acrobat Pro 9.4.1 in conjunction with CS5 Design Premium. Not only does the color management setting in Acrobat not change when set and synced from Bridge. The setting wont stick when set directly in Acrobat. Does anybody have a similar issue

  • JAVA, XSLT, Mappings

    Hi,         Can any one provide me the JAVA, XSLT Mappings with video demonstrations. Regards, Nissi

  • Problem applying Spry tool tips to child pages because the head tag is in a locked region

    I'm new to DW and migrating a site from GoLive CS2 to DW CS5. The site uses templates created in GL CS2. I have stripped out as much GL stuff as possible. I want to use the SPRY tooltips as a way to show captions for graphics that are on some of the

  • How can I insert jpeg images into a PDF's Header and Footer?

    International Clients send me a lot of pdf price lists (hundreds).  I want to be able to easily add our letterhead header and footer jpegs to my Acrobat one time so that I can then have them easily placed and printed on each new original document I r

  • Gray screen while using mac book pro

    While using my mac book pro the screen suddenly turnef gray. I tried restarting my computer, but the screen remained gray. I don't know what to do please help!!!