testing native code for running on battery

is it possible for a native C application test if running on battery power or not?

I don't need levels. just battery/notbattery.

Thank you.

nothing about the battery/charger/power in docs ndk. Maybe access to ' / pps/services/power / "can help you? It is dirty way, but it's the only thing in my mind right now

Tags: BlackBerry Developers

Similar Questions

  • keywordsManager: (get the native code)

    On ESTK, running on Bridge CS6 this fives me a function:

    $.writeln (app.document.keywordsManager.renameKeyword)

    I get on console:

    function renameKeyword() {}

    [native code]

    }

    How can I get the native code for this function?

    I don't know how the arguments are organized and how it can be used.

    I also have my Active keywords like this:

    app.document.keywordsManager.serializeToXML)

    and I also have other functions, I want to test use, such as

    addKeyword (?), renameKeyword (?), deleteKeyword (?)

    I solve it.

    ~ app.document.keywordsManager.addKeyword (keywordPath:String, useHierarchicalPath:Bollean)

    ~ app.document.keywordsManager.deleteKeyword (keywordPath:String, useHierarchicalPath:Bollean)

    ~ app.document.keywordsManager.renameKeyword (oldName:String, newName:String, useHierarchicalPath:Bollean)

    ~ app.document.keywordsManager.serializeToXML)

    Notes about the creation of sub keywords:

    When useHierarchicalPath is true, the function will search for the string keywordPath and if it detects a vertical bar (for example ' aaa | ") BBB") which means a keyword"aaa"and a Sub keyword 'bbb' will be created. 'aaa' is created if does not exist.

    It's the same logic used on deleteKeyword and renameKeyword.

    Examples:


    addKeyword

    app.document.keywordsManager.addKeyword ("a few words", true); Add the keyword "words".

    app.document.keywordsManager.addKeyword ("things |") (a few words", true); Add the keyword 'stuff' and the keyword void "words".

    app.document.keywordsManager.addKeyword ("things |") (a few words", false); This action adds the key word "things". a few words"and does not take into account the vertical dashboard

    deleteKeyword

    app.document.keywordsManager.deleteKeyword ("aaa |") BBB", true); Deletes the Sub keyword 'bbb '.

    app.document.keywordsManager.deleteKeyword ('aaa', true); Deletes the keyword "aaa" and all its keywords sup

    renameKeyword

    app.document.keywordsManager.renameKeyword ("aaa |") BBB"," aaa ". CCC', true); Rename the Sub keyword 'bbb' to 'ccc '.

    app.document.keywordsManager.renameKeyword ("aaa", "a11", true); Rename the keyword "aaa" to "a11."

    serializeToXML

    app.document.keywordsManager.serializeToXML (); Returns the XML of the entire structure of keywords

  • Essbase security Migration to native mode for external authentication

    Hello!!

    I want advice on security setting, all users are currently in usermode native and Aboriginal groups.
    Now we want to migrate in external mode, the current version of hyperion is 11.1.1.3, the steps in
    that direction would be really useful.


    What is the best way of migration of the huge user base of native implementation for external authentication directory,
    It is the first step for the time of the native code for the external authentication, if anyone who did this will be useful.

    the installation procedure, maxl based migration will be useful or utility based.

    Thank you

    For services sharerd mode conversion to have a read of - http://download.oracle.com/docs/cd/E12825_01/epm.111/eashelp/sec_mode.htm

    To configure shared services to use an external directory have a reading of - http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_security/frameset.htm?ch05.html

    For mass provision that you could use LCM or the utility CSSImportExport to export the provisioning of native users, update the file exported to include provisioning of users ad, then import them.
    LCM - http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_lifecycle_management/launch.htm
    CSSImportExport utility - http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_security/ch09s08.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Someone has tested the native nVidia for Qosmio X 870 - F31X drivers

    Hello

    I have a Toshiba laptop for the past 5 years and are about to buy the QOSMIO X 870 - F31X.

    My only concern is the update of the display driver. For a mobile game, it's a huge concern. I am aware of the driver on the U.S. site:

    [Display driver X 870-BT2G23 Qosmio | http://www.csd.toshiba.com/cgi-bin/tais/support/jsp/modelContent.jsp?ct=DL&os=&category=&moid=3380646& rpn = PSPLXU & modelFilter = X 870-BT2G23 & SelCategorie = 2756709 & selFamily = 804517]

    Still would like to know if anyone has tested the native nvidia drivers?

    This is certainly the decisive factor :(

    Thank you
    Renclav

    Native nVidia driver might be installed I have not test this, but for according to other threads in forum Qosmio X, this shouldn't be a big problem

  • code for a battery 9 cells

    Hi all! Sorry for my English.
    I am looking for the product code for a battery 9 cells for Lenovo T420 4236-W8Y. Can someone help me?
    Thank you

    Hello

    Welcome to the Community Forums of Lenovo!

    Part numbers for battery 9-cell for Lenovo ThinkPad T420 are 42 T 4799, 42 T 4801 or 42 T 4912.

    Best regards

    Mithun.

  • I can buy a second product code for windows 7 to run on a second PC.

    I can buy a second product code for windows 7 to run on a second PC.

    Digital downloads through which you can buy Windows 7 product key are only available for Windows 7 Professional from Microsoft Store. If this is not the edition you want to install on another computer, you will need to buy a box under license by amazon.com or similar merchant:

    Where can I still get Windows 7?

    Full version-

    Microsoft Windows 7 Home Premium

    Full version-

    Microsoft Windows 7 Ultimate

    Full version-

    Microsoft Windows 7 Professional

    Version upgrade-

    Microsoft Windows 7 Professional upgrade

    Version upgrade-

    Microsoft Windows 7 Ultimate Upgrade

    Version upgrade-

    Microsoft Windows 7 Home Premium Upgrade

    Family Pack:

    Microsoft Windows 7 Home Premium Upgrade Family Pack (3 users)

  • Can someone tell me what I'm doing wrong when you create a native extension for iPad? (Very detailed)

    My company is developing a game for iPhone and iPad using Flash cs5.5 and Air3.0

    The customer requires that certain features be supported - these things as GameCenter, rating, etc... which none are currently supported by flash for the iOS.

    However, they provide us with a bunch of xCode example files on how they want things to work.

    My idea was to bridge the gap in functionality by creating a native extension using the xcode source that was given to me, giving me the required functionality.

    But first, I need to truly CREATE a native extension, even just a base echo/hello everyone... I followed all the steps of various guides and tutorials and I have managed to create an ipa and put it on my iPad 2 to test, but when the program starts, nothing happens, I find myself with a black screen. When I comment on the lines of code that initialize the extension, it fires just fine.

    (and Yes, I even tried to put things in try blocks where there was a mistake - no luck)

    So I hope that someone can read through the process of what I do below and point out what I am doing wrong, or what Miss me.

    What I use:

    Mini Mac running OS x 10.7.2 - this is used to run xCode 4.1 build 4B 110

    PC - Windows 7 home 64 bit - running Flash CS5.5 (version 11.5.1.3469) with the 3.0 SDK inside AIR. I also have the sdk 3.0 air in a separate file for the command-line running. (This is my primary development platform)

    The PC has flash builder installed, but I've never really used it, and I don't know how to use it... everything that has been built to date has been done using Flash CS5.5

    So, here's what I did.

    The first thing we do is to create a library static .a on mac.

    I open xcode and create a new project.

    • Select iOS framework and library, then select "Cocoa touch static library.
    • Give it a name, in this case "EchoExtension" and put it in a folder.
    • I then delete the file EchoExtension.h as all the samples I've seen so far do not use.
    • I then add 'FlashRuntimeExtension.h' to the project of the AIR3.0 sdk frameworks folder on my PC
    • I remove everything in my folder ".m", and then, next to several different examples and tutorials, type the following code:

    //

    EchoExtension.m

    EchoExtension

    //

    #include "FlashRuntimeExtensions.h".

    Echo FREObject (FREContext ctx, void * funcData, uint32_t argc, {FREObject argv)

    return argv [0];

    }

    //----------- Extention intializer and finalizer ----------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------ -

    A native context instance is created

    void ContextInitializer (void * extData, const uint8_t * ctxType, FREContext ctx, uint32_t * numFunctionsToTest, const FRENamedFunction * functionsToSet) {}

    Configure the number of functions in this extention

    for ease of reference, set the number of function that will use this extension.

    int FunctionCount = 1;

    set the number of function pointer reference that will use this extention.

    * numFunctionsToTest = FunctionCount;

    create an array to store all the functions that we will use.

    FRENamedFunction * func = (FRENamedFunction *) malloc (sizeof (FRENamedFunction) * FunctionCount);

    create a table for each function entry

    Func [0] .name = (const uint8_t *) "echo"; the name of the function

    Func [0] .functionData = NULL;                    the data type

    Func [0] .function = & echo;             the reference to the real function

    Save the array to a pointer.

    * functionsToSet = func;

    }

    A native context instance is deleted

    void ContextFinalizer (FREContext ctx) {}

    return;

    }

    Initialization of each extension function

    void ExtInitializer (void * extDataToSet, ctxInitializerToSet FREContextInitializer *, FREContextFinalizer * ctxFinalizerToSet) {}

    * extDataToSet = NULL;

    * ctxInitializerToSet = & ContextInitializer;

    * ctxFinalizerToSet = & ContextFinalizer;

    }

    Called when the extension is unloaded

    void ExtFinalizer (void * extData) {}

    return;

    }

    • I'll then 'product', 'building' and it creates libEchoExtension.a
    • I'm copying this .to file on my PC.

    I am now finished with this abandoned mac of God (* shudder *)
    Back on my PC, I create a folder for my test project. For all the intentions a purposes, we will call this "D:\src\EchoExtension" then I create 2 folders, one called "lib" and one called "app". Lib, it's where I'm going to create the actionscript source for my extension.

    • In my lib folder, I create a new fla in flash cs5.5, called "EchoExtension.fla".
    • I create my lib folder, the following:
      • com\extensions\EchoExtension\EchoExtension.as
      • a folder named 'Build' in which I place my libEchoExtension.a file.
    • I have in my EchoExtension.as file, place the following code:

    package com.extensions.EchoExtension

    {

    import flash.events.EventDispatcher;

    import flash.events.IEventDispatcher;

    import flash.external.ExtensionContext;

    SerializableAttribute public class EchoExtension extends EventDispatcher

    {

    protected var _extensionContext:ExtensionContext;

    /**

    * Constructor.

    */

    public void EchoExtension()

    {

    Super();

    Initialize the extension.

    _extensionContext = ExtensionContext.createExtensionContext ("com.extensions.EchoExtension", "main");

    }

    public void echo(Prompt:String):String

    {

    Return _extensionContext.call ("echo") as String;

    }

    }

    }

    • In my main fla, on the first layer of the time line, I put just the following code to make sure that did get file included when I publish the swc.

    import com.extensions.EchoExtension.EchoExtension;

    var ext:EchoExtension = new EchoExtension();

    Stop();

    • I then opened upwards from my fla publication settings, disable the swf - which I don't need, and check the swc and ensure it generates in my generation folder.  «. "/ Build/EchoExtension.swc.
    • I also updated the player Air 3.0 (which I can do because I managed integrated AIR 3.0 along side my AIR 2.6 and can build both without any problem)
    • I then publish the swc. So far so good. No problems.
    • I then made a copy of the CFC and rename it to EchoExtension.swc.zip, how I extracted the library.swf file and place it in the folder of my generation.
    • I then create extension.xml in case of generation that contains the following code:

    " < extension xmlns =" http://ns.Adobe.com/air/extension/2.5 ">

    com.extensions.EchoExtension < id > < /ID >

    < versionNumber > 1 < / versionNumber >

    <>platforms

    < platform name 'iPhone-ARMS' = >

    < applicationDeployment >

    < nativeLibrary > libEchoExtension.a < / nativeLibrary >

    < initializer > ExtInitializer < / initializer >

    < finalizer > ExtFinalizer < / finalizer >

    < / applicationDeployment >

    < / platform >

    < / platforms >

    < / extension >

    • Now, at this point, I'm a little suspicious, because I build for the iPad2... the platform is iPhone... I thought that may be a problem and at some point I have tested the same build on the iPhone4 and had the same results. I also tested using the name of the platform of the iPad-ARM and got the same results... So I don't think that's the problem, but I'm not sure.
    • Now, to make things easier, I created a batch file called "buildane.bat" in my file generation. That's what I use to create my .ane file and it contains the following command line:

    D:\SDKs\AirSDK30\bin\adt-Paquet - target ane EchoExtension.ane extension.xml - CFC EchoExtension.swc - iPhone-ARM library.swf libEchoExtension.a platform

    • I then open a command prompt and run buildane.bat and Ottoman. My donkey is created. My generation file now has the following files in it:
        • buildane.bat
        • EchoExtension.ane
        • EchoExtension.swc
        • EchoExtension.swc.zip
        • extension. XML
        • libEchoExtension.a
        • Library.swf

    Now that I have my swc, donkey and it's time to create my sample application that will be used to test my new extension.

    • I go back to my D:\src\EchoExtension folder and go to the folder app ealier, I created.
    • I then create a new flash project called EchoExtensionTester.fla
    • I open the action script settings, paths to library and add the CFC I created in my D:\src\EchoExtension\lib\build file to my project.
    • On my stage, I create a field called text txtInput, a field of dynamic text named txtEcho, and a couple of buttons called btnClear, btnRuntime and btnEcho
    • I open the first layer of the timeline, and place the following code:

    imports of base.

    import flash.desktop.NativeApplication;

    import flash.events.MouseEvent;

    import flash.text.TextField;

    import the extension of our swc.

    import com.extensions.EchoExtension.EchoExtension;

    the value of our input text to the need the softkeyboard field

    txtInput.needsSoftKeyboard = true;

    Add event handlers to our buttons.

    btnEcho.addEventListener (MouseEvent.CLICK, btnEcho_Click);

    btnClear.addEventListener (MouseEvent.CLICK, btnClear_Click);

    btnRunTime.addEventListener (MouseEvent.CLICK, btnRunTime_Click);

    create our variable expansion.

    var ext:EchoExtension;

    Try

    {

    initialize our extension of echo.

    Ext = new EchoExtension();

    } catch (error) {}

    txtEcho.text = 'Error when trying to create new EchoExtension:\n\n' + e;

    }

    Stop();

    Delete the text echo field

    function btnClear_Click(e:MouseEvent):void

    {

    txtEcho.text = "";

    }

    just to test, put the latest version of the air runtime in our text field, so we can make sure we run air 3.0

    function btnRunTime_Click(e:MouseEvent):void

    {

    txtEcho.text += "\nRuntime version =" + NativeApplication.nativeApplication.runtimeVersion; ".

    }

    call the extension, passing all that is in the text input field and get back and place it in our text echo field

    function btnEcho_Click(e:MouseEvent):void

    {

    txtEcho.text += "\n";

    Try

    {

    txtEcho.text += ext.echo (txtInput.text);

    } catch (error) {}

    txtEcho.text += "\nError call ext.echo:"+ e;»

    }

    }

    • I save the project, Open Air for the parameters of the iOS, then perform the following settings: (Yes, I know... I'll have to use adt to perform the build, but I need to first create the swf file)
      • File: EchoExtensionTester.ipa
      • AppName: EchoExtensionTester
      • Version 1.0
      • Landscape
      • Full screen on
      • Auto orientation is disabled
      • GPU rendering
      • device: iPad and iPhone
      • RES: high
      • Deployment: I use my certificate and profile provisionging that I use for my main project (that works) and defined for the test of the device.
    • I close the window and save again... but before I publish, I opened newly created "EchoExtensionTester - app.xml" which is located in my app folder.
    • I add the extensions <>< extensionID > com.extensions.EchoExtension < / extensionID > < / extensions > to the XML in the file so now it looks like this:

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >

    " < application xmlns =" http://ns.Adobe.com/air/application/3.0 ">

    <>Extensions

    < extensionID > com.extensions.EchoExtension < / extensionID >

    < / extensions >

    < id > EchoExtensionTester < /ID >

    < versionNumber > 1.0 < / versionNumber >

    < file_name > EchoExtensionTester < / name of the file >

    < description / >

    <!-to locate the description, use the following format for the description element. < description > < text XML: lang = "fr" > App English description goes here < / text > < text XML: lang = "fr" > French App description goes here < / text > < XML text: lang = "ja" > Japanese App description goes here < / text > < / description >->

    < name > EchoExtensionTester < / name >

    <!-to locate the name, use the following format for the name element. < name > < text XML: lang = "fr" > insert here the name App English < / text > < text XML: lang = "fr" > insert here the French App name < / text > < XML text: lang = "ja" > insert here the Japanese App name < / text > < / name >->

    < copyright / >

    < initialWindow >

    < content > EchoExtensionTester.swf < / content >

    standard < systemChrome > < / systemChrome >

    < clear > false < / transparent >

    < visible > true < / visible >

    true < fullscreen > < / full screen >

    landscape of < aspectRatio > < / aspectRatio >

    GPU < renderMode > < / renderMode >

    < maximizable > true < / maximizable >

    < minimizable > true < / minimizable >

    < resizable > true < / resizable >

    < autoOrients > false < / autoOrients >

    < / initialWindow >

    < icon / >

    < customUpdateUI > false < / customUpdateUI >

    < allowBrowserInvocation > false < / allowBrowserInvocation >

    < iPhone >

    < InfoAdditions >

    <! [CDATA [< key > UIDeviceFamily < / key > < table > < String > 1 < / string > < string > 2 < / string > < / array >]] >

    < / InfoAdditions >

    < requestedDisplayResolution > top < / requestedDisplayResolution >

    < / iPhone >

    < / application >

    • I save the changes to the xml file and return to Flash. I then publish.
    • The swf file is created as it should be, but then I get the error message:

    Error creating files.

    A native implementation extension 'com.extensions.EchoExtension' required by the application is not found for the target platform.

    • Now, while it is a pain in the rear, I again, this was going to happen because in my reading tutorials and samples, they have all said that you use adt to build the ipa... but that is fine... all I wanted anyway, was the swf, which I now have in my app folder.
    • I close flash because I no longer need and I create a new batch file: (Note: I have change the name of the cert, profile and password for this post)

    CLS

    "D:\SDKs\AirSDK30\bin\adt" - package - target the ipa-ad-hoc - stores pkcs12 - keystore "D:\src\mycert.p12" - storepass MYPASSWORD-putting into service-profile "D:\src\myprovfile.mobileprovision" "EchoExtensionTester.ipa" "EchoExtensionTester - app.xml" "EchoExtensionTester.swf" - extdir... / lib/Build

    Set dummy = p

    ECHO done

    • I then open a command window in my app folder and run build.bat.
    • I wait about 2 minutes...
    • ...
    • ...
    • YAY! My ipa file was created without error reported so far... Time to copy this bad boy to the iPad and see what happens.
    • I opened iTunes, drag "EchoExtensionTester.ipa" to the applications, then synchronize my device...
    • ...
    • YAY! iTunes installed ipa on the device... and there is a white icon bright and shiney for Echo Extension tester...
    • I open the app... and...
    • nothing.
    • I'm waiting for
    • still nothing.
    • I go to the bathroom.
    • I'll be back... still nothing... just a black screen.
    • I press the home button on the iPad, the app minimized, I restore it... nothing... black screen.

    management of human resources. Time to do some trial and error to see if I can figure out what the distribution.

    • As a test, I opened my fla and I comment out the following lines:
      • Ext = new EchoExtension();
      • txtEcho.text += ext.echo (txtInput.text);
    • I then rebuild the swf... get the same error (don't care)... I then rebuild the ipa using the batch file... and reinstall it on the device when it is made.
    • Exactly the same thing...
    • I opened the xml file... and remove the < extensionID > com.extensions.EchoExtension < / extensionID > line, save and re - run the batch file again... Wait for the ipa ends, then run it on the device.
    • I start the program on the iPad and it starts perfectly... with the exception of the commented line of code actually create and call the extension, everything works as it should. The runtime on the device reports as 3.0.0.4080
    • A test, I opened the .fla save and uncomment the 2 lines, I commented out above... keep the xml file extensionID, I re - publish the ipa... of course, this time, it actually creates the flash API, because the id of the extension is not in the xml file.
    • I put the file API with the extension in place on the ipad code... The fire and make the txtInput text and press the button of the echo. I get the following error:
      • Error calling ext.echo: TypeError: Error #1009
    • I suspect it's because I failed to include the extension in the descriptor... but when I build it with the extensionid in the xml file, I just get a black screen. I'm 99% sure that the context of the extension in the ext object is null (because that's what happens when I run Flash debug without extension lines in the xml)

    And here I am stuck.

    Can someone tell me what I am doing wrong or what I forgot to do?

    Thank you.

    Hi can check you if the CFC of the native extension is linked as external?

    Next image can help locate and change the link type of CFC.

    The issue that many people face here (i.e. extension works fast/interpreter mode and only when they are packed in standard mode) occurs only when the SWC of the NE is not linked externally.

    I hope this helps.

    Kind regards

    Mathyas blabla

    IOS of the AIR

  • No license when the laptop is running on battery


    Hello

    The reason why you receive this message, it is that the ID of the computer used to
    generate an activation code for LabVIEW is based, in part, on your ethernet
    MAC address of the card. Looks like when you switch to the mode that Windows battery
    reports a different MAC address for the License Manager.

    I can generate a computer ID based on the volume of your hard drive disk
    Serial number that you could use to activate LabVIEW again. This would avoid
    This problem from happening again in the future (at least until you change your)
    hard drive, but I guess that you would like to reinstall LabVIEW at that time here anyway).

    In order to obtain this ID from computer to you, I need to know what that your Volume Serial
    Number is, it is how to get that:

    1. open a command prompt. Click Start' Run
    2. Type "cmd" (without the quotes) and click OK
    3. at the command prompt, type "C:" (without the quotes) to change
    Active directory on your C: drive
    4. type 'flight' (without the quotes) to get your serial number of the Volume.

    Once I get you with your Labview (Basic, full development system,
    Professional). I will answer you with a computer, identification number that you can use to activate
    LabVIEW to http://ni.com/activate/

    Besrt cordially,
    Nick_CH

  • Need help with LabVIEW code for motor control.

    Hello

    My name is Sasi. I'm a grad student BME working on my thesis topic of assessment for back pain spine implants. To do this, I'm building a test machine that would apply pure moments of a specimen of the spinal column. I use LabVIEW 8.5 to implement the control of a brushless AC servo motor. My requirement is

    Step 1: Initialize the engine.
    Step 2: Start moving it to a uniform to the right PLAN (this value of RPM too user can enter).
    Step 3: while doing step 2; at the same time read the couple cell data (acquisition of data using Asst.). DAQ o/p is 0 v to 10 V; 0 v is 10 Nm n
    10 v is + 10 Nm
    Step 4: What torque reached + 10 Nm, i.e. 10 V, the engine stops.
    Step 5: from the position where the motor stopped (IE not need to return to the initial position) start moving in the opposite direction to the same
    Uniform rpm as in step 2 at the reading of data in the cells of the couple.
    Step 6: once more what torque reached-10 Nm, i.e. 0 V, the engine should stop.
    Step 7: Repeat "Step 2" to the "step 6' 3 times.
    Step 8: Reset engine position.

    So far, I managed to get the engine to move backward @ a desired vel, the accl, deceleration for 3 cycles before n n. I enclose my code. I have a problem inserting the code for reading DAQmx amidst all this. Can someone help me.

    Thnks,

    Sasi.

    Hi Sonia,.

    I took a quick glance to your problem and I think I have a solution for you.  I certainly agree with the suggestion of the use of parallel loops Lynn.  This will allow the portion DAQmx run uninhibited by the part of the motion, and vice versa.  In addition, you need only perform an iteration of the loop of the movement whenever the voltage level exceeds a threshold.  Thus, by performing an iteration on the code of movement in the same loop are you iterate over DAQmx code, you essentially waste processor.

    I created a VI that should do what you are wanting.  I tested it on me and it works very well.  You have a tweak a few things to apply to your system (such as motion Council DAQmx and physical channel ID, etc.).  I used two parallel loops and event programming.  Basically, the loop of movement starts the engine turns at the specified speed.  Once the engine is running, he expects the DAQmx loop to tell him that the voltage value has crossed the threshold.  When the voltage value exceeds the maximum threshold (I put a value slightly less than 10 to jitter and saturation), the DAQmx loop indicates the loop of the motion that it may end its iteration.  The motion loop stops the motion, causes a reversal and repeats the motion.  Once the movement has begun, he expects the DAQmx loop once again to tell him that a threshold was held, but this time, it's looking for a minimum threshold.  I used "Occurrences" to implement the event programming in LabVIEW.

    I've commented the code pretty thoroughly, so I hope that comments will answer all remaining questions.  The advantage of using programs that focus on the event for this is that you save time processor, and your movement is more closely synchronized with the DAQmx.  Instead of one iteration of the loop of movement as fast as you can, updates every hour, you just put in pause and wait for the other loop to tell you when to start up again.  Meanwhile, the processor doesn't have to worry about an iteration of this loop over and over again.  In addition, when the accident occurs, you catch him immediately, instead of having to wait until the next iteration.  Thus, you are more closely synchronized with the DAQmx code portion.

    I hope this will help you.  Please report if you have any questions about the code or its implementation.  Good luck!


  • Machine virtual Java to native code: EXCEPTION_ACCESS_VIOLATION (0xc0000005)

    Originla title: Re: java

    I received this error message that the accident happened outside the Virtual Machine Java to native code. A fatal error has been detected by Java runtime environment:
    #
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc = 0x7c919af2, pid = 3388, tid = 1364
    #
    # Version JRE: 6.0_26 - b03
    # Java VM: Java hotspot Client VM (20, 1 - b02 mixed mode, sharing windows - x 86)
    # Problematic frame:
    # C [ntdll.dll + 0x19af2]
    #
    # If you want to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The accident happened outside the Virtual Machine Java to native code.
    # See problematic frame for where report them the bug.

    Hello

    · Were there any changes made on the computer before the show?

    1. run chkdsk /r on the drive and check if it helps. You can visit the link below for the procedure: how to perform disk error checking in Windows XP: http://support.microsoft.com/kb/315265

    2. uninstall older versions of java and install the latest version and check if that helps. You can consult the links below for the procedure:

    How to uninstall Java on my Windows computer? : http://www.java.com/en/download/uninstall.jsp

    Download Java for Windows: http://www.java.com/en/download/inc/windows_new_ie.jsp

  • native code: x 86

    Hello

    I already joined BB plugin in Eclipse...

    Then, after adding nature BlackBerry to my project, I got an error "native code: x 86" in "AndroidMainfest.xml"...

    How can I solve this?

    NOTE: my project contains the SDKs like facebook, google-game-services, inmobi and andengin.

    Thanks in andvance

    The problem is you are testing with the old plugin. You need the 2.0.2 new tools as well as the plugin for new tools. The new tools will allow you to reorganize and deploy applications containing native code.

  • Native SDK for BlackBerry Tablet OS Beta 1

    I'm new to the BlackBerry development environment. I installed "native SDK for BlackBerry Tablet OS Beta 1 and also I have installedBlackBerry PlayBook Simula in VMware Player.» Now, I want to write some code to test it on the 'Simular '. Since this Forum called "Tablet OS SDK for Adobe AIR", my question is: I'm in the right place? Need to install stuff Adobe to launch my application?

    This forum is made for Adobe AIR development. You must use the NDK forum for questions about the NDK.

  • Newbie wanting to AIR w / extensions to native code and the Protocol of Android accessory

    My interests include prototyping and very specific to very specific real-world applications of programming solutions.  So I bought a Playbook after viewing the quick "prototyping" video in this blog:

    http://devBlog.BlackBerry.com/2011/12/BlackBerry-PlayBook-Arduino/

    I tell myself I can do cela or something similar with PIC Basic Pro and a Microchip IC.  Although it has been nearly six months, from what I can tell, the RIM developers have failed to deliver on explaining how to use native code and the ancillary Protocol Android to connect in series on client's port to the mini-USB of the Playbook.

    Is RIM people please, show us how set up the programming environment, use the code, the mini-USB port on client Playbook, the adapter USB (where to buy, what is it exactly?), so we can use the USB client connected to an Integrated Circuit Programmable to connect in series with an AIR running on the Playbook application.

    Kenneth Mark Klausner

    How this kind of thing is that you have the hardware (Controller USB etc.), and there different registers, buffers, etc. that must be handled.  The first layer of software, what made this manipulation, is a device driver. While in some operating systems (Linux, for example), you can write yourself, or port code Besides, material in the PlayBook is accessible only by the drivers as part of the operating system, which means that the RIM should provide their.

    These drivers are may be incomplete. We do not know that for some.

    Drivers expose a particular interface to the next higher step of the software, an interface that must be respected. This interface is generally quite low, and the driver can support the features that cannot be exposed to third party software, so for this and probably other reasons, we can not directly access (and are prevented by security mechanisms).

    There is another layer of software on top of the pilot, commonly called a library. This library is also provided by RIM, as part of the operating system.

    This library can be incomplete as well. We do not know the details, but I suspect someone who knows this level of the design of the system and who attended the BB10 Bluetooth and USB discussion group would be able to interpret what they heard there to clarify.

    It's this library which provides what we call a bit of hand-wavingly API 'USB '. This is an interface in C language, with a set of data and calls structure function definitions that enable higher level code perform different operations related to USB.

    If you want to write a DONKEY, you write about this library, not the level of driver and not material. You have no choice in this matter, as it is applied by the security of the OS.

    So to sum up, if we refer to 'USB API' they're talking about essentially the library routines, and it is necessary to talk to this API to get whatever it is the case here.  The API can be described in the header files (there is something), or maybe he's going to be an API different than what I see out there. Whatever it is, it is undocumented in other places at the moment, so all who want to enter this need to make much low level experiment (talking to the library).

    They can have the documents which cover this and perhaps code samples to talk to the library. If the version of the operating system we have has the incomplete versions or buggy drivers or libraries, this could explain why they have not pushed this documentation and code for us.

    I think that I heard that they are gathering input (requirements, use cases, comments) from people in this session.  Who tells me that they are still working on some details, and when they are at a stage like that they simply don't tell us publicly where they are, deadlines, or what it will look like when it is done.

    And so expect.

  • Help with code for counting

    Hi I am new to coding and, at school, they give us builders of the project before assignment, they are usually much more difficult but for the practice and trial and error. This one I'm completely lost. They provide a code for counting MEAC, a load of cookie that was reversed when you press on and the user needs to count spilled cookies and enter the number. The wrong number does not work so it has a loop function in I think. Here's the code that provided things needs added.

    Stop();

    var numberOfCookies:Number = 0;

    startBtn.addEventListener (MouseEvent.CLICK, getCookies);

    function getCookies(Event:MouseEvent)

    {

    numberOfCookies = (Math.floor (Math.random () * (10)) + 1);

    var n: Number = 0;

    }

    Now the long instructions on what needs to be done.

    1. Complete the getCookies function by typing the following code before the closing brace on the right:
      1. Add a line under the last line of the code and before the right fence reinforcement to create a while loop that loops while n is less than numberOfCookies.
      2. Define all looped as follows and place the code inside the left and right hooks:
        • Type a line that creates a variable named cookieInstance that has a cookieMC data type. Create a new instance of the cookieMC.

    Note: cookieMC is the video clip that contains an image of the cookie.

    • Add another line of code that uses the method addChild to add cookieInstance to the display list and places it in a random place.

    Hint : Your text contains an illustration that represents the format of line addChild . The values of x must be 200 and 20, and values there must be 150 and 220. This will ensure that the cookies will be overlapping with the cookie jar!

    • Add another line of code that increments n to 1.
    • Check both the time watching the block of code and the function block getCookies end of code with right brace (}).
    • After the right brace for functions getCookies, typed an event listener that calls a function when it is clicked on the goBtn object. Name of the function checkNumberTyped.
    • Definition of the function as an if-else statement. If the number entered by the user in the input box (checkBox.text) equals the number of cookies (numberOfCookies) generated by the random function, have the playhead go and play frame 2; or else have the playhead go and play frame 3.
    • Check the format of syntax and code auto.
    • Click on frame 2 in the timeline. Click on the area of dynamic text under the heading on the stage and give it an instance name of right.
    • Click on the image on the layer 2 actions. Then view the Actions Panel.

    Note : The code in line 2 adds an event listener that "listens" for an event ENTER_FRAME and appoints a (correct) function. The causes of event frame enter the named function correct to run when the playhead moves to frame 2

    1. Type the line of code between the braces ({}) left and right which takes the value in the numberOfCookies variable and it changes to string data type and then assigns it to the dynamic text box named right.

    Hint : the format to change a digital var to a string is: Textboxname.text = String (var);

    1. Check the format of syntax and code auto.
    2. Click on the image 3 on the Timeline and click on the area of dynamic text on the stage and give it an instance name of the lot.
    3. Click on the image on the layer 2 shares and copy the code for the listener of events and the called function OK. Click on the image on the layer 3 actions and paste the code on a new line after stop();
    4. Change the code pasted into the image 3 on the layer actions so the function name is incorrect and does not name text box.
    5. Check the format of syntax and code auto.
    6. Test the animation several times by entering the correct and incorrect numbers for the number of cookies displayed.

    Now, it's my first Flash class, and I've been in 7 weeks, I feel it is a lot to know already, but if anyone could tell me what I need to add and why would I have a great understanding until the project that happens I need this practice will last.

    the following code fills the coding part of your task.  you will need to pick up line "check the syntax and the auto format code".

    ///////////////////

    Stop();

    var numberOfCookies:Number = 0;

    startBtn.addEventListener (MouseEvent.CLICK, getCookies);

    function getCookies(Event:MouseEvent)

    {

    numberOfCookies = (Math.floor (Math.random () * (10)) + 1);

    var n: Number = 0;

    While (n<>

    var cookieInstance:cookieMC = new cookieMC();

    addChild (cookieInstance);

    cookieInstance.x = 20 + Math.floor (181 * Math.random ());

    cookieInstance.y = 150 + Math.floor (71 * Math.random ())

    n ++ ;

    }

    }

    goBtn.addEventListener (MouseEvent.CLICK, checkNumberTyped);

    function checkNumberTyped(e:MouseEvent):void {}

    {if (Number (CheckBox.Text) == numberOfCookies)}

    gotoAndPlay (2);

    } else {}

    gotoAndPlay (3)

    }

    }

  • Native extension for Game Center

    Hi guys,.

    If I understand well with the last Beta of Air it is possible to implement native extensions for iOS, and in theory, which would make it possible to connect to Game Center and in-app purchases.

    If anyone here has tested this? It would be nice to know if there is no show plugs before starting to 'dig '...

    See you soon,.

    / Andreas

    You can find here in-app purchase - http://code.google.com/p/in-app-purchase-air-ios/

Maybe you are looking for

  • Some links no longer work since version 20.0.1 on my Windows 7 loading machine.

    On this page, http://www.statesman.com/news/news/crime-law/as-lehmberg-heads-to-jail-new-details-about-bookin/nXRjb/, the next link in the comments does nothing. Reloading in safe mode resolves the issue. What are Add-ons likely cause this?

  • Impression of eFax with Officejet 6700

    I was told that there is an APP for Efax for the printer. However, not that you have Connect HP, you cannot access the HPePRINTcenter where the application is supposed to be. Now, none of the applications on my printer are available as the printer sa

  • How to install Win 7 on a SSD in Satellite U500?

    Hello I had good results with SSDS in my desktop PC (both Win XP) has decided to ride one in my laptop U500 who has Win 7/64. The original HARD drive still works very well so I saved an image on a big USB and burned a DVD of recovery. With the SSD in

  • connecting macbook pro (A1278) to TV via hdmi cable

    I'm trying to connect my macbook pro (A1278) to my TV via the hdmi cable, but it doesn't work. The connection does not work. What is on my macbook screen does not appear on my TV. My tv displays just a black screen. Is there some sort of settings tha

  • acquisition of start button

    Hello, I use Labview development Vision module to control a camera high speed for my project. In my project, I capture images as in streaming video, convert images in binary images and calculate the number of particles in this (measure in pixels) ima