How do I get the Handle of an Existing Task?

I'm using a National Instruments board with Matlab.  This is allowing me to perform interactive command-line development.  But, I've run into an interesting problem.  I can create a task and forget the handle.  Now I cannot use the task (forgot the handle), but it is still allocated and I cannot re-use the task name (until I stop & restart Matlab).  I realize this is sloppy programming and simply a result of me typing in DAQ commands one at a time from a command line, but - is there any way to return a task handle if the task name is known?  I've searched for a function int32 __CFUNC DAQmxGetTask(const char taskName[], TaskHandle *taskHandle) but it doesn't seem to exist.  Any chance you guys could write one and add it to the library?  It would make interactive development through Matlab easier.

Hello bsimon,
It's been a while since I've programmed in Matlab and I've never used DAQmx in Matlab (in my experience, LabVIEW, CVI, C/C++, any of the .NET languages and even VB, though I hate it, would seem to be vastly superior ADEs because the DAQmx API actually supports these languages).  In spite of my stated inexperience, if you are just making C function calls from the command-line, can't you just 1) directly access whatever variable you are currently passing in for *taskHandle OR 2) explicitly create a TaskHandle *taskHandle at the command line and just access this variable?
Eric
DE For Life!

Similar Messages

  • I already own iWork, and do not want to have to pay for it again,  How do I get the installer using my existing licence

    I already own iWork, and do not want to have to pay for it again,  How do I get the installer using my existing licence.  It will not migrate from one computer to another, perhaps because of the recent system upgrade.

    How did you pay for it?
    Through the Mac App Store or as alicence for a DL?
    Peter

  • How can I get the path of an existing file????

    Hi.
    I'm a newbie in Jsp development, so this question may appear trivial.
    How can I get the path into a String of an exixting file ..like ...
    String thepath = path_of("my file.txt");
    Thanks for your help.

    Try
    application.getRealPath("myFile.txt")

  • How to programmaticaly get the handle of Global DFF

    Hi All
    i have To DFF fields on my page and i have to display them respective to Org_Id,but these DFF fileds are not discibed in about this page so i cant get the id of this fields to tackle them programmaticaly through findIndexedChildRecursive methods,please tell me how to achieve this
    Edited by: Pratap(652641) on Nov 28, 2008 6:12 AM

    try jdr_utils.printDocument(p_document VARCHAR2); from sql developer to get the PG.xml file.
    And using PG.xml file you can find the DFF id.
    here p_document - the fully qualified document name, which can represent either a document or package file
    eg; jdr_utils.printDocument('/oracel/apps/ak/labsolutions/webui/empSearchPG');
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get the handle of AM in custom co

    Hi All,
    I am extending a controller in that controller if I use the code
    OAApplicationModule am1 = pageContext.getApplicationModule(webBean);
    I will get the handle of the am which is attached to the region.
    But i want to get the handle of an AM which exists out side of the region i had imported the AMImpl
    and now please let know how can i get the handle of this AM in my extended CO(custom CO)
    Please reply with a piece of code.
    Thanks
    Ajay

    it gives the Root AM
    but i want to handle the Application module of an lov.
    I was trying with
    CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    But it is giving an class Cast exception as
    java.lang.ClassCastException: oracle.apps.csf.portal.task.server.CsfDebriefAMImpl
    at CsfPoLovAMImpl lotam =(CsfPoLovAMImpl)pageContext.getApplicationModule(webBean);
    Thanks
    Ajay

  • How can I get the Airport Express to handle all the PPPoE stuff?

    Hi, I’m visiting my family in China, and now trying to help my dad, with his Airport Express and how to set up a PPPoE connection.
    We have currently set up the Airport Express in bridge mode (not distributing IP adresses and selecting DHCP under the Internet tab in admin utility). The Airport settings on our two computers is set up to connect using PPPoE using the given login name and password. (ps! we can not see the Base station in Airport Admin Utility when using these settings, we would have to select a new location from the Apple menu to see it and make condigurations.)
    What we want is to do, is to have the Airport Express connect to the ISP using a PPPoE connection and not through the computer.
    I know there is a 'Connect using PPPoE' option in Airport admin util, letting me input account name and password. If I select this setting instead of DHCP, enable distribution of IP addresses and configure my Airport card to NOT connect using PPPoE, I will see my base station in the Airport admin util with the IP address of 10.0.1.1 (or similar) and my computer will have x.x.x.2. Next to the Airport icon in the menubar, a scrolling message will say 'Looking for PPPoE host' without anything happen. I am sure my account name and password is correct as they've both worked when using this computer to connect to PPPoE (like now)
    How can I get the Airport Express to handle all the PPPoE stuff without using bridge mode?
    Ps! Both me and my dad have iPhones whom we can’t seem to get to connect unless its been distributed an IP address cause there's as fars as I know, no options of inputing a PPPoE user name and password.

    Any solutions to this? I'm in China also, in Beijing, trying to get my Airport Express to work with an ADSL modem.
    Direct ethernet cable connection to my Macbook works fine.
    When I configure the Airport Express with the ID and password that seems to be fine also – Airport Express shows a green light.
    But I cannot figure out the settings to connect wirelessly from my Macbook to the Airport Express. I get a constantly scolling message: "Looking for PPPoEhost..."
    thanks
    Paul

  • How can I get the direction handles to show up for the Position attribute?

    How can I get the direction handles to show up for the Position attribute?
    I have CS3 and I did the formentioned test and was able to make the handles work for the scale attribute but they don't seem to show when editing the position values.
    *I am in the graph editor looking at the "value graph"
    *I select the keys and convert the keys to auto bezier (I also tried the ease in and out buttons)
    *It changed the graph the way you might think (no longer linear) however the handles are not showing to edit further.
    *I also tried using the "convert vertex tool" (part of the pen tool) and still no luck getting those handles.
    *the handles only show up in the speed graph but that does me no good.
    Please help!
    THANKS 

    I don't have CS3 installed on any of my machines any more but your value graphs for position should look something like this:
    There are no handles for position in the Graph editor. You adjust the position curve by editing the motion path in the composition window. Press the G key to bring up the pen tool, then use the modifier keys Crtl/Cmnd and Alt/Option to temporarily switch between select and convert vertex to adjust the paths. Changes will be reflected in the value graphs. You will get editable handles with scale and rotation because these are not spatial properties. Spatial properties, position, Anchor Point, all XY & Z coordinates are edited in the comp window or in the layer window after revealing the properties. IOW, you edit anchor point position paths by opening up the layer window and choosing Anchor Point from the display options.
    The Manual isn't wrong. Here's a link to the live docs.

  • How to get the handle of the Validation Failure Message Popups.

    Hi,
    I'm using Jdev 11.1.2.0
    I have added validation rule(less than system date) and failuremessage("date should not after currentdate") on the date field in EO.
    when I enter greated than the sysdate in date field in page, I'm getting validation failure message in a popup with ok button. its working good.
    but when i click on the popup ok button, the focus should go the date field again and it is higlighted.
    So, how to get the handle of the popup's ok buton? and how to highlight the datefield after clicking the popup's ok button?
    Any suggestion would be appreciated.
    thank you.

    if i understood correclty means,
    i hope that, error popup is provided by framework.. how could be possible? to catch the error popup ok button.
    am not well aware of catching the error popup which is provide by framework..
    but i had answer for your part of the question,
    if the condition go off false means you force the cursor into date field. this is can be done using 'javascript'. unless using script you can't do that. ADF doesnt provide any force focusing feature.
    please google how to focus the field.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_programmatically_set_focus
    http://technology.amis.nl/2008/01/04/adf-11g-rich-faces-focus-on-field-after-button-press-or-ppr-including-javascript-in-ppr-response-and-clientlisteners-client-side-programming-in-adf-faces-rich-client-components-part-2/
    http://lspatil25.blogspot.in/2012/04/adf-default-cursorfocus-to-input-field.html
    http://donatas.nicequestion.com/2012/04/component-to-set-initial-focus-in-adf.html

  • How to get the handle of all text fields in the subforms, using script

    Hi Friends,
    I have around 20 fields in a subform, how can i get the names of all the fields using script.
    I wish to enhance the following script where the field names are hard coded
    thereby the script itself will get the names of the field names.
    var f1 = this.parent.somExpression + ".TextField2" + ",";
    var f2 = f1 + this.parent.somExpression + ".DropDownList1" + ",";
    var f3 = f2 + this.parent.somExpression + ".NumericField1";
    xfa.host.resetData(f3);
    Any help will be greatly appreciated..
    Thanks
    JJ

    Hi Paul,
    Thanks for your comments.
    I achieved the clear contents by resetting, by taking input from your thoughts..
    form1.sub1.sub2.sub3.table_1.addDelete_Top.addDelete.deleteRow::click - (JavaScript, client)
    //Here is my code finally look like..
    //row 1, table_1 are also subforms
    for (var i=1;i<10;i++){
    var myRow = this.resolveNode("table_1.row1[" + i + "]");
    if(myRow.presence == "hidden"){
    i = i-1;
    var myRowDelete = this.resolveNode("table_1.row1[" + i + "]");
    if(i!=0){
    xfa.host.resetData(myRowDelete.somExpression);
    myRowDelete.presence = "hidden";
    break;
    if(i==9){
    xfa.host.resetData(myRow.somExpression);
    myRow.presence = "hidden";
    break;
    Thanks
    JJ

  • How do I get a handle on embedded sound files?

    From the Sound Class information, it says to use the SoundMixer Class to handle embedded Sound Files.  I have two sound files embedded, that I have setup in 2 separate layers, starting at frame one in the main timeline.  I needed to do this so I could see the wave files, and coordinate text with the waves.  I do not want to load these files into the .swf file at runtime using URLRequest.  How do I get a handle on those as they exist, to make each controllable by separate volume and mute controls for each sound?
    This will be a challenging question, because, "it can't be done" doesn't work for me.  I managed to create a way to use an external classfile to control the main timeline, the ROOT timeline, without having to create a sub movie to root.  I can use my component to call play(); as though it were in code in a frame.  But it isn't, it's in an external classfile.  I passed root to the classfile and told the classfile to think of it as a movieclip - that put the handle on it.  I tried similar way with root as a Sound, but that isn't detailed enough - I need to get a handle on the frame that contains the embedded sound file.  I embedded, attached it, using the properties view for the frame.
    I've attached, or whatever you want to call it, these sound files to a frame, and this frame is or should be attached to the layer I've created.  So, under the assumption that the ROOT has everything attached to it in some manner (it is after all the foundation for the COM), the stage of the root contains the visual components, so ROOT has to have the layer objects attached to it, which should have the frame objects attached to the layers.  I have two layers that each have a .wav file attached to frame one.  Somehow Flash keeps track of that - I want to know how Flash does it so I can read what flash reads.
    If this seems redundant, it probably is.  I want to paint the best picture I know how so I can get detailed feedback.  Please, if you have questions ask them so we can clarify, and get this resolved!  Thanks for reading!

    lol.
    ok, it can be done.  keep working on it.

  • In popup step how do I get the "text on the button" in the report rather than button index?

    (1)
    How do I configure the POPUP step in "SEQ MAIN.seq" to execute the second
    step (IS OUT PUT IS 20?) in "SEQ 1.seq" when "IS OUT PUT IS 20?" button
    hit and execute the third step (IS OUT PUT IS 30?) in "SEQ 1.seq" when "IS
    OUT PUT IS 30?" button hit.
    (2)
    In popup step how do I get the "text on the button" in the report rather than button index?
    File attached
    Attachments:
    test_stand.zip ‏32 KB

    The handle to the Step.Button1Label gets you the data, but there are several ways to get it into the actual report.
    The easiest is to use the reporttext.
    In a post expression, you can use something like
    Step.Result.ReportText = Evaluate("Step.Button" + Str(Step.Result.ButtonHit) +"Label")
    and then the default report generation will include it in the report. Otherwise, you need to get the text into the Resultlist by various means (check the user manual, or the TestStand II customisation course) and handle the report generation yourself inside of the appropriate sequence in the process model.
    Just my 2cents
    S.
    // it takes almost no time to rate an answer
    Attachments:
    IncludeButtonTextInReport2_0.seq ‏18 KB

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • How do i get the movies that I bought on iTunes onto my new macbook through iCloud?

    how do i get the movies that I bought on iTunes onto my new macbook through iCloud?

    Welcome to the Apple Community.
    Firstly iTunes and iCloud are different things, movies are handled by iTunes.
    iTunes now has iTunes in the cloud and iTunes Match, but neither deals with movies. Your purchased movies will need to be copied from your old computer to your new one.

  • How can I get the Task information..? Remedy for error "-200089"

    Hello,
    I am using PCI-6229 for the application, and VB6 for application development.
    We have a policy to create the tasks and associated channels using Measurement and Automation Explorer.
    I want to know can I retrieve the information of the tasks those are created ..
    When my VB program starts, I use DAQmxLoadTask function to start executing the task, but for this I need to know the TASKNAME. On site if the service engineer accidentally renames the task name, the program stops execution. To avoid this problem, i would like to know how can I get the information about the tasks, such as the tasks those are created, their names, type of channels used (i/ps, o/ps, Analog channels), etc.
    This would help my application to execute without hard coding the task names as well as I can close the tasks if they are running before exiting the application. 
    Also, while developing the application, it happens that the application crashes, and the tasks remain open and running. After I fix the error and execute the program, the application reports the error, "-200089 Task Name specified conflicts with an existing task name". To recover from this error, I need to restart the PC, which is most frustrating and time consuming. If I could know the tasks and task handles those are already created and running, I can safely delete them or continue using them.
    I would appreciate if you could help me in resolving this problem.
    Thank and regards,
    Kunalb

     Hi Kunalb,
     To read the tasks currently configured on the system you can use this function: DAQmxGetSysTasks.  This will return an array of the tasks on the system. In that same section of the DAQmx C Reference Help they talk about obtaining the other parameters you mention.
     Another solution would be to add security to MAX such that only engineers with proper permissions could launch and/or modify the tasks. This can be done with Windows XP in the properties of a file.
     I hope these suggestions help! Have a great weekend.
     Best regards,
     MatthewW
     Applications Engineer
     National Instruments
    Message Edited by Matthew W on 08-10-2007 02:13 PM
    Attachments:
    DAQmxTasks.JPG ‏97 KB

  • How do I get the internet traffic to come to my own server?

    If I'm moving from paying a host for coldfusion to using my own license on my own server, How do I get the internet traffic to come to my own server?

    You connect the computer to a network.  This is pretty much automatically handled by the hardware and the operating system.
    You may want to read up on some of the basics of networking and the tcp/ip world.
    To have a networked computer tell you its IP address type 'ipconfig' at a dos command line.

Maybe you are looking for

  • How do I install DW on my new computer when my account tells me  "You have no downloads" ?

    I have deactivated DW on my old computer.  When logging into Adobe on my new computer and selecting to download DW, I get a screen that reads, "You have no downloads."  How do I install DW on my new computer?

  • No fans working withouth Lubbo's fan control

    Hi. I recently installed on a Boot Camp Partition, Windows 7. I installed correctly all the drivers using my iMac installation CD, in windows. However i can't get the fans working, if i don't use Lubbo's Fan Control software: this is the only way to

  • 1042N-A-K9 Default Username and Password

    I just recieved in the mail an aironet 1042n ap. It was assigned an ip of 192.168.1.254 by my router. When I attempt to connect it prompts for a password and states the default username and password is admin and 1234. It will not except this, or Cics

  • Import asian file name files

    I am trying to import some old songs with asian file names and asian characters in the meta tags. itunes won't import them. any way around this? There are japanese, chinese, and korean characters if that makes any difference.

  • Oracle 11g Release 2 "error in moving file"

    Hi there, right now I'm trying to install Oracle 11g release 2 64-bit on Windows 7 64 bit. about half-way through the installation i get an error message: "error in moving file C:\app\dlee14\product\11.2.0\dbhome_1\bin\oralbac11.dll to C:\app\dlee14\