Accelerometer and EventInjector

It is possible to simulate the events of the accelerometer on a device using EventInjector or some other API?  For example, an application can simulate an event ORIENTATION_TOP_UP?  Or, is it possible to simulate specific values of G-force per axis?

No, this is not supported.

Tags: BlackBerry Developers

Similar Questions

  • Calibrate the accelerometer and orientation sensor

    Is it possible to calibrate the accelerometer and orientation sensor? For my motorcycle G sensors are not accurate? I think there is a way to edit some system 4.4.4 android files.

    Archies, please do not type in uppercase - this is considered rude and involves screaming.

    It is that nothing built-in in the phone, but there are some 3rd party apps that claim to calibrate the compass.

  • simultaneous acquisition of the accelerometer and a measure of a rotating machine encoder.

    I want to make a simultaneous purchase of the accelerometer and a measure of a rotating machine encoder.

    So what National Instruments data acquisition product must be chosen to do this capture.

    Sure that if your accelerometers do not need power IEPE (maybe you have an external power supply for the accelerometers) and if the voltage sensor is located in the voltage of the sensor of the 6221 range.

  • Accelerometer and GPS - can´t to operate

    Hello

    I am writing a small application to test the accelerometer and GPS. Unfortunately it does not work and I get no updates of the sensors.

    This is my code:

    package
    {
        import flash.display.Sprite;
        import flash.events.AccelerometerEvent;
        import flash.events.GeolocationEvent;
        import flash.events.MouseEvent;
        import flash.media.Camera;
        import flash.media.Video;
        import flash.sensors.Accelerometer;
        import flash.sensors.Geolocation;
        import flash.text.TextField;
        import flash.text.TextFormat;
    
        import qnx.ui.buttons.Button;
        import qnx.ui.buttons.LabelButton;
    
        [SWF(width="1024", height="600", backgroundColor="#cccccc", frameRate="30")]
        public class AIRHelloWorld extends Sprite
        { 
    
            var geoTextField:TextField = new TextField();
            var accTextField:TextField = new TextField();
    
            public function AIRHelloWorld()
            {
                var helloButton:LabelButton = new LabelButton(); 
    
                var geo:Geolocation;
                var acc:Accelerometer;
    
                geoTextField.x=10;
                geoTextField.y=10;
                geoTextField.width=400;
    
                accTextField.x=10;
                accTextField.y=30;
                accTextField.width=400;
    
                addChild(geoTextField);
                addChild(accTextField);
    
                if (Geolocation.isSupported)
                {
                    geo = new Geolocation();
                    geo.addEventListener(GeolocationEvent.UPDATE, updateHandler); 
    
                    geo.setRequestedUpdateInterval(1000);
                    geoTextField.text = "Geolocation feature is supported";
                }
                else
                {
                    geoTextField.text = "Geolocation feature not supported";
                } 
    
                if (Accelerometer.isSupported)
                {
                    acc = new Accelerometer();
                    acc.setRequestedUpdateInterval(100);
                    acc.addEventListener(AccelerometerEvent.UPDATE, accupdateHandler);
                    accTextField.text = "Accelerometer feature is supported";
                } else
                {
                    accTextField.text = "Accelerometer feature is not supported";
                }
    
                stage.nativeWindow.visible = true;
            } 
    
            private function updateHandler(event:GeolocationEvent):void
            {
                geoTextField.text = "latitude: " + event.latitude.toString() + "\n"
                    + "longitude: " + event.longitude.toString() + "\n"
                    + "altitude: " + event.altitude.toString()
                    + "speed: " + event.speed.toString()
                    + "heading: " + event.heading.toString()
                    + "horizontal accuracy: " + event.horizontalAccuracy.toString()
                    + "vertical accuracy: " + event.verticalAccuracy.toString()
            }
    
            private function accupdateHandler(event:AccelerometerEvent):void
            {
                accTextField.text = event.accelerationX.toString() +"\n" + event.accelerationY.toString()+ "\n" + event.accelerationZ.toString();
    
            }
        }
    }
    

    The read_geolocation tag is present in the file blackberry - tablet.xml. Any ideas? The text boxes do not show that the features are present - no updates at all.

    Thanks in advance!

    Hi maltic,

    the problem is that you're declaring variables of geo and CAC inside the constructor, then when it stops, your valuables are gone as well.

    Move the two statements to be global to the class (same place, you stated the TextFields) and you'll have it working properly.

    In addition, you should also test geo.muted, because it will tell you if your application has the rights to read the data of geolocation or not.

    I hope that helps!

  • cDAQ 9184 with module NI9232 for sensor accelerometer and pressure

    I'm currently building a CompactDAQ system for measuring two signals: vibration and pressure in the duct system. The system will consist of the following elements: chassis, NI 9232 Module cDAQ9184. Accelerometer IEPE to measure acceleration (vibration) and pressure for the measurement of the pressure sensor. My question is: can I connect the pressure sensor in the NI 9232 module? I have found on the site OR that this module is designed for acceleration and offers a conditioning of signals and excitation for accelerometers but nothing mentioned about pressure sensors. On the other hand the site mentions NI9237 module as the best choice for pressure sensors. So can I just use 9232 OR both sensors or not.  Thank you

    Here's an IEPE (source of ICP (r)) of transducors pressure: http://www.pcb.com/products/browse_productlist.asp

    Kistler is another provider.

    To help choose - can you tell us more about what you are going to connect the sensors - what is the unit under test?

    What do you do in the hope of discovering or surveillance of the unit?

  • Mulitasking on Casacde (Backbround thread for reading the accelerometer and in the foreground UI update)

    Hello

    I make application to read data from the accelerometer. I create the user interface using C++ and when the user clicks on the application startup button taking users accelerometer reading. I tried to update x, position y of the component and textarea or a text label. How can I do?

    I've attached my app.cpp file in which I want to update the text of button or label and move the image to different x, the coordinate y.

    I'm multitasking successfully implemented over the waterfall.

    Here is my code in which the two wire work in parallel.

    Step 1: Extend the class with the Thread class

    Step 2: The signal whenever you want to update your UI Thread class

    Step 3:

    QObject::connect (myThread, SIGNAL (signalGUI (float, float, float)),)
    SLOT (showUpdatedData (float, float, float)));

    myThread is an object of the class as we thread createad by exteding the Qthread.

    signalGUI is a signal that emerging us from the worker thread.

    showUpdatedData is a slot in which we write the code to update the GUI.

    In this way we can implement multitasking on the waterfall.

  • Calculate speed using acceleration < accelerometer iPhone >

    I'm working on an application where I need to find the speed and Distance without using GPS. I did some R & D on the accelerometer and the Framework.but movement could not be any idea my job. Any suggestions are welcome.

    Ask Mr. Newton. You must integrate the accelerometer of entry (in the mathematical sense of the term) to get the speed and integrate to get the distance.

  • Error-200431 occurred at .vi DAQmx Create Channel (I-acceleration-accelerometer)

    Hello

    I tried to use DAQmx Create Channel to accelerometer and yet it responds with error (see below). When I use max OR to measure the accelerometer (I-acceleration-accelerometer), there is no error, and I see that acceloremeter works.

    OR PXI-1042 and I use OR-4462 card to measure vibration vith acceloremeter.

    Error-200431 occurred at DAQmx Virtual Channel Create

    Possible reasons:

    Physical channel selected does not support the type of measure required by the virtual channel you create.

    Create a channel to a type of measure that is supported by the physical channel, or select a physical channel that supports the type of measure.

    Property: I. MeasType
    Requested value:
    You can select: sound pressure, voltage: Microphone, accelerometer, Position: Eddy Current proximity probe, Force sensor: IEPE, speed sensor: IEPE

    Task name: _unnamedTask<104>

    Hi serdaryilmaz,

    I'm not sure why the accelerometer mode does not work, but it works very well in normal mode - it maybe has to do with the accelerometer, you?  Whatever it is, if it works with the voltage mode, I am happy that we found a way to make it work.  Is this an acceptable work around you?

  • Multichannel data acquisition and 2D signals

    Hello

    [Use of labview 2011 license academic with NI9234 and cDAQ-9178].

    I'm trying to read, display and record the signals from two isotronic accelerometers and a microphone at the same time for future signal analysis (FFT, etc.).   I wish to display data of vibration and noise signals in real-time at 44100 Hz sampling frequency and display a waveform of final sampling, which takes about 40 years.  I would like to then write the data to a file.

    The associated block diagram, attached vi.  I could view real-time each accelerometer and sound using iterations of the loop and split the signal.  Unfortunately I record three channels of data in a table unique 1 d-wave form.  It seems that the data is saved as iteration1 (ch0) .iteration1 (ch1) .iteration1 (ch2) .iteration2 (ch0) .iteration2 (ch1)... and so on.

    Although I could show all three signals separately in the waveform graph, but I prefer these data to save as table 2D-waveform (each channel in a separate column).

    I believe that this issue has been raised here (http://ni.lithium.com/t5/LabVIEW/Concatenate-2D-data/td-p/873409) unfortunately no solution has been proposed.  How can I record the signals of data acquisition in 2D waveform?

    Thank you.

    I think to represent vi attached a solution architecture producer consumer for the problem mentioned above.  Just thought I'd share to those who can live a similar situation that I had been faced.

  • Accelerometer (voltage) of the signals using the module NI6361 (PXI)

    Hi guys,.

    I posted this question once again, but I still have problems with the acquisition of data. I'm acquiring a voltage signal by using an accelerometer module and single voltage NI6361. I would like to set up the accelerometer to measure a range of signal between + / 5000g.

    The accelerometer sensitivity = 0,516 mV/g where

    1 g = 0,000516 Volts or

    1938-g = 1 Volt or

    5000 g = 2.58 Volts

    -J' left the signal conditioning with +/-10 Volts (despite the fact that there is another option value +/-5 Volts as well)-please see attached pdf

    -I entered the units sensitivity to g

    -J' put labview to measure a signal between +/-10 Volts to the single a complete axis accelerometer.

    -An oscilloscope was related to the card, and she won the same vertices with the LabVIEW. -Please see attached pdf

    -By knocking gently on the accelerometer, the recorded signal was 400 mV = 0.4 V where he gives an acceleration of 775g.

    -L' accelerometer is also fixed on the ball for a shock test fell from a distance of 50 mm. The recorded acceleration was 4000g which is quite high for such a small distance. I expect an acceleration of about 200g of 2 to 4 meters according to some documents as well.

    Can you please give me any help on the way in which the parameters are specified correctly between the accelerometer and the coupler? I'd appreciate it highly if you can correct me if anything of the above statement is false. I have attached a PDF for your convenience.

    Kind regards

    Since gain is the scale factor for tension, you must divide your results by the gain.

    g = voltage / (sensitivity * win)

  • How to perform the FFT on medium thanks to the accelerometer is correct or not?

    Hello

    I do FFT on medium thanks to the accelerometer, but display is not correct? Can someone help me solve this problem. I use PKI accelerometer and connecting to NI WSN NŒUD 3202.

    What is the purpose of feeding one of the TFF to a chart with each iteration of the loop? You have found the spectral components different FFT of different sets of data. The graph of the whole picture emerging from the FFT.

    Lynn

  • Uninstalled everything IQuestion accelerometer

    I wonder what an accelerometer and if I need it? My computer has been check the disk and told me that it was not installed. If I need installed, you can tell me how to do? Thank you. It is a hp pavilion 64-bit n8Gig-er. I'm not in trouble, but just want to be sure that I have everything that I'm supposed to have working.installed.

    Hello:

    What is the complete model number of your PC and what operating system is installed?

    You posted your question in the forum of desktop PC and I don't know any desktops that have support for the accelerometer as it is not necessary for a desktop PC, unless the user tends to pick up and drop.

    The accelerometer driver HP versions are called HP Protectsmart or 3D Driveguard.

    What this app is to park the drive heads hard when it detects a fall.

    It would probably save the hard drive in the case of a slight bump or a foot or, but nothing more than the fall, it would probably help.

  • Accelerometer games specific to Windows 7

    Hello

    I am a hobby of the installation of an accelerometer and gyroscope project and a gravity sensor on my motherboard. Is where all the games that I play on the Board of Directors to ensure it's working well. I find all games are for windows 7 phone not only windows 7, makes these applications running on windows 7 OS and any edge also... Help, please...

    Thank you

    PRAM.

    You will need to do an internet search to find games that supports the accelerometer. Then do a check on the Windows 7 Compatibility Center to check if these games are compatible.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Sincerely,

    Marilyn

  • Z5 - accelerometer / auto rotation - does not work

    Hi all

    I hope you can help me with below the question.

    I'm a very happy new owner Xperia Z5 'almost'. After reading the forum for the last 4 weeks, I finally bought Xperia Z5 only 2 days ago. After moving to iPhone5, I was very pleased until what I figured out that accelerometer (and auto rotate) do any work.

    My investigation went as far as following:

    -in the Middle-> screen-> auto rotation is switched ON and despite the fact that it does not

    -in service mode * #* #7378423 #* #*-> Service tests-> accelerometer-> the "ball" in the image is ALWAYS on the left side (meaning: there is no way to move the ball to the right, regardless of how I move or rotate the phone, see pictures at the bottom of this post)

    -in Safe Mode - the question is the same

    -After repairing the phone via PC Companion - the question is the same

    -Gyro works very well

    I'm totally out of ideas now and are about to book a service at Sony (never had to do so fast that leaves a bad first impression, unfortunately).

    If any of you had a similar issue and have clues on how to fix it, please let me know.

    Thank you

    Sylwester

    Happy to help

    Thread locked.

  • Connection of the accelerometer

    Dear all,

    I am writing a progrma that make use of the accelerometer to detect the orientation of the screen.

    The structure of my program is as below:

    I have a class call 'ABC', that the main function is in this class. In the main function, I use the pushscreen command to push the screen of another class 'DEF '. And I want to exec the acceleormeter in the class "DEF". If I use the command to open a connection to the accelerometer but it always return a null value.  I can't open the accelerometer and detect the orientation of the screen.

    Here is my code:

    Class ABC:

    import net.rim.device.api.applicationcontrol.ApplicationPermissions;
    import net.rim.device.api.applicationcontrol.ApplicationPermissionsManager;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    
    public class ABC extends UiApplication      //ABC class
    {
        public static void main(String[] args)
        {
            /*Create a new thread of the application and make the currently
            running thread the application's event dispatch thread*/
            ABC app = new ABC();
            app.enterEventDispatcher();
        }
    
        //Constructor
        public ABC()
        {
            pushScreen(new DEF());
        }
    }       //End of ABC
    

    Class DEF:

    import java.io.IOException;
    import java.util.Vector;
    
    import javax.bluetooth.BluetoothStateException;
    import javax.bluetooth.DataElement;
    import javax.bluetooth.DeviceClass;
    import javax.bluetooth.DiscoveryAgent;
    import javax.bluetooth.DiscoveryListener;
    import javax.bluetooth.LocalDevice;
    import javax.bluetooth.RemoteDevice;
    import javax.bluetooth.ServiceRecord;
    import javax.bluetooth.UUID;
    
    import net.rim.device.api.bluetooth.BluetoothSerialPort;
    import net.rim.device.api.system.AccelerometerSensor;
    import net.rim.device.api.system.Application;
    import net.rim.device.api.system.Backlight;
    import net.rim.device.api.system.Bitmap;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.system.AccelerometerSensor.Channel;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.Ui;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.component.Status;
    import net.rim.device.api.ui.container.MainScreen;
    
    public final class DEF extends MainScreen       //DEF class
     implements DiscoveryListener
    {
        //Constructor
        public DEF()        //DEF
        {
    
        }       //End of initscreen
    
        public void serviceSearchCompleted(int transID, int respCode)       //servicesearchcompleted
        {
            // TODO Auto-generated method stub
            switch (respCode)       //Select which response code
            {
            case SERVICE_SEARCH_COMPLETED:      //Service search completed
                    if (AccelerometerSensor.isSupported())      //Accelerometer is support
                    {
                        Channel accchan;
    
                        //Start querying the accelerometer sensor
                        //accchan = AccelerometerSensor.openRawDataChannel(super.getApplication());
                        //accchan = AccelerometerSensor.openRawDataChannel(UiApplication.getApplication());
                        //accchan = AccelerometerSensor.openRawDataChannel(UiApplication.getUiApplication());
                        //accchan = AccelerometerSensor.openRawDataChannel(Application.getApplication());
                        //accchan = AccelerometerSensor.openRawDataChannel(this.getApplication());
                        //accchan = AccelerometerSensor.openRawDataChannel(motor_car_2.getApplication());
    
                        int ori  = accchan.getOrientation();
    
                        //Stop querying the sensor
                        accchan.close();
    
                        switch (ori)        //Select which direction
                        {
                        case AccelerometerSensor.ORIENTATION_BOTTOM_UP:     //North
                        case AccelerometerSensor.ORIENTATION_TOP_UP:        //North
                        case AccelerometerSensor.ORIENTATION_RIGHT_UP:      //West
                            //Force to west direction
                            Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_WEST);
                            break;      //End of north or west
    
                        case AccelerometerSensor.ORIENTATION_LEFT_UP:
                        default:        //East, horizontal or unknown
                            //Force to east direction
                            Ui.getUiEngineInstance().setAcceptableDirections(Display.DIRECTION_EAST);
                            break;      //End of east, horizontal or unknown
                        }       //End of select which direction
                    }
                    else        //Accelerometer is not support
                    {
                    }       //End of accelerometer is not support
                break;      //End of service search completed
            }       //End of select whioch response code
        }       //End of servicesearchcompleted
    }       //End of DEF class
    

    I think that this problem may be due to my poor concept in Java. Please provide some tips.

    Note: The class DEF is a listener of bluetooth device discovery. I run in debug mode and make sure that the code executed at these lines open the accelerometer. But all return null. So I can't treat more steps.

    My target is to detect the orientation of the screen and the limit to this complementary process direction.

    Thank you for your help in advance.

    Best regards

    Albert Siu

    Fix there issue.

    The issue is due to bad I opened the channel as a channel of raw. If it throws an exception in the getorientation function.

    Thanks for your help.

Maybe you are looking for

  • iPhone instead of resetting screenshots

    Hi all, I have an iPhone 7 that works fine apart from the fact that I try to do a soft reset (hold power + "home" button) it does nothing except when I release the buttons it takes a screenshot. Apart from that I have no problem using two buttons and

  • Satellite U200 163 with Vista: UJ-842 drive cannot burn CD - R or CD - RW properly

    Hello world I recently purchased Windows Vista Basic and since Home Edition? m running my recorder, a carpet of this new OS on my U200 163 * a UJ-842 can burn CD - R or CD - RW properly.I think my firmware needs to be updated, but Toshiba nor Mat * a

  • My phone will not send SMS.

    I awake tonight and found that my iPhone6s + no will not send SMS to anyone. iMessages work very well. I have to be able to roll over the phone. I have hard to restart the phone. iMessages are very good. Other iPhones in the house (older) send fine.

  • Pavilion C6S45EA g6: Insyde BIOS F.26

    Needs BIOS upgrade after installing Windows 8.1?

  • Change the direction of the XLR inputs?

    I opened the box of xlr today to see if it would be possible to redirect traffic so that they face vertical along the camera, similar to the portrait just amira instead of horizontally. Basically what I think, is that the real ports could be on the t