API 5, "interlace synchronization.

I wrote a complex application that executes a browserfield2 as a layout engine and overload of links with various native functions, but I'm quite often an error JVM "interlaced synchronization. Any ideas? My code:

       _bf2 = new BrowserField();
        _controller = new ProtocolController(_bf2) {
            public void handleNavigationRequest(final BrowserFieldRequest request) throws Exception {
                // invokeLater(new Runnable() {
                //    public void run() {
                try {
                    if (request.getPostData() != null)
                        _postData = new String(request.getPostData());
                    loadPage(request.getURL(), false); // this function will call Browser.handle().safeSetText(screen.getHtml(), screen.getTitle(), screen.getUrl());
                } catch (Throwable e) {
                    safeSetText(e.getMessage(), "Error: ", request.getURL() + "|1|" + e.getMessage() + "|2|" + e.toString());
                    TimeDialog.handle().hideDialog();
                }
                //    }
                // });
            }
        };
        _bfConfig.setProperty(BrowserFieldConfig.CONTROLLER, _controller);
        add(_bf2);
    }

    public final void safeSetText(final String data, final String title, final String baseUrl) {
        synchronized (UiApplication.getApplication().getEventLock()) {
            setTitle( title );
            _bf2.displayContent(data, baseUrl);
        }
        TimeDialog.handle().hideDialog();
    }

Is not the correct way to set the contents of a browserfield2? (I download the contents manually to first analyze the XML and extract the html part). Thanks in advance!

Just to add my $0.02:

Some synchronization occurs within the native BlackBerry code, the equivalent of the "system calls".  I've seen interlaced synchronization going on inside the call to SimpleDateFormat.format (Object).  Some of these things may be beyond your control.  However, it is only when these calls are inside your own synchronized block that deadlock can occur.

So, it would be the main Board - know why you sync (which global data you want to protect) and have only the code that you must absolutely protect (without any blocking calls!) inside the braces.

Oh, and as a programmer incorporated with 10 years of experience in this field, I must tell you - if a synchronization problem peut happens, it 's going to happen. Loud sounds, but it is true.

Tags: BlackBerry Developers

Similar Questions

  • Capture engine pointer to external application

    Hello

    I need a program to change a Global sequence running. Simplify, I need to change a Boolean Global with an external application (in c#). If someone has done something similar, I would like to know how.

    So far, ive tried to save the object pointer in the configuration file, through TestStand and an another c# application, but it was not good because it save it as an object com I now try to use Remote Access Services to launch a service (with the current engine) with TestStand so my application can communicate with the engine via remote access.

    I tried my client-server without TestStand and works very well, but I can't grow if I run the application server through TestStand.

    I know more ways to capture the pointer of the engine... Any idea?

    Daniel

    Probably the best thing to do would be to use a queue of TestStand or notification for transmitting data between processes. Using the step type, if you start the name of a queue with a ' *' character then the queue will be global for the entire machine. To access the queue of your external application programmatically, create an instance of the teststand engine and call GetSyncManager() on this topic with the name of your queue (i.e. it must begin with a ' *' character). Then use synchronization to TestStand API with returned Synchronization Manager Manager to get the existing queue and access. Notifications can also pass data and can be used in the same way. You can store the global variable itself by reference to the queue and get the external application using Dequeue in a TestStand object reference variable (pass false for the Microsoft.SqlServer.Management.Sdk.Sfc.ISfcCollection.RemoveElement parameter so that it remains in the queue for the life of the queue). See the teststand help file for Synchronization Manager and the queue of API information. You can create a TestStand object reference variable to store the corresponding element using Engine.NewPropertyObject (). Then once there, simply call GetValueInterface and access the value returned as a PropertyObject himself.

    Hope this helps,

    -Doug

  • Can I synchronize the counters on two different computers in the C API?

    I installed the M-series cards (6254) in several computers. I would like to synchronize the counters for each card.  The best way that I came with to do this was to have the counter on each counter entries read a common external clock signal running at 10 KHz I have would then feed a second signal to each card and trigger the task that runs each counter starts when the second line goes high.

    Following the examples provided with the C API, it was easy to get each card KHz signal and then to match the beginning of the counter that I tried to read

    DAQmxCfgDigEdgeStartTrig (taskHandle, inputLineStr, DAQmx_Val_Rising);

    However, this did not work and gave me the following error:

    DAQmx error: the specified property is not supported by the device or is not applicable to the task.
    Property: DAQmx_StartTrig_Type

    Task name: task

    State code:-200452
    End of the program, press the Enter key to exit

    I know it's very simple sync the cards within a computer using the RTSI interface, but it is not possible that my cards have to reside in different computers.

    It is even possible to synchronize the counters on computers, and if yes how can I do it with the C API?

    ------------------

    Here's what I've written so far:



    #define DAQmxErrChk (functionCall) if (DAQmxFailed (error = (functionCall))) goto error; on the other

    int main (void)
    {
    int error = 0;
    TaskHandle taskHandle = 0;
    uInt32 data = 0;
    tank errBuff [2048] = {'\0'};

    DAQmxErrChk (DAQmxCreateTask ("task", & taskHandle));
    DAQmxErrChk (DAQmxCreateCICountEdgesChan(taskHandle,"/Dev1/ctr0","",DAQmx_Val_Rising,0,DAQmx_Val_CountUp));
    DAQmxErrChk (DAQmxConnectTerms ("/ 10MhzRefClock/Dev1", "/ PFI8/Dev1", DAQmx_Val_DoNotInvertPolarity));
    DAQmxErrChk (DAQmxCfgDigEdgeStartTrig(taskHandle,"/Dev1/PFI14",DAQmx_Val_Rising));

    DAQmxErrChk (DAQmxStartTask (taskHandle));

    printf ("without interruption of the poll. Press Ctrl + C to interrupt\n");
    While {} (1)
    DAQmxErrChk (DAQmxReadCounterScalarU32(taskHandle,10.0,&data,));
    printf ("\rCount: %u", data);
    fflush (stdout);
    }
    Error:
    puts("");
    If (DAQmxFailed (error))
    DAQmxGetExtendedErrorInfo (errBuff, 2048);
    If (taskHandle! = 0) {}
    /*********************************************/
    Stop DAQmx code
    /*********************************************/
    DAQmxStopTask (taskHandle);
    DAQmxClearTask (taskHandle);
    }
    If (DAQmxFailed (error))
    printf ("error DAQmx: %s\n",errBuff); ")
    printf ("end of the program, press the Enter key to quit\n");
    GetChar ();
    return 0;
    }

    Hi neurostu,

    Arms start triggers are disabled by default, so they do not have a default PFI line.

    You will need to set some properties DAQmx to configure a trigger for start of arms. Try adding between DAQmxCreateCICountEdgesChan() and DAQmxStartTask():

    DAQmxSetArmStartTrigType (taskHandle, DAQmx_Val_DigEdge);

    DAQmxSetDigEdgeArmStartTrigSrc (taskHandle, "/ Dev1/PFI14" ');

    DAQmxSetDigEdgeArmStartTrigEdge (taskHandle, DAQmx_Val_Rising);

    You have the file "help NOR-DAQmx C reference"? It should contain descriptions of the trigger > more > arm Start properties.

    Brad

  • Status of synchronization API import of bulk = "error".

    Hello

    I tried for a whole day now for importing bulk work to custom objects, but I have "error" in the status of the synchronization. I went and the data that I POST, and I just can't get my head around what's not here, so I would really appreciate if someone can help me :-) I have no problem with the export of data from the same custom object and the same fields.

    Here's what I do:

    1. create the import definition:

    I POST the Agency following this url {base_url}/api/bulk/2.0/customObjects/{c_id}/imports/ }

    {

    "name': ' Import-% (cdo_name) s."

    'fields ':

    {

    'Email_Address': «{{Objetpersonnalise [%s] (cdo_id).» Scope [%s] (email_id)}} «»

    "FirstName": «{{Objetpersonnalise [%s] (cdo_id).» Scope [%s] (f_name_id)}} «»

    'name': ' {{Objetpersonnalise [%s] (cdo_id) "."}} ". Field [%s] (l_name_id)}}.

    }

    'identifierFieldName': 'Email_Address '.

    }

    I get a positive response from this and import uri

    2. download the data:

    I POST the Agency following this url {base_url}/api/bulk/2.0/customObjects/{c_id}/imports/{i_id}/data }

    [

    {

    ' 'Email_Address': ' [email protected] ", "

    "FirstName": "Morten"

    'name': 'Hansen '.

    },

    {

    ' 'Email_Address': ' [email protected] ", "

    'name': 'Katrine ',.

    'name': 'Jensen '.

    }

    ]

    I also get a positive response to this (no answer content [204])

    3. synchronize data:

    I POST the Agency following this url {base_url}/api/bulk/2.0/syncs }

    {

    'syncedInstanceUri': '/customObjects/ {c_id} /imports/ {i_id}.

    }

    At first, everything seems correct, the sync status is 'pending', but later, when I do a GET call so that the sync check state, it changed to "error".

    I'll be happy to answer any questions about the above (or something I left out). For all those who want to know, I'm programming in Python and I use the library of queries from the standard library for HTTP methods.

    Thank you

    Joakim

    BIG NOTE (for any employee of Oracle, mod, or other): documentation on importing bulk is somewhat contradict; in link 1) below, in the tab "Example", the body of the request to download data is written with nested braces braces - link 2), step 2. 'Download data', the body of the request is written with braces nested brackets. By searching this forum, I found the right correct syntax - which is nested brackets braces. Just thought that I would let you know so you can change it. I have now discovered that none of these plans to request for example in the 2 links below are correct. In fact, I had to completely remove the external supports to make it work. Please update the documentation ASAP! I lost a whole day on this issue!

    1) http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#Developers/BulkAPI/Endpoints/Custom objects/Imports/Data/post-customObjects-imports-data.htm%3FTocPath%3DBulk%25202.0%2520API%7CEndpoints%7CCustom%2520objects%7CImports%7CData%7C___2

    2) http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#Developers/BulkAPI/Tutorials/Import.htm%3FTocPath%3DBulk%25202.0%2520API%7CTutorials%7C___2

    Solution:

    Completely remove the external supports in the payload data in step 2. It should instead look like this:

    2. download the data:

    POST Agency following this url {base_url}/api/bulk/2.0/customObjects/{c_id}/imports/{i_id}/data }

    {

    'Email_Address': '[email protected]',.

    "FirstName": "Morten"

    'name': 'Hansen '.

    },

    {

    'Email_Address': '[email protected]',.

    'name': 'Katrine ',.

    'name': 'Jensen '.

    }

    Hope this helps someone else!

  • Synchronize IR columns via plsql API

    Hello!

    I would use the wwv_flow_worksheet_standard package to synchronize IR columns in my application out plsql.
    Reason: My IR based views (simply: select * from view_name) I have a lot of them, and they change frequently via plsql run immediately.

    What I tried was:

    DECLARE
    l_flow_id NUMBER (20);
    l_region_id NUMBER (20);
    l_query VARCHAR2 (4000);
    l_result VARCHAR2 (4000);

    BEGIN
    SELECT application_id, region_id, sql_query
    IN l_flow_id, l_region_id, l_query
    Of apex_application_page_ir
    WHERE page_id = 9 AND application_id = 133;

    APEX_040100.wwv_flow_worksheet_standard.synch_report_columns (p_flow_id = > l_flow_id,)
    p_region_id = > l_region_id,
    p_query = > l_query,.
    p_add_new_cols_to_default_rpt = > 'Y');
    COMMIT;
    END;

    Unfortunately, it does not work. When executing the procedure synch_report_columns triggers the following error.

    ORA-01003: no instruction not analyzed
    ORA-06512: at "SYS." DBMS_SYS_SQL", line 1685
    ORA-06512: at "SYS." DBMS_SQL", line 629
    ORA-06512: at "APEX_040100.WWV_FLOW_WIZARD_API", line 840
    ORA-06512: at "APEX_040100.WWV_FLOW_WORKSHEET_STANDARD", line 2735
    ORA-06512: at line 23

    Can anyone help?
    Best regards
    Mike

    Hi Mike,.

    You must set the workspace you synchronize IR columns for:

    DECLARE
    l_flow_id NUMBER (20);
    l_region_id NUMBER (20);
    l_query VARCHAR2 (4000);
    l_result VARCHAR2 (4000);
    
    BEGIN
    wwv_flow_api.set_security_group_id(apex_util.find_security_group_id(''));
    
    SELECT application_id, region_id, sql_query
    INTO l_flow_id, l_region_id, l_query
    FROM apex_application_page_ir
    WHERE page_id = 9 AND application_id = 133;
    
    APEX_040100.wwv_flow_worksheet_standard.synch_report_columns (p_flow_id => l_flow_id,
    p_region_id => l_region_id,
    p_query => l_query,
    p_add_new_cols_to_default_rpt => 'Y');
    COMMIT;
    END;
    

    Kind regards
    Erik-jan

  • How to synchronize inventory with the API integration

    Hi guys,.

    I am looking for a c# code to sync the Efusion site to a different CRM database inventory.

    Need help!

    Thank you

    Hi Roman,

    The only documentation available to us are in the articles of the API.

    - http://kb.worldsecuresystems.com/635/bc_635.html

    Otherwise I would definitely post a new topic in the API section rather to possibly get more help with your installation.

    Claudia http://forums.adobe.com/Community/business_catalyst/API-3rd_party_inte

    Kind regards

    -Sidney

  • Sync has encountered an error during synchronization: account name Incorrect or password

    I get this error every time Firefox runs. On several machines. I tried everything suggested on your page "https://support.mozilla.org/en-US/kb/how-to-update-to-the-new-firefox-sync" does not. My settings are accepts all except third party cookies, and dom storage is enabled. I tried the safe mode also.

    I turned on services.sync logging (also on pastebin.mozilla.org):

    Loading Sync.Service 1421507984979 INFO 1.37.0 armor
    1421507984980 initialized Sync.Engine.Clients DEBUG engine
    1421507984981 clients Sync.Engine.Clients DEBUG reset last synchronization time
    1421507984985 json Sync.Tracker.Bookmarks TRACK of the disc loading: changes/bookmarks
    1421507984986 initialized Sync.Engine.Bookmarks DEBUG engine
    1421507984986 json Sync.Engine.Bookmarks TRACK of the disc loading: toFetch/bookmarks
    1421507984986 json Sync.Engine.Bookmarks TRACK of the disc loading: failure/bookmarks
    1421507984989 initialized Sync.Engine.Forms DEBUG engine
    1421507984992 initialized Sync.Engine.History DEBUG engine
    1421507984995 initialized Sync.Engine.Passwords DEBUG engine
    1421507984999 initialized Sync.Engine.Prefs DEBUG engine
    1421507985002 initialized Sync.Engine.Tabs DEBUG engine
    1421507985002 Sync.Engine.Tabs DEBUG reset tabs last synchronization time
    1421507985008 initialized Sync.Engine.Addons DEBUG engine
    INFO 1421507985009 Sync.Service Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; RV:35.0) Gecko/20100101 Firefox/35.0
    1421507985013 Sync.SyncScheduler DEBUG compensation triggers synchronization and the overall score.
    1421507985014 Status.service Sync.Status DEBUG: success.status_ok = > success.status_ok
    1421507985014 URL cached Sync.Service DEBUG under storage base user: https://sync-192-us-west-2.sync.services.mozilla.com/1.5/17968042/
    1421507985014 Status.service Sync.Status DEBUG: success.status_ok = > success.status_ok
    1421507985014 Sync.AddonsReconciler INFO entry as a listener of the Add-ons Manager.
    1421507985015 Sync.AddonsReconciler DEBUG add change listener.
    Observer 1421507985015 INFO Sync.Tracker.History addition of Places.
    1421507985017 Sync.Tracker.Bookmarks ROUTE followed from the beginning.
    1421507985021 Status.service Sync.Status DEBUG: success.status_ok = > success.status_ok
    1421507985022 Status.service Sync.Status DEBUG: success.status_ok = > success.status_ok
    1421507985024 initialized Sync.Engine.AdblockPlus DEBUG engine
    1421507985025 Status.service Sync.Status DEBUG: success.status_ok = > success.status_ok
    1421507985027 fetchKeys FirefoxAccounts DEBUG: true
    1421507985664 FirefoxAccounts ERROR getting/account/key: {'code': 401, "errno": 110, 'error': 'Unauthorized', 'message': 'in the signature of the request invalid authentication token', 'info' ': 'https://github.com/mozilla/fxa-auth-server/blob/master/docs/api.md#response-format' "}
    1421507985664 Sync.BrowserIDManager _fetchTokenForUser authentication ERROR error: AuthenticationError ([object Object])
    1421507985665 Status.login Sync.Status DEBUG: success.login = > error.login.reason.account
    1421507985665 Status.service Sync.Status DEBUG: success.status_ok = > error.login.failed
    1421507985665 Sync.SyncScheduler DEBUG compensation triggers synchronization and the overall score.

    Try to disconnect and reconnect to synchronize via the Firefox > Preferences > Sync window.

    You may also delete the signedInUser.json file in the profile folder.

    You can use this button to go to the Firefox profile folder currently in use:

    • Help > troubleshooting information > profile directory: see file (Linux: open the directory;) Mac: View in the Finder)
  • How to integrate synchronization FF in a website?

    You want to integrate FF-sync in a Web site.
    How does it work?

    IMO, forget trying to use Sync to something like that. It was not designed for this purpose, and security features are much more you need to simply upload bookmarks to a Web site. It is a closed system that really need a synchronization server as the "hub" of the process, using the Sync Services Mozilla server or that configure you and control.

    In a Word, you deal with encrypted data which must be decrypted is downloaded once.

    As far as CSV or XML (RSS uses XML format)files, you must write your own script (or find a script on the internet) to convert files that Firefox uses bookmarks in Firefox (sqlite - JSON - bookmarks.html) in the format you want to use.

    In conclusion, it would be easier to 'hack' Xmarks or comet brands software synchronization to do what you want to do that in order to attempt to use Firefox Sync for something that has a lot more security than you need. These services seem to have more open API, so they already have the ability to provide web-ready output. Firefox Sync is not an option to display the bookmarks of users on the web, where these two other services that have as characteristic.

  • Pulse or measure of separation of two edge with implicit synchronization in ticks: what about minVal and maxVal?

    When I pulse or measure of separation of two edges, using the implicit synchronization, DAQmx chooses (I think) an internal time base appropriate for the measurement. My X series on Board (a 6320) has for example a time base internal 100 MHz. I think I can apply to the use of a base of specific time (using the Set accessor of property DAQmxSetCICtrTimebaseSrc to set the counter to the value '100MHzTimebase' time base). But the docs of the DAQmxCreateCIPulseChanTicks and DAQmxCreateCITwoEdgeSepChan functions (this last one called with the parameter to the DAQmx_Val_Ticks units) make me spend a minVal and maxVal. Apparently, these values are used to determine a time appropriate for the implied timing base (internally). But how to choose the specific digraph/maxVal values? They are obviously dependent on the time base, so it's kind of a situation / the hen's egg. Should I just say '1' or '0.1' or even '0 '? Because I * want * the time of 100 MHz, to use base. Or can I simply call the DAQmxSetCICtrTimebaseSrc after DAQmxCreateCIPulseChanTicks?

    1. When you use "Ticks" for units, digraph must be > = 2.  DAQmx does not support measures of 0 or 1 "Tick" of a time value.

    In general, the parameters that minVal and maxVal are mainly useful for people who are measured in scientific units such as seconds.  They allow DAQmx do the dirty work of correlation required range of programming interface with the basics of time available to the Agency and to make a judicious selection automatically.  For people like you measure in ticks, DAQmx won't do the thinking for you anyway, so just give them plausible values.

    2. Thus, maxVal must simply be a valid 32-bit integer.

    3. Yes, you can explicitly configure to use the time base of 100 MHz after the creation of the task, no doubt thanks to the function, you said "DAQmxSetCICtrTimebaseSrc".  (I do my programming in LabVIEW and don't know the syntax of the api code text driver.)

    I believe that if you do not explicitly choose a time base for a task using ticks as units, the Council will use its default time base.  I know there is an api function in LabVIEW to interrogate the database after creating a task, perhaps you have an available too?

    -Kevin P

  • Synchronize PXI-8512/2 and DAQ, PXI-6220 CAN

    Hello

    I read some examples and other posts on the topic "sync", but I need more information.

    I'm using a PXI-8512/2 with an older application, based on the API of frame. Several frames are transmitted and received periodically, and I need to enter a unique ID of arbitration which has a cycle of ~ 5 ms.

    At the same time, I need a task of data acquisition (analog input) with a sampling frequency of 1000 Hz.

    The challenge is, I need to have the same time base for the analog input and CAN.

    As far as I understand, the timestamps CAN are created in the PXI-8512. The timestamp of the start of the DAQ tasks is based on the time of OS (Windows).

    Transmission/reception CAN must be running still (to perpetuate the ECU), and the data acquisition task will be triggered manually.

    I found the example '\nican\Frame - base with NI - DAQmx.llb\CAN Frame entry API DAQmx Input.vi'. It fits my needs? There is a comment saying: "the departure of AI uses the same sampling as CAN. What it means? The sampling frequency of my CAN is fundamentally different from DAQ. But I have to be able to associate each sample DAQ for a CAN of armature (same time base).

    Thank you for any information helping to clarify.

    Concerning

    Hello

    Sorry, I don't know why I thought you had an X-Series. There is also an example for the other series with the XNET driver:

    Synchronize PXI - CAN with analog DAQmx of entry (using the PXI-Clk10) .vi

    Kind regards

    Heinz

  • Using the Manager of synchronization for exe OI LabVIEW and TestStand

    We would like our operator LabVIEW executable Interface send data via a queue of TestStand to a sequence of logging.  The SyncManager API looks like a slick way to do this because it allows access to the synchronization objects other processes outside TestStand TS.  I created an experimental sequence of trying the concept.  The sequence creates a queue with a step of queue TestStand, up a point to another TS not queue, then uses calls to ActiveX in the SyncManager API to add another element to the queue of waiting.  That all works.

    When I added a LabVIEW VI to place another element through similar calls to ActiveX in the SyncManager API, the VI is not a valid reference to the queue and so it cannot place the element.

    I read on the forum that TS queue name must start with * in order to be accessed by separate processes on the same computer.  When I add a * on my queue name, queue TS operations continue to operate, but step that uses a call of ActiveX in the SyncManager API to get a reference to the queue returns one null ref so the next step of enqueue ActiveX returns an error.  In addition, the LabVIEW VI still does not receive a valid reference to the queue either.

    Ideas and suggestions welcome!  The sequence and LabVIEW VI are attached. Using LV and TS 2012, obtained similar results in 2013SP1.

    Thank you!
    Hans

    The queue API expects a PropertyObject not a string for the newElementPropObj parameter (not sure why LabVIEW similarly let you thread a string). To create a new PropertyObject, you can do something similar to the following:

    myProperty = engine. NewPropertyObject (PropValType_String, false, "", 0);

    myProperty.SetValString ("", 0, theActualString);

    Enqueue it.

    Close the ref to myProperty after you're done with it (i.e. after the queue it) in order to avoid leaking.

    -Doug

  • synchronize the inputs and outputs on the USB-4431

    Hello

    I have an application that needs to send a signal on the USB-4431 and then capture it with an entry on the same device.

    Aware that I use two tasks to do this, one for input and one for output. I discovered that a trigger (on the RTSI bus) can cycles of sending/capture sychronisé departure operations so that it can be a constant offset between the captured signal and the output signal.

    Unfortunately, the code I found is for Matlab. I can't find an equivalent for it in the C API of NIdaq. The method is described here; http://www.mathworks.in/help/daq/synchronize-analog-input-and-output-using-rtsi.html.

    What I can't understand is how to implement this on the analog input:

    ai.ExternalTriggerDriveLine = 'RTSI0';
    

    Can someone shed light on how to do it?

    The rest of the things described here, seems to be feasible with a normal trigger:

    ao.TriggerType = 'HwDigital';
    ao.HwDigitalTriggerSource = 'RTSI0';
    ao.TriggerCondition = 'PositiveEdge';
    

    Thank you

    Nirvtek

    You can synchronize the HAVE and AO by sharing the start of relaxation between your two tasks.

    Choose one of your tasks as the "master" and the other to be the "slave" (any).

    Set up a trigger to start of digital dashboard on the task of the slave, and set the source of the trigger to be the trigger of the master's departure.

    Assume the following:

    The name of your device is 'Dev1 '.

    I is the main task

    AO is the task of the slave

    Here's what you would do to sync the two:

    (1) create the tasks I and AO in order that you want to

    (2) set up "timing" on the tasks of HAVE it and AO (you choose the sampling rates must be the same or power-of-2 many of the other (for example 100 K, 50 K, 25 K, 12.5 K, etc...))

    (3) configure your slave (the task of AO) task to have a numerical advantage start trigger and make the source is the trigger for the start of the task of the master (the task to HAVE it). In our case, "Dev1, AI, StartTrigger.

    (4) write data (a sine wave, presumably) to your task AO

    (5) start the task from the slave (the task of AO).  The task of the AO is now in the 'Started' State, but given that you've set up a digital trigger early, it won't actually generate data until he sees a numerical advantage of 'Dev1, AI, StartTrigger.

    (6) to start the main task (task to HAVE it).  The task of the AI does not have a trigger digital early, so the software will immediately generate a start trigger, which also causes a numerical advantage on "StartTrigger/AI/Dev1", which causes the task AO start at the same time.

    7) read your job to HAVE.

    You will notice a few 0 at the beginning of your data to HAVE. It's a result of something called "Filter Delay" and it is an inherent characteristic of all DSA devices - see the manual to use DSA and this article for more information on what is and how to cope.

    I hope this helps.

    EDIT: I just noticed that you pointed out an existing C example. It's exactly what you want. I don't know why you have a resource error booked - I tried it myself and (after changing the AO will of +/-10V to +/-3 .5V), it works beautifully.  Try to reset your device to the MAX (or DAQmxResetDevice() of your program)

  • Can we synchronize permission selected with the settings of operating system Notifications BB10 for our Application.

    Steps to follow:
    BB10 device--> settings--> Notifications--> Applications--> [name of your application]--> all alerts [Toggle button]

    I have an obligation to check whether or not 'All alerts' is allowed through settings when the application is running. To check if we can synchronize permission selected with the settings of operating system Notifications BB10 for my application. How to get javascript code if alerts permission is on / off, while the application is running.

    I tried adding the blackberry.system function and tried to hasPermission (blackberry.push) also, I can't determine if permission is allow / prohibit... Please suggest how to get that.

    I don't see a WebWorks API for this. If I expected to be anywhere, it's here:
    https://developer.BlackBerry.com/HTML5/APIs/beta/BlackBerry.notification.html#jbo1385148829097

    But it seems that this API has not been fully implemented; It may be useful to connect a developer Issue Tracker JIRA to get this feature added.

    At the same time, there is this API of Cascades that looks like what you're looking for:
    https://developer.BlackBerry.com/native/reference/Cascades/bb__platform__notificationapplicationsett...

    Write an extension for this feature should allow you to access this feature:
    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

    At the same time, a colleague is currently working on an extension that should open many features of Qt, and I think that the API above should be accessible through this extension. He must be released over the next week or two, so you can wait for that as well.

    EDIT: On this last point, see this extension which provides a mechanism for attaching in the majority of the Qt APIs.

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/QtBridge

  • API of BOTTOM add user with the PIM Memo/address settings

    Hello

    I try to add a new Blackberry user if LOW API with the PIM Memo/address configuration. I know that using the BASUserAdminClient it is possible, so I think it would be possible to do the same thing by using web services.

    Have no idea about it?

    Currently user control PIM by BWS is limited to control wireless synchronization and the resolution of conflicts, specification of the server is not yet supported for knowing where to retrieve the data.

  • API to get the list of contacts, calendar, information from music files?

    Hello

    Is there support for the list of contacts, calendar list information files or music from the platform. In the case where a user synchronizes contacts, calendars, music files using a smartphone BlackBerry bridge, how applications can get access to this information?

    concerning

    Arun

    They have not released these APIs to interact with calendar and contacts features yet. They are still working on this feature for the PlayBook, but I think we would expect that in the next version of the OS.

    I'm not sure of the bridge and the music info, but I'm sure that these APIs are in the same boat as the contacts and calendar.

    Scott

Maybe you are looking for

  • How can I block cookies.

    I do not have to automatically accept cookies. In another browser, that I have ever used, I had the opportunity to accept a cookie or not, generally a window open text and asked me if I wanted to accept a cookie or not. How can I set up in firefox. I

  • URGENT-readers in D20 invisible to Windows 7 Installer

    According to the title, when trying to install Windows 7 from USB (acquired second hand device, non-original readers), not lorsque tenter d' installer Windows 7 depuis USB (appareil acquis de seconde main, lecteurs non originales), ne conduit led see

  • You can merge 2 apple id accounts?

    I have 2 accounts Apple ID. a 1 is undergoing a spam, created a long time ago. And 2 a new under a professional e-mail account. I have 200 GB of storage iCloud, which has been accidentally used for 1 account instead of thr 2nd account. Can I transfer

  • I posted a question on this forum, it was answered by Microsoft, how do I remove it

    I went to a clean boot and the problem disappeared.  Microsoft technology has proposed that printer programs use this feature.  I put my disk of the printer in the DVD drive and the problem resolved.

  • Is there a 64-bit to Windows 7 64 bit download Windows 7 easy transfer?

    I got a new computer, the same version of Windows 7 Enterprise 64-bit. I have the custom system as I want and would like to transfer all the settings for Windows and Office. I've seen a lot of discussions on "Windows Easy Transfer", but all the refer