Application blocked when calling ICalibration.GetCalibration

Hello

Configuration: VeriStand 2011SP1, VisualStudio 2010

I need to face the calibaration VeriStand API. I developed a Windows Form and the following code is called by a click of a button:

private / * list* / void GetAllCalibrations()
{
toolStripProgressBar1.Value = 0;
toolStripStatusLabel1.Text = "";

client access licenses var = new List ();

var l is new Factory(). GetIWorkspace2();

NodeInfo [channels];
var vserror = w.GetSystemNodeChannelList ("", channel);
If (vserror. IsError) throw new VeriStandException (vserror);
       
ScaleType scaleType.
Double [] ais;
ThermocoupleType thermocoupleType;
TemperatureUnits temperatureUnits;
CJCType cjcType;
String cjcChannel;
double offset paper;
Double scale;

int i = 0;
iCal var = new Factory(). GetICalibration ("localhost");
foreach (var c in channels)
{
toolStripStatusLabel1.Text = C.nom;
toolStripProgressBar1.Value = (int) (100.0 * i/channels.) Count());
i ++ ;

a value of type double;
w.GetSingleChannelValue (c.FullPath, value);
System.Diagnostics.Debug.WriteLine (c.Name + "=" + value);
If (c.IsScalable)
{
iCal. GetCalibration (c.FullPath, a scaleType, ais, of thermocoupleType, of temperatureUnits, of cjcType, of cjcChannel, by offset, scale);
}
If (c.IsScalable)
//{
var cal = new calibration (ical, c.FullPath);
If (cal. IsCalibrated)
//    {
client access licenses. Add (CAL);
//    }
//}
}
toolStripProgressBar1.Value = 0;
toolStripStatusLabel1.Text = "";
return of the client access licenses;
}

VeriStand project, I connect to a a large number of channels (and many of them are scalable). When you run this code, randomly (sometimes after 1000 calls, sometimes after 10000...), it gets permanently stuck in the "GetCalibration" of the API method. The only way to unlock is to kill the process.

The project can run on the Windows PC local or remote RT target, the problem is the same.

Note: To reproduce the problem more easily, place the foreach loop in another for loop

How can I work around this issue? Thanks for your replies.

Best regards

Hello

No, it is the number of calls to the API. In fact the blockage can occur in any API call (not only GetCalibration).

I modified my code so all API call is now issued by "BackgroundWorker" thread and it seems to fix the problem. It would be just good to know why there is a stall when it is called by the user interface thread.

Concerning

Tags: NI Products

Similar Questions

  • My phone number smart blackBerry rises blocked when calling others

    I recently lost my flip = (and had to get another cause of blackberry, I couldn't stand the nokia I have had. I ended up finding a 8110 pearl for a good price so I bought it. I put my SIM in there and couldn't be happier with it except present a problem.)

    When I make calls to other people the number points to the high 'private' or stuck on telephone, never call you. many of my friends and my family won't answer private numbers so it is a problem! I guess he's have an "identity" to restrict or something but I couldn't find it in the options. does anyone else have a problem like this?

    also, is there a way to change the tone sms/mms message? I can only change the ringtone.

    any help is appreciated

    1. press on the digit key green to enter the call log > Menu key > restrict my identity > No. or never.

    2 profiles... change your profiles on the device > advanced > profile > SMS. He set the tone.

  • Application loader is called when trying to export to EPUB

    Creative cloud subscription InDesign CS6 (MacBook Pro retina, Mountain Lion), when I export to EPUB, instead of export to EPUB, Apple Application Loader is called.   How to solve this?

    Sounds like a bad file association. You have an epub reader on your computer? If so, right-click an epub file and select get info, and change the file association for it.

    If this is not the case, try the Adobe Digital Editions software.

    Bob

  • Error when calling bean 'delivery': waiting for reply has expired.

    Hello

    I run a process that currently catches an exception since a partnerlink. When the exception is caught, I send an email and the process stops. When I submit an application since the BPEL console, I have to wait the JTA timeout before the return of the page. However, the instance goes smoothly and I got the email before the time-out occurs. That's what I see in the newspapers. When I look at the audit workflow and activity, all activities were time-stamped before throwing exception. Has anyone seen this problem or knows what is happening. Is there a problem of in a catch block or catch-all mail?

    < 2009-04-19 22:33:41, 859 > < ERROR > < iCareTest.collaxa.cube > < BaseCubeSessionBean::logError > error when the bean 'delivery': waiting for reply has expired. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7 fc 0. Please check the detail process instance.
    com.oracle.bpel.client.delivery.ReceiveTimeOutException: waiting for reply has expired. The conversation id is cf9324c9be114336:513ede58:120c17e1922:-7 fc 0. Please check the detail process instance.

    Thanks in advance

    Jim

    There is no question why it happens to expire is because you don't have a response to the client in your tote.

    If you look at your processes, you will see that the default response is in the main field of application. When the Tote is called this response is in the past, that's why no reply is sent.

    Please answer in your catch all back to the client and it will work.

    see you soon
    James

  • Can not block the caller 10 iPhone iOS 7

    For some reason I seem to have lost the ability to block callers.  When I get a spam SMS and I click on the contact there is no option for calling block.  What gives?

    7 32 gb iPhone

    iOS 10.0.2

    Hey Toby,.

    I see you try to block people calling and messaging of your iPhone.  This feature is really handy, so let's first make sure you go through the right process, trying to block the numbers:

    Block the phone numbers and contacts or filter messages on iPhone, iPad, or iPod Touch

    Take care.

  • 7.10 Skype crashes when called or calling on Windows 10

    After the recent update, Skype has started planting when calling or called.

    Here is the error message record:

    Name of the failing application: Skype.exe, version: 7.10.0.101, time stamp: 0x55e99095
    Name of the failed module: KERNELBASE.dll, version: 10.0.10240.16384, time stamp: 0x559f3b2a
    Exception code: 0xe0fafac1
    Offset: 0x000b3e28
    ID of the process failed: 0x32b0
    Start time of application vulnerabilities: 0x01d0ef1d1febf028
    The failing application path: C:\Program Files (x86)\Skype\Phone\Skype.exe
    Path of the failing module: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
    Report ID: b4ff52ed-8537-403a-a595-49c9c1a74ab3
    Faulting full name of the package:

    The text DxDiag file is attached.

    I see I'm not the one with this issue, but I wasn't able to find a reason for Skype crashing in my case.

    Updated to version 7.11.0.102 solved the problem.

  • error when calling NtSetTimerResolution in NTDLL 1097. DLL

    I get 1097 error when calling NtSetTimerResolution in NTDLL. DLL. why?   I scoured most of the posts on this forum describing the 1097 error and tried the solutions without success.

    This is a link to the function prototype (copied below) that I adapted in the node call the attached vi library (you will be asked to locate NTDLL. DLL on your system when opening it)

    NtSetTimerResolution and NtQueryTimerResolution are defined as follows. All hours are stated in hundreds of nanoseconds.

    NTSTATUS NtSetTimerResolution (
    IN ULONG RequestedResolution,
    IN BOOLEAN
    defined.
    ON PULONG ActualResolution
    );

    Parameters

    RequestedResolution

    The desired timer resolution. Must be the legal scope of the system timer values supported by NT. The standard x 86 systems it's 1 to 10 milliseconds. The values that are within the acceptable limits are rounded to the next higher standard x 86 HAL millisecond limit. This parameter is ignored if the Set parameter is set to FALSE.

    Set

    This is TRUE if we ask a new resolution of the clock, and FALSE if the application is indicating that he hasn't needed a resolution already implemented.

    ActualResolution

    The resolution of timer in effect once the call is returned in this parameter.

    Woohoo! I solved the problem.

    I was using a copy of NTDLL. DLL C:\Drivers\I386\SYSTEM32\NTDLL here. DLL (version 5.1.2600.1106)

    instead of C:\WINDOWS\system32\ntdll.dll here (version 5.1.2600.5755).

    An observation aside Interestingly enough, I did, when I tried to put the old version in C:\WINDOWS\system32 to see if it was just a problem of dependence, rather than a version number, I couldn't do it!  I tried renaming C:\WINDOWS\system32\ntdll.dll C:\WINDOWS\system32\ntdll.dll.old and immediately a replacement c:\windows\system32\ntdll.dll pop up would be in his place! I even tried to drag / drop of C:\Drivers\I386\SYSTEM32\NTDLL. DLL C:\WINDOWS\system32\ntdll.dll, it seemed to replace, but a system of security immediately replaced it with the latest version.   WinXP is smarter than I thought, or maybe something like Microsoft Windows Defender Antispyware installed by our company does this.

    In any case, I've confirmed lateer version is necessary because when I copied C:\WINDOWS\system32\ntdll.dll to C:\Drivers\I386\SYSTEM32\NTDLL. DLL, it also solves the problem.

    You might well ask why I did not use the correct version in the first place - well not knowing where he was, I only noticed the old version when I searched for it with my Google Desktop.

    Rgds

  • Application crashes when I join class presentation

    So I tried to figure out how to get the filepath link to invoke my camera.  I'm at the point where I tried everything nothing helped.  My last attempt was tie the class is exposed from my source code in my QML.

    in main.cpp:

    using ::bb::cascades::Application;
    // this allows us to write "Application"
    // instead of "bb::cascades::Application"
    
    void myMessageOutput(QtMsgType type, const char* msg) {
        Q_UNUSED(type);
       fprintf(stdout, "%s\n", msg);
       fflush(stdout);
    }
    // main() is the entry point of the application. It will be called by the
    // operating system when you start the application. You should never call this
    // yourself.
    Q_DECL_EXPORT int main(int argc, char **argv)
    {
    
        qmlRegisterType("bb.platform", 1, 0, "RouteMapInvoker");
            bb::data::DataSource::registerQmlTypes();
            qmlRegisterType("bb.platform", 1, 0, "LocationMapInvoker");
            bb::data::DataSource::registerQmlTypes();
        // "Application" is the BB cascades class that handles interaction the
        // with BB10 operating system.
        Application app(argc, argv);
    
    #ifndef QT_NO_DEBUG
       qInstallMsgHandler(myMessageOutput);
       #endif
    
        // Register this type so qml can refer to enums and other symbols
        // declared in the App class.
        qmlRegisterType("Custom.lib", 1, 0, "ApplicationUI");
    
        // Create an instance of App on the stack. App's
        // constructor registers itself with Application object using setScene().
        // See app.cpp
        app.setCover(new ActiveFrame());
        ApplicationUI mainApp;
    
        // Start the application event loop (run-loop).
        return Application::exec();
    
        // When the loop is exited the Application deletes the scene which deletes
        // all its children (per Qt rules for children)
    }
    

    ApplicationUI.hpp:

    class ApplicationUI : public QObject
    {
        // Classes that inherit from QObject must have the Q_OBJECT macro so
        // the meta-object compiler (MOC) can add supporting code to the application.
        Q_OBJECT
    
        Q_PROPERTY(bb::cascades::DataModel* dataModel READ dataModel CONSTANT)
    
    public:
    
        // Describes the possible storage locations
        enum StorageLocations
        {
            StoreInQSettings, ///< objects are stored in QSettings
            StoreInFile       ///< objects are stored in custom files
        };
    
        // This allows the enum to be referred to in the qml file.
        // Note: the class also has to be registered using qmlRegisterType().
        // See the main.cpp file.
        Q_ENUMS(StorageLocations)
    
        // Creates a new App object
        ApplicationUI(QObject *parent = 0);
    
        // destroys the App object
        ~ApplicationUI();
    
        Q_INVOKABLE
            void inviteUserToDownloadViaBBM();
        Q_INVOKABLE
            void updatePersonalMessage(const QString &message);
    
            // Creates a new location object and saves it.
        Q_INVOKABLE bool addObject(const QString &name, const QString &description, const QString &datefield, const QString &lat, const QString &lon, const QString &categoryfield, const QString &mapurl, const QString &itempic);
    
        // Read all the objects from the selected storage location and
        // put them in the data model
        Q_INVOKABLE void refreshObjects();
    
        // Remove all the objects from the selected storage location.
        Q_INVOKABLE void clearObjects();
    
        // Change the first and last name of the location with the
        // provided id. Update the data model and storage.
        Q_INVOKABLE bool updateObject(const QString &id, const QString &name, const QString &description, const QString &datefield, const QString &lat, const QString &lon, const QString &categoryfield, const QString &mapurl, const QString &itempic);
    
        // Delete the location with the given id from the selected storage location.
        Q_INVOKABLE bool deleteObject(const QString &id);
    
        // Change the location we're using for the data, and
        // refresh the list.
        Q_INVOKABLE void setStorageLocation(StorageLocations strLocation);
    
            Q_INVOKABLE void addPinAtCurrentMapCenter();
            Q_INVOKABLE void clearPins();
            Q_INVOKABLE void updateDeviceLocation(double lat, double lon);
            Q_INVOKABLE QString getValueFor(const QString &objectName, const QString &defaultValue);
            Q_INVOKABLE void saveValueFor(const QString &objectName, const QString &inputValue);
            Q_INVOKABLE void InvokeCamera();
            Q_INVOKABLE void InvokeSettings();
            Q_INVOKABLE void InvokeImageViewer(const QString &urlPic);
    
            public slots:
            void childCardDone(const bb::system::CardDoneMessage &message);
    
            signals:
            void cameraCaptureCompleted(const QString &imageLink);
    //        void filterChanged();
    
    ........
    

    in my ApplicationUI.cpp

    ApplicationUI::ApplicationUI(QObject *parent)
        : QObject(parent)
        , m_lastCustomerID(0)
        , m_storageLocation(StoreInQSettings)
        , m_storage(new SettingsStorage)
    
    {
    
        // prepare the localization
            m_pTranslator = new QTranslator(this);
            m_pLocaleHandler = new LocaleHandler(this);
            invokeManager = new bb::system::InvokeManager();
            invokeManager->setParent(this);
    
            if(!QObject::connect(m_pLocaleHandler,
                SIGNAL(systemLanguageChanged()),
                this,
                SLOT(onSystemLanguageChanged()))) {
                // This is an abnormal situation! Something went wrong!
                // Add own code to recover here
                qWarning() << "Recovering from a failed connect()";
            }
    
            connect(invokeManager,
            SIGNAL(childCardDone(const bb::system::CardDoneMessage&)), this,
            SLOT(childCardDone(const bb::system::CardDoneMessage&)));
    
            // initial load
            onSystemLanguageChanged();
    
        // Initialize the data model before the UI is loaded
        // and built so its ready to be used.
        initDataModel();
    
    //    qmlRegisterType("uri",1,0,"App");
    
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
        qml->setContextProperty("_app", this);
    
        AbstractPane *root = qml->createRootObject();
    
    .....
    
    void ApplicationUI::InvokeCamera()
    {
        bb::system::InvokeManager manager;
        bb::system::InvokeRequest request;
        request.setTarget("sys.camera.card");
        request.setAction("bb.action.CAPTURE ");
        request.setMimeType("image/jpeg");
        InvokeTargetReply *targetReply = manager.invoke(request);
    
    }
    
    void ApplicationUI::childCardDone(const bb::system::CardDoneMessage &message)
    {
        QString imageLink;
        if (message.reason() == "done") {
    
            imageLink = "file://" + message.data();
        }
        qDebug() << message.reason() << "\n";
        qDebug() << message.dataType() << "\n";
        qDebug() << "file://" + message.data() << "\n";
    
        emit cameraCaptureCompleted(imageLink);
    }
    

    in my QML:

    import bb.cascades 1.0
    import Custom.lib 1.0
    
    Sheet{
    
    Page{
    
    Container{
    
    Label{id: itemPic}
    
    Button{
    
    onClicked: {
    _app.InvokeCamera()
    }
    
    }
    
    }
    
    attachedObjects: [
    
    ApplicationUI {
    onCamerCapturedCompleted: {
    
    itemPic.setText(imageLink)
    
    }}
    ]
    }
    }
    

    As soon as I attach the class the application does not start and the accident, if I change it it is fine.

    Hello

    Instance of ApplicationUI is already exported to QML as _app. One possible approach connects the signal to a JS function:

    Sheet
    {
      onCreationCompleted: {
        _app.cameraCaptureCompleted.connect(captureCompleted)
      }
    
      function captureCompleted(imageLink) {
        console.log("imageLink: " + imageLink)
      }
      ...
    
    }
    

    Element using Qt Quick "Connection" is another option.

    This code should be deleted (it creates a second instance of ApplicationUI, which probably was not provided):

    qmlRegisterType("Custom.lib", 1, 0, "ApplicationUI");
    
    ...
    
    attachedObjects: [
    ApplicationUI {
    onCamerCapturedCompleted: {
    itemPic.setText(imageLink)
    }
    
  • Runtime Exception to when calling ApplicationEntryPoint.run ()?

    Hi Iam using JDE 4.5.0, jdk 1.6

    At the opening of the app in the Simulator iam getting error below in the debug window. And it's show RuntimeException occurs when calling ApplicationEntryPoint.run (). below the class implements ComponentVO Persistable.

    Class 'com.adea.blackberry.ComponentVO' multiply defined. Error starting zawyademo: 'com.adea.blackberry.ComponentVO' multiply defined class.

    Please help me I hit here.

    Concerning

    Sunil.G

    You have this class defined more than once in your applications or libraries?  I recommend also clean.bat running in the directory of Simulator to reset the BlackBerry Simulator returns to its default state.  This will remove all the applications and could clean up old libraries that you use no more.

  • BlackBerry Smartphones Block unsolicited calls

    How to block unwanted with my BB 9810 calls?

    Hello. There should be many applications on the BlackBerry World to block unwanted calls, with many options.

  • Error occurs when calling remote ADFService11G service. Details: ADFException-3007: The ViewObject "AppModule.VO3" is used as a destination more than a ViewLink. (HY000)

    Hello

    Thanks in advance for helping me to solve after publication:

    I tried to run a report of OBIEE including data model comes from the layer of the ADF.

    In my module of the application, I have 5 display objects:

    For Ex: VO1 VO2 VO3, VO4 VO5

    And I show the links between: VO1 and VO2 (lets say: VO1_VO2_VIewLink).

    VO2 at VO3 ((permet de dire: VO2_VO3_VIewLink)), VO4 is related to the ((permet de dire: VO4_VO3_VIewLink) VO3) & VO5 is linked to VO3 (lets say: VO5_VO3_VIewLink)

    When I deploy this application on OBIEE and run a report with objects of:

    (1) VO1 and VO2-report works fine

    (2) VO2 and VO3 -report works fine

    (3) VO4 and VO3 -report works fine

    (4) VO5 and VO3 -report works fine

    (5) VO1, VO2, VO3 -report works fine

    It is when I run the report with the objects of

    VO1 and VO2 VO3 VO4, it throws an error message:

    "Error occurs when calling remote ADFService11G service. Details: ADFException-3007: The ViewObject "AppModule.VO3" is used as a destination more than a ViewLink. (HY000) »

    OBIEE Version is: 11.1.1.7.0 (with no patches) basis data: 11 GR 2, Jdev:11.1.1.7.0

    Kind regards

    RAM.

    I was able to resolve this error by changing my AppModule datamodel application, by changing the cardinality between VO3 and any other 1: n VO (VO3) to 1 (VO3): n. making VO3 as source VO object rather than view destination object.

    Kind regards

    RAM.

  • I am trying to convert my trial creative Cloud to a version of payment, but I keep blocked when the computer asks me to enter a serial number, WHERE can I FIND? Thanks for your response

    I am trying to convert my trial creative Cloud to a version of payment, but I keep blocked when the computer asks me to enter a serial number, WHERE can I FIND? Thanks for your response

    Hello

    You can check out the link below.

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Hope this will help you.

    Kind regards

    Hervé Khare

  • First Pro CC blocks when you scroll through the sequence in the timeline - Audio Waveform will Virgin first

    The description is in the title: first Pro CC blocks when you scroll through the sequence in the timeline - Audio Waveform will Virgin first.

    Just started today, will not stop now blocks after a minute or two, and he always does when I scroll through the timeline of a sequence.  First of all, the audio waveform becomes empty.

    What is going on?

    Date/time:2014-10-22 12:16:16.078-0400
    OS version:Mac OS X 10.9.5 (13F34)

    Report Version: 11

    Anonymous UUID: E1BCDCD7-6284-3012-9151-FF85491060DA

    Crashed thread: 0 dispatch queue: com.apple.main - wire

    Exception type: EXC_BAD_ACCESS (SIGBUS)

    Exception codes: KERN_PROTECTION_FAILURE at 0x000000011d74b000

    VM regions near 0x11d74b000:

    VM_ALLOCATE000000011d 748000-000000011d74b000 [12K] rw-/ rwx SM = PRV
    -> BATTERY CARE[000000011d74b000-000000011d74c0004 K]-/ rwx SM ZERO battery guard for threading 4 =.
    Battery000000011d74c000-000000011d7ce000 [520K] rw-/ rwx SM = COW 4 wire

    Thread 0 crashed: Dispatch queue: com.apple.main - wire

    Hi 5 deadly venoms

    This problem is resolved in the 9.0.1 update. Please update the application of a patch.

    Thank you

    Kevin

  • The PLSQL since Application Java procedure call

    Hi all
    I have a PLSQL procedure that I'm calling from a Java Application. When I call this procedure from an SQL Editor, I can pass in the parameters and the procedure executes successfully (which is inserts records in a table).
    However, exactly the same procedure when it is called from an application Java does not seem to return the appropriate results, which is to insert rows in a table.
    Am I missing?
    Is someone can you please advise me if I have to do something else as well for the PLSQL call work via Java.

    Thank you
    FM

    >
    I have a PLSQL procedure that I'm calling from a Java Application. When I call this procedure from an SQL Editor, I can pass in the parameters and the procedure executes successfully (which is inserts records in a table).
    However, exactly the same procedure when it is called from an application Java does not seem to return the appropriate results, which is to insert rows in a table.
    Am I missing?
    Is someone can you please advise me if I have to do something else as well for the PLSQL call work via Java.
    >
    Wrong forum!

    You need this post in the JDBC forum
    https://forums.Oracle.com/forums/category.jspa?categoryID=288

    Either the procedure works correctly, or it does not; Java has NOTHING to do with it (unless it is written in Java).

    If this does not work, then fix it.

    If it works correctly then any problem you are having is due to your Java code and/or how the code calls the procedure.

    Mark this question ANSWER and repost in the JDBC forum. When you post, provide:

    1. your 4 digit Oracle version
    2. your client OS and version.
    3. the full JDK version
    4. the name and the version of the jar file OJDBC that you use
    5. the Java code that watch/product problem
    6. the procedure signature indicating the names and types of the parameters

  • How to block a call

    How can I block a call from a specific number?

    Hello

    Follow the instructions here:

    Block the phone numbers and contacts or filter messages on iPhone, iPad, or iPod Touch - Apple Support

Maybe you are looking for