nxCreateSession long-running

I created an executable file that uses an NI PCI-8512 CAN map and NOR-XNET. I create a distribution and installed on a PC. After installation, I start the app and everything works as expected.

However, when you start the app immediately after a start-up of the PC, the application seems to weigh several times. After that, the application performs as expected. I reduced the hanging to the NOR-XNET function "nxCreateSession". Printfs aid and the Timer() function, it seems to this call to function 2 to 3 seconds on average.

The interesting thing is that if I close the application and then restart it, everything works as expected and the "nxCreateSession" function takes about 0.5 seconds on average. Also, if I start the NOR-XNET database editor before you start my application immediately after a start-up of the PC, everything works as expected.

I hope this makes sense and someone has seen a similar problem. Thanks in advance for any advice.

Select this option.

Hey mjz.

I've never seen this identical problem, however, I've seen some similar problems with the XNET API where errors can occur when the database is not completely deployed before attempting to call to him. Since you said that this problem only occurs when you run the program just after the computer boots, it leads me to believe that you simply give the database some time to deploy. Try to put a second couple waiting somewhere in your VI before getting to the nxCreateSession function, which seems to be suspended and see if that helps at all.

Kind regards

Doug B

Tags: NI Software

Similar Questions

  • How to stop a script of long-run, or leave in the first place?

    How to stop a longrunning script to stop or start in the first place. It does in itself. I don't know what it is. The only reason for which we know that it is running is because from time to time, we get a box popping up to say something like "this can't start/work due to a long-running script. Is this something that is important for our computor or is she something harmful, or simply unnecessary?

    Hi Anna-KarinEdvardsson,

    1 did you change on your computer before the show?

    2 are. what scripts you referring?

    3. when exactly the script starts?

    I suggest you to set the computer to clean boot and check how it works.

    To configure the computer clean boot, follow the steps in the below link:

    How to perform a clean boot

    Note: After the installation of updates to the clean boot follow step: 7 article to reset your computer to normal startup.

  • Error: BT Yahoo is not available due to a long-running script. How can I remove it?

    Original title: a long-running script

    Why constantly to make the message-' BT Yahoo is not available due to a long-running script.

    How can I remove it?

    Why constantly to make the message-' BT Yahoo is not available due to a long-running script.

    How can I remove it?

    a. on the Tools menu, click Internet Options.

    b. on the Advanced tab, click to select the checkbox disable the script debugger .

    c. click OK

    Error message: "a script on this page slows down Internet Explorer runs slowly.
    http://support.Microsoft.com/kb/175500/en-us

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

  • I frequently get a pop up that says "' web page addresses do not cause of long-running script." "

    * Original title: pop ups

    I frequently get a pop up that says "' web page addresses do not cause of long-running script." "  It's maddening.

    It's all web sites that do, or just a specific or both? If its just one or two sites, try them as 'compatibility mode' - http://windows.microsoft.com/en-US/internet-explorer/use-compatibility-view#ie=ie-11

    If this does not help, it occurs to these sites if you run IE (assuming you're using IE) "mode without modules? ( [Internet Explore (No. Add ons)])

    If still no joy, then see if anything in this article allows --- https://support.microsoft.com/en-us/kb/308260#cause it is a long read but has a few things to try for script errors in Internet Explorer.

    The default base heal - use another browser like Mozilla Firefox - https://www.mozilla.org/en-US/firefox/new/

  • I want to uninstall my new imac CS4, because CS4 is no longer running.

    Hello, I want to uninstall my new imac CS4, because CS4 is no longer running.

    The problem is: before I sold my old mac, I put all programs in the trash, without no deinstalltion.

    The new mac is installed with a backup and so, if I want to run photoshop, par example, I get this:

    Bildschirmfoto 2015-02-13 um 15.42.57.png

    ... and so its impossible for me, uninstall CS4.

    Can someone help me?

    Excuase my bad English:)

    Error "Licensing has stopped working". Mac OS

  • Disable the input from the user during the long running process

    Hello

    I use JDev 11.1.1.4.0.

    When the user clicks on the 'save' button, I have to call a procedure stored prior to validation. This procedure takes about a minute to complete the race. My problem is, while the process is running, the user can click or change the values in the page. Is there a way to lock the page until the process is complete and ok to return control over the user?

    Thank you

    Bones Jones

    Another example:
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-glass-pane-for-blocking-user-input-in-case-of-long-running-tasks/

    Thank you
    Nini

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

  • Long running newsletter

    My Newsletter is running long. Just wanted to see if someone has encountered this problem during the development of a newsletter - I have a lot of content and it runs more than a normal e-mail page in Eloqua. How can I get the email to adjust the size and incorporate all the content?

    Hello

    I think that is the best solution for enewsletter long;

    1. make sure that you don't have more than 10 items in your newsletter.

    2. keep the content short & brief but have a button "Read more" to direct to your web page to read detailed information.

    3. This will help generate good traffic to your site & high readability to your newsletters.

    4. you can increase the page size of your newsletter by clicking Tools > icon page style > and increase the width & height adjustment for the page.

    By following the above with the correct target segmentation, I got great rates from 70%.

    Good luck!!

  • Long-running query

    I have a query that has been running forever. I ran this query yesterday and he finished in 100 seconds (which is normal for this scenario). But today it's forever. The plan of the explain command seems good and I made sure all the tables used in the query have updated its stats. Can someone help me please on other factors should I look to find the root cause of this long term query.

    OS: Windows 7

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    Hi Vpolasa,

    You can diagnose it the problem with help from under article by arup nanda: -.

    Article from tech s/n

    Thanks and greetings

    Maxou

  • Long run Insert Session

    Hello

    We have a long Insert session which worked for about 20 hours and kill him will be an issue as it will take a long time.

    This session is being Informatica and DB version is 11.2.0.4.

    Is there something that can be done to increase the flow of DB?

    There are no other sessions outside this on the DB.

    Kind regards

    VN

    If the INSERT is running right now and you don't want to re - start, your options are limited. The advice that you have until this all assumes that you stop and try again.

    It is possible that your redo log is not properly configured. How many times are you open a session of switching? I've seen cases like this, where the paper switches were all a few seconds. If so, add new groups that are at least a hundred times as large and drop the existing groups.

    Another is that your LMS is not properly configured. Look at memory advisors, and if you have room for manoeuvre (think sga_max_size) adjust accordingly.

    If your data files are continuously extending through the auto expand the mechanism, which will slow down the process. Solve the problem by adding big data files to the tablespace (s) relevant now.

    That's all I can think of at this time. It must be worth trying before you kill a process that ran so long already. Good luck.

  • DSC set up Alarming.vi - duration of long-running!

    I have a variable application ~ 400 County with DSC Shared Variable engine running.

    Call Alarming.vi set (DSC motor control Palette) to set off alarms takes about 30 to 50 seconds to the process through the list of variables.  In the former SDC you used to be able to I think.  Is there any equivalent for this function when you use EVS or what I have to deal through both variables?

    I tried only the \\hostname\LibraryProcess\ of power VI, but he didn't like that.

    RVallieu,

    Looks like you tried the correct steps. I talked to our R & D team, and it is unfortunately not an option to toggle hidden alarms in bulk. However, there is a better way to do that might be a bit faster. Check out This example of community . It defines alarming features one by one and then they committed at the same time, which is more effective.

    Otherwise, it is not really a good way to speed it up. 400 shared variables is many things to manage.

  • Photosmart C5280 lo more long runs on CD.

    The printer is no longer recognized as being able to rpint on CD so he says. I tried to install a usb printer connection and selecting the drivers C5300 series but this doesn't. t work either. What third-party software can use this printer to do this?-thanks

    Hello Sorcerer59,

    Welcome to the HP Forums!

    I understand that your Photosmart C5280 is not recognizing printing on a CD. I will do my best to help you! First of all, I need to know your operating system on your computer? Windows or Mac?

    Please make sure that the printer is connected to a live wall, not a surge protector. I just want to see if that makes a difference. I would like that you perform a hard reset on your printer for more than 60 seconds. Leave the printer turned on > unplug the power cord at the back of the printer.

    Try to remove the CD/DVD holder out of the printer and put back into the printer. You can try this software from third-party manufacturer here. You can also Google software of third parties for printing on a CD/DVD label.

    Please post your results, I will be looking forward to hear from your part, have a great day!

  • Long-running script

    How, or can I SET a "long-term script? I even bought one online registry cleaner that is just a waste of money, I guess that its malware?

    A few suggestions here:

    http://Windows.Microsoft.com/en-us/Windows/what-do-Internet-Explorer-script-errors#1TC=Windows-7 or http://support.microsoft.com/kb/308260

    How to ask a question:
    http://Support2.Microsoft.com/kb/555375

  • SystemDialog in long running headless app

    Hello

    10.3.1 I have a use case where I need to display a popup when a condition is met. The app may not run at the time when the condition could be filled.

    I looked at the following statement of the documentation

    «Apps headless supports dialog boxes at a later version of the SDK or API 10.3 level native BlackBerry 10.» Single system dialogs, such as SystemDialog, are supported. »

    on the page

    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/headless_apps/index.h...

    In this case, I modified the existing sample to take advantage of the SystemDialog but I don't see the dialog box when I installed the app (part of the user interface) since the outbreak in the part of the user interface for the headless is as follows. Any ideas?


    application.headless
    Reminder service
    ReminderService

    bb.action.system.STARTED
    application/vnd.blackberry.system.event.STARTED



    com.example.ReminderService.RESET
    *


    Here's the part without the project: service.hpp

    #ifndef SERVICE_H_
    #define SERVICE_H_

    #include
    #include
    #include

    bb {} namespace
    Application class;
    namespace System {}
    class InvokeManager;
    class InvokeRequest;
    }
    }

    Class service: public QObject
    {
    Q_OBJECT
    public:
    Service();
    Virtual ~ Service() {}

    public slots:
    void onDialogFinished (bb::system:ystemUiResult::Type type);

    private slots:
    void handleInvoke (const bb::system:InvokeRequest &);)
    void onTimeout().

    private:
    void triggerNotification();

    BB::System:InvokeManager * m_invokeManager;
    BB::System:ystemDialog * m_dialog;
    };

    #endif / * SERVICE_H_ * /.

    Here is the service.cpp

    #include "service.hpp".

    #include

    #include

    #include

    #include

    #include

    #include

    using namespace bb::system;

    Service:ervice():

    QObject(),

    m_invokeManager (new InvokeManager (this))

    {

    m_invokeManager-> connect (m_invokeManager, SIGNAL (called (const bb::system:InvokeRequest &)),)

    This, SLOT (handleInvoke (const bb::system:InvokeRequest &)));))

    m_dialog = new SystemDialog ("Save as", "Discard changes", "Cancel");

    m_dialog-> setTitle ("save changes");

    m_dialog-> setBody ("save your changes and close the document?");

    m_dialog-> setEmoticonsEnabled (true);

    m_dialog-> setModality (SystemUiModality::Global);

    Connect the finished() signal to the onDialogFinished() location.

    The slot will check the SystemUiResult to see which

    button has been operated.

    Boolean success = connect (m_dialog,

    SIGNAL (finished (bb::system:ystemUiResult::Type)).

    This,

    SLOT (onDialogFinished (bb::system:ystemUiResult::Type)));))

    If (success) {}

    Signal has been connected successfully.

    Now, display the dialog box in your user interface.

    onTimeout();

    } else {}

    Unable to connect to report.

    This is not normal in most cases and can be a critic

    situation for your application! Make sure you know exactly why

    What happened. Add code to retrieve from the

    interruption of the connection under this line.

    m_dialog-> deleteLater();

    }

    }

    cancel the Service:nDialogFinished (bb::system:ystemUiResult::Type type)

    {

    If (type is SystemUiResult::ConfirmButtonSelection)

    {

    qDebug()< "dialog="">

    The user accepts the dialogue.

    }

    else {}

    qDebug()< "dialog="">

    The user rejected the dialog box.

    m_dialog-> deleteLater();

    }

    }

    void Service::handleInvoke (const bb::system:InvokeRequest & request)

    {

    If (request.action () .compare ("com.example.ReminderService.RESET") == 0) {}

    triggerNotification();

    }

    }

    Sub Service: triggerNotification()

    {

    Time-out is to give time for the user interface to minimize

    QTimer::singleShot (2000, this, SLOT (onTimeout (()));

    }

    cancel the Service:nTimeout()

    {

    m_dialog-> show();

    }

    Join the discussion at
    http://supportforums.BlackBerry.com/T5/native-development/SystemDialog-in-headless-part-in-10-3/TD-p...

  • HTTP access from a long running headless app

    Hello

    I have a requirement for an application that runs without head 24/7 and must sometimes make remote HTTP connections without user interaction.

    Could you please tell me if this is possible thanks to an application without head and point me to the api correct?

    Thank you

    Ray

    you don't know.
    the api is the same as always, usually QNetworkAccessmanager etc.

Maybe you are looking for