DLL Call doesn't work the second time

The first time I open the VI, it runs properly. Why doesn't doit the next time I open it.
Attachments:
PGS67Open.llb ‏72 KB

Dobi,
Please post the dll. I cannot run your code without it.
Also, the problem may be that you cannot call this twice, without first 'closing' the device. You may be trying to use resources that are already in use. This would be the same as opening a daq session that is already in use.
Try that, and if you can't get it working still, post the code or some more information.
Good luck

Similar Messages

  • My iPod touch 4th gen white's home button doesn't work the first time I press it, but the second time.

    My home button doesn't work the first time I press it, but the second time.  This is very annoying.  Why is it doing this?

    - Try a reset. It cures many ills and nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    -If a hardware problem see:
    fix for Home button

  • C++ Call to DLL made in LabVIEW Fails the second time it is called

    I have an application where a C++ executive calls a LabVIEW DLL (a LabVIEW application built into a DLL).
    The executive calls and operates the DLL fine the first time (NT, the applications task manager shows LabVIEW runtime runs, then stops when the DLL is done. However, when the executive calls the DLL a second time, it hangs, and the runtime engine never shows up in the applications task manager as running.
    However, this only occurs when something like IMAQ, DAQ, or another custom DLL call is occurring. We tried it with a simple DLL that only uses a call to the sound VIs, and it seems to run fine, although as the program called is very short, and the task manager slow, we never see the runtime engin
    e in the task manager. We are going to put a popup dialog in to ensure that the DLL is being called reliably, but we believe it is.
    We are unable to answer why when we call something that uses IMAQ, that the DLL doesn't run right the second time. We are unsure of the reasons, but believe it to be related to thread creation and destruction in the executive.
    If anyone out there has any insight into this, we would be happy to see it.
    We will be putting in a formal request for support from NI, but wanted to poll the audience as well, as we know from first hand experience that LabVIEW users often times have more experience with this sort of thing than developers.
    Thanks a bunch

    > Thanks for the information Greg. There is no documentation on this
    > issue, except for the email that we got from NI Support. This is
    > quite a new realm for us and NI alike. We would like to know what
    > your experiences have been on this subject. If you have a bit of
    > information, perhaps we should suggest a topic. As I said, this is a
    > new frontier for LabVIEW, and there are a lot of things that NI
    > doesn't know, and I'm sure a few of the programmers out there have
    > figured out.
    >
    I often answer emails from home, but I work for NI on the LV development
    team. So anything I know about, NI knows about. The info I was
    describing about the DLL execution system is not well documented since
    we were hoping that it would work we
    ll with the way Windows Apps are
    typically written. I suspect that we will need to write a Tech Note
    to cover the nitty gritty. This sort of info gets lost in manuals,
    and it is subject to change as we learn how people are expecting to
    use it.
    Anyway, my post was to explain why your use of it didn't work.
    In general, we believe that LV DLLs are thread savvy, reentrant
    VIs can be called from multiple threads simultaneously, execution can
    continue in the background after the DLL call has returned, and the UI
    is live provided the calling app processes messages in that thread.
    If you have other issues or questions, just ask.
    Greg McKaskle

  • EPCF not working the second time

    Hi all,
    we are developing using four iViews in the same screen: one left menu, one top menu, a footer and a main view in the central part.
    We use launch a EPCM.raiseEvent by clicking in one link in the footer which causes a change in a field in the central iView by using a handlerFunction launched by a EPCM.subscribeEvent and it works properly. Then we click on a button in the central iView who changes the complete content of the iview by going to another JSP. It only changes the central part. Then by raising a different or the same event in the footer to change another field in the new central part (by using another EPCM.subscribeEvent sentence) don't work. We have detected that the second time we try to use the EPCF around the application it does not work. Only works the first time the first screen is loaded.
    What could be the problem????
    Many Thanks.

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • Call transformation: tt:cond using="exist..." doesn't work a second time?

    Hello,
    unfortunately I did not find a solution in the internet. So I'll try to get an answer here.
    I  created a simple transformation and want it to work with two similar internal tables. These tables contain one different column with different names and types.
    <tt:loop .... name ="line">
         <tt:cond using="exist($line.columnname1)">
        </tt:cond>
        <tt:cond using="exist($line.columnname2)">
        </tt:cond>
    </tt:loop>
    During deserialization time the second <tt:cond does not recognize that columnname2 exist. If I write something like
    <tag><tt:value ref="$line.columnname3" /></tag>
    beetween these two tt:cond groups columnname2 is found afterwards.
    I know that I can add an addiional parameter describing the type of the table.
    But my question is whether I did something wrong or whether there is an other solution without using any additional information.

    I tried it your way and got error.
    I added a close and did not get the error and second attempt.
    Did you try closisng?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • iframe link to #anchor only works the second time

    I am exploring a way of delivering a local HTML file into a Web Content frame in such a way that it starts at a specific HTML anchor rather than the top of the HTML page.
    Now, since DPS's Web Content overlay does not support the URL+anchor string format (e.g. myfile.html#myanchor), I thought I might achieve the desired result by loading a little HTML file into the Web Content overlay that points to the intended HTML file and its named anchor in an <iframe> tag.
    Here's where it gets annoying. The solution works... but only on the second and subsequent times you call up the Web Content overlay (normally hidden in a MSO).
    The first time I call up the Web Content overlay in my DPS article on the iPad, however, the HTML page displays but not at the specificed anchor point, nor indeed at the top of the HTML page - instead, it seems to start a little bit further down from the anchor. If I dismiss the Web Content overlay (in my case, switch to a different Object State) and return to it, the HTML reloads starting at anchor position, exactly as intended. I can close the folio, re-open it and still the behaviour is correct. It was only the first time that it fails to do the right thing.
    I am very happy that my solution works on the second, third and all subsequent occasions, but it's pretty important that readers see it working first time.
    I have tried delaying the autoplay of the Web Content but this does not make any difference. The anchor is designated using the 'id' tag.
    Any ideas?

    Thanks, Neil. But you can ask your guys to stand down. Someone got me a strong coffee this evening and I realised I was tackling this from the wrong angle. I have since seen this issue of HTML pages requiring a refresh before displaying correctly in other circumstances, even in Chrome on my computer, so I doubt it is a specific DPS problem - possibly it's something in webkit.
    Anyway, the coffee made me realise that I don't need an iframe to load another HTML file at an anchor. All I need is to pop a little GoToAnchor script in the <head> tag and a call at the beginning of the <body> tag.
    One day, if someone fixes Adobe's utterly broken Cookbooks site, I'll upload a bunch of these recipes.

  • Get_selected_rows doesn't work for second time

    I have a custom screen with an ALV output and some push buttons. When I select one of the rows in ALV and click on a pushbutton, it does go the next screen. But, if I come back and select another row in ALV, the table parameter <b>ET_ROW_NO</b> returns with no entries. Couldn't figure out myself. Can anybody please help me?
    Thanks,
    Chandu

    Hi,
    In your PBO during creation of your object, maintain a flag. Consider the following :
    IF FLAG = 'X'.
    CREATE OBJECT DUMMY....
    CALL METHOD DUMMY->SET_TABLE_FOR_FIRST_DISPLAY....
    ENDIF.
    If you maintain this, the object will not be initialised every time.
    Try this and if helpful reward points.
    Courtesy : Sakthi Seithur
    Regards

  • Activation/serial number not working the second time

    I just got a new laptop because my old one died and when I went to put in my serial number given with the program it wouldnt work, is there a way to get a new one or something? I have photoshop elements 8
    Help

    You need to contact Adobe Support either by chat or via phone when you have serial number and activation issues.
    Here are some links to help make contact:
    http://www.adobe.com/support/chat/ivrchat.html
    http://www.adobe.com/support/download-install/supportinfo/

  • Click box not functioning properly the second time it's clicked

    I have put a click box on a slide and picked the following
    properties:
    ON success open a url or file
    Infinite attempts
    display for rest of slide
    show hand cursor over "hit" area
    stop slide audio when clicked
    The slide itself is set up to progress when a button is
    selected labeled next
    There are other slides in the project that have the exact
    same click box and they function in the published project fine. In
    fact, I deleted the one that does not work and copied and pasted
    one from another slide. Is there some hidden function on the slide?
    Thank you,
    Karen

    Can you elaborate on what you mean by "doesn't work the
    second time"?
    Are you expecting it to launch a URL and it's not? Stop slide
    audio and it's not?
    Typically, most "open a URL" issues have to do with not
    unchecking the "Continue playing project" option in the Click Box
    properties. The button only pauses until the user clicks, then
    continues playing on the timeline.
    If you want the slide to pause indefinitely, you need to
    click the down arrow button to the right of the URL field and
    deselect "Continue playing project".

  • Error 1172, an error running a VI in the second time call of the DLL

    Hello All,
    I am a beginner in labVIEW.
    I have to write a test program in labVIEW which uses a DLL created by other programmer.
    I called the DLL from my labVIEW to control DIOs, a serial port, communicate with a slave device, perfrom a flashing task.
    While testing the program, I found that the program is OK if I use it just once, however, if I want to run it coninuously using a Do-While Loop, it failed with
    Error 1172.
    As far as I could understand, it seems that the DLL creates a log file in C:\ while it was called for the first time, and the process does not stop taking control of this log file even after the DLL is closed.
    Then when the DLL is called for the second time, it looks for the same log file to write new info but as it was taken control by the previous process, there comes an error.
    Please find the attached files.
    Hope there would be somebody who is able to help me to point out my mistakes in my vi or suggest me a solution for it.
    Thanks and Best Regards
    Aung
    (As the system does not accept the DLL attachment, I changed the extension to .pdf for the DLL File)
    Solved!
    Go to Solution.
    Attachments:
    I Basic Flasher.vi ‏60 KB
    Failure.xls ‏86 KB

    -message deleted -
    Message Edited by Ray.R on 11-17-2009 08:01 PM

  • For the second time this week the sound on my iPad 2 doesn't work. Who has the solution for this problemen?

    For the second time this week i don't get any sound from my iPad 2. Who has the solution for this problem?

    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
     Cheers, Tom

  • Installing CE for the second time doesn't work ?

    Hi
    Recently my CE 7.1SR3 expired and I have installed it successfully for the second time, but the node server0 is not running  (yellow colored) after installation and is showing starting apps forever.
    Any clues what's going wrong..
    Can't I install the software again in the same system ?
    Thanks in advance
    ASR

    Folks
    Problem solved. Java server node started after couple of restarting the node only and it took around 40 mins to start with 2 GB memory !!!.
    Thanks

  • For the second time (I've been to the Genius Bar once already) my WiFi isn't working on my iPhone 4S. This is really infuriating and costly!!! I see others have the same issues.  Can't Apple do anything about this?  It's obviously a hardware problem!

    For the second time (I've been to the Genius Bar already once with this) my Wifi isn't working.  They gave me a new iphone last time, but the new one has the same issue as the old one, I'm guessing.  I've tried resetting the network but that doesn't work.
    I see others have this issue too.
    If this is a hardware problem why doesn't Apple fix it?  Or do I just have to wait another year for another upgrade?
    Currently it's not costing me anything - yet - because I've got the Apple Warranty but this is totally frustating!!! I bought the original phone (which has been replaced in July 2012.  The new phone (without working Wifi) is a month old.
    Will try Restore via ITunes before (I will invariably) have to return to the Genius Bar for another Iphone 4S unless someone has an ingenius solution here?..?

    sematson wrote:
    If this is a hardware problem why doesn't Apple fix it?  Or do I just have to wait another year for another upgrade?
    For what reason, other than making yourself look foolish, would you ask questions that we users could not possibly answer as we're NOT Apple?
    Basics from the manual are restart, reset, restore from backup, restore as NEW.  Nothing more "ingenius" to suggest than these steps that Apple has outlined in the manual.  If these steps don't work, then go back to the Apple store.

  • Calling spclientcontext.executeQueryAsync works on the first call, but fails on the second call

    I have a webpart that I'm using to display a tree of folders and files from a SharePoint list. When a folder is clicked, some client side code is used to expand the contents of the folder (the code queries the SharePoint list for any child items of the folder).
    The code works the first time the folder is clicked. However, if I then click on a sub folder, the code fails. If I click on the sub folder a second time, the code succeeds. This pattern continues - every second time I call my function, it fails.
    E.g.
    First Click (clicked on Guides), which succeeds, and expands the Guides folder. Second Click (clicked on "In Progress") (fails)
    Third Click (clicked on In Progress) (succeeds)
    Any ideas why this might happen?
    My code looks like this:
    var _dweb;
    var _dlist;
    var _dwebId;
    var _dlistId;
    var _dfolderUrl;
    var _dchildContainerId;
    var _dactionContainerId;
    var _dlistItems;
    var _rtdocsJsInQuery = 0;
    function expandorcolapsefolder(webId, listId, folderUrl, parentElementId, childContainerId, actionContainerId) {
    var parentElement = $(("#" + parentElementId));
    var childElement = $(("#" + childContainerId));
    if (parentElement.attr("expanded") == "0") {
    parentElement.attr("expanded", "1");
    childElement.css("display", "block");
    } else {
    parentElement.attr("expanded", "0");
    childElement.css("display", "none");
    return;
    if (childElement.attr("dataretrieved") == "0") {
    GetData(webId, listId, folderUrl, childContainerId, actionContainerId);
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var context = new SP.ClientContext.get_current();
    _dweb = context.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    context.load(_dweb);
    context.load(_dlist);
    context.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    context.executeQueryAsync(QuerySuccessful,QueryFailed);
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    function QuerySuccessful(sender, args) {
    try {
    // Code omitted.
    } catch (error) {
    alert("Failed to process query results... " + error);
    _rtdocsJsInQuery = 0;
    window.setTimeout(HideActionContainer(_dactionContainerId), 500);
    function QueryFailed(sender, args) {
    alert('Failed to get list items. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
    _rtdocsJsInQuery = 0;
    HideActionContainer(_dactionContainerId);
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

    I fixed this problem by initialising the clientcontext object with a URL (rather than using the get_current property). This suits my needs, as the web that the page the webpart is on, won't always be in the same web as the list.
    I'm still unsure why  "var context = SP.ClientContext.get_current();" fails every second time?!
    Here's the snippet of code I changed, for others reference (namely "var ctx = new SP.ClientContext('/weburl');"):
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    return;
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var ctx = new SP.ClientContext('/eog');
    _dweb = ctx.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    ctx.load(_dweb);
    ctx.load(_dlist);
    ctx.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    ctx.executeQueryAsync(QuerySuccessful,QueryFailed);
    return true;
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    return false;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Having problems with ipad mini and Siri. Works sporadically, will work once and then the second time not. Worked all the time with the original Mailbox app. Then started doing the same thing when I installed the new update so wondering if it is software?

    Hi,
    I have the check box on a second Partition  but not on the Time Machine one
    I forget what I did now to get this called "Recovery HD"
    For the rest try https://discussions.apple.com/docs/DOC-4055  User Tip that links to Pondini's work on Time Machine.
    10:17 pm      Friday; May 2, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

Maybe you are looking for

  • Problem in Importing Request Datasets into MDS for OIM

    I m getting the following Error message: Problem invoking WLST - Traceback (innermost last): File "C:\Oracle\Middleware\Oracle_IDM1\server\bin\weblogicImportMetadata.py", line 21, in ? File "C:\Oracle\MIDDLE~1\ORACLE~1\common\wlst\mdsWLSTCommands.py"

  • Connecting my 550 Powerbook with Linksys 354G Gateway Kit

    Hello and help! I've just set up my iMac with the Linksys modem router and ethernet connection and all works OK. I now want to use the Linksys WPC54G V.5 PMCIA card that came with kit with my 2nd computer, a 550 PB.. I plugged the card into the PB an

  • Random App Crashes? Is this iOS 6.0.1 issues?

    I have an iPod touch 5g and am on iOS 6.0.1 . I sometimes experience built in apps like Camera and the App Store crash for no reason :( Does any else have random apps that keep crashing ? I also restart and reset but the problem later comes back. It

  • Requirements to upgrade Ipad2

    What are the requirements to upgrade to IOS5 ipad2. There are a lot of comments and failed upgrades that are reported.  Please support all of this message.What are the requirements to upgrade to IOS5 ipad2.

  • Hyperlinks with red and blue bordersHi

    Hi, I have a HTML file with three jpg images. I created hyperlinks to websites for all 3 images. However, I get this blue and red border around the hyperlink when I preview it in my web browser. Not sure why this is happening.... Any help is apprecia