Gyroscope example myRIO

Hello,
I have tried to use the example of the Gyroscope which is included in the myRIO project-guide:
http://www.ni.com/academic/myrio/project-guide.pdf
Using the provided example vi and without modifying it i get proper response from X and Y axis but the Z axis does not have any effect when i rotate the gyroscope around the Z axis. Both myRIO and the pmod Gyro are brand new. Any clue what could be the problem?
Thank you,
Christos

Hello Christos
Have you checked the initialization registers following this:
L3G4200DMEMS motion sensor: three-axis digital output gyroscope
Regards
Frank R.

Similar Messages

  • Native AIR extensions in Flash Pro

    I understand that AIR 3.X for Android supports "AIR Native Extensions" written in Java. 
    Has anyone successfully used one from Flash Pro.  I'd really love to see a working example from one of the Adobe samples such as their Gyroscope example at:
    https://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html
    Thanks!

    @relaxatraja
    Thanks for the pointer to this excellent post.  Worked like a charm.  Note that even after updating the playerglobal.swc, you are not able to test the resulting swf in the IDE via 'Test Movie' [Ctrl-Enter] because the IDE does not use the installed stand alone flashPlayer, but instead a built-in one (for CS5 is version 10.1.52.14).  It is not updatable, as far as I can tell.  See http://swfhead.com/blog/?p=575  Testing via debug or in the actual standalone player or browser plugin works correctly.

  • Has anyone anywhere managed to get "AIR Native Extensions" to work with Flash CS 5.5?

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    If you are looking for input from others, you are more likely to find people with either similar problems or complaints in the Flash General Forum (http://forums.adobe.com/community/flash/flash_general?view=discussions) rather than here in the Actionscript 3 forum.  If you scan thru it for the past few weeks/months you might even find someone with the same problem.

  • Utilizing AIR Native Extensions in Flash Pro CS5.5

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/g yroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.j ava:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    Joe_suchta, you can follow these steps http://www.youtube.com/watch?v=pwVkK27Nors
    Lucky

  • Can i get a data from gyroscope clip without myRIO

    Hi everyone,
    我是labview的新手,因要完成我的fibnal year project.現在才學labview,因手上的設備有限,請問各位有方法不購買myRIO,又可拿data嗎?
    已經有的設備如下:
    DQA box (USB-6431)
    labview 2012
    謝謝各位

    I completely understand that it's my responsibility to back up my data but I have it set to every 2nd month, not on a weekly or daily basis to back up the data.
    Apple might not be in data recovery business but could they not acquire a third party to do this?
    This is what happened:
    It was on sleep overnight and when I tried waking it, it was lagging badly. So I shut it down and restarted it. I phoned into techincal support to find out whats wrong, but they were giving me advice to reset the params etc. But i think it made it worse because it didnt want to get passed the white start up screen.
    So I phoned back to ask if it's a usual issue with my version of iMac and the man replied that it isn't common and that I should run the disk utility to check the hard drives health.
    I installed Mountain Lion on a USB and started the disk utility. Then it highlighted in red that it's a hardware fault and cannot be repaired by the disk utility. Therefore the hard drive has a serious fault with it.
    That's when I Google'd for a replacement drive and came across the program. The techincal guy didn't even tell me about it or anything.
    If I knew about this sooner, I would have taken it in for a replacement.

  • How to create a c++ shared library (.so) for linux real time (for myRio) with Eclipse to use in LabView?

    I tried already these Tutorials and Advices but I didn't find a solution:
    - http://www.ni.com/tutorial/14625/en/
    - http://www.ni.com/tutorial/14690/en/
    - http://forums.ni.com/t5/LabVIEW/Shared-Library-on-myrio-Linux-Real-time-system/m-p/2842540/
    - http://forums.ni.com/t5/LabVIEW/How-to-create-shared-library-for-linux-real-time-target-in/m-p/28218...
    - and some more
    I want use c++ codes on linux real time. For testing reasons I want to have a function that adds 2 values and gives the result.
    I've done these steps:
    1. writing a c++ file in Eclipse (see screensot 2)
    2. building a shared library (.so) from my c++ project in Eclipse (with Cross GCC)
    3. putting this file on myRio (path: /usr/local/lib/)
    4. creating a VI that calls this library from Labview with a "Call Library Function Node" (see screenshot3)
    5. Setting the properties for the "Call Library Function Node" (see screenshots 4-7)
    After I run this VI i get this error message: LabVIEW:  (Hex 0x627) The function name for the ... node cannot be found in the library. To correct this error, right-click the Call Library Function Node and select Configure from the shortcut menu. Then choose the correct function name. (see screenshot1)
    I've tried a lot things to solve this problem but I couldn't find a solution. Would be very happy if anyone can help me. I guess that I have to edit my c++ code to export my function (symbol). But I have no idea how to make it. I also tried it with a dll file in the same folder but it didn't help.
    Perhaps someone can send an example which works on myRIO.
    Thanks!
    screenshot1
    screenshot2
    screenshot3
    screenshot4
    screenshot5
    screenshot6
    screenshot7

     can see it in the screenshot8 there is a function called "_Z8AddierenddPd" instead of "Addieren". I copied this name to Labview (see screenshot9) and it worked.
    I'm sure that there is a way to compile the shared folder with gcc without decorations (mangling). But I don't know how. If someone has a recommendation I would be very glad!
    Prepend each function declaration that you want to be available without name decoration with
    extern "C" <your function declaration>
    Or if you have multiple functions you want to export you can in the header file where you declare your functions simply use:
    #ifdef __cplusplus
    extern "C" {
    #endif
    <all your function declarations>
    #ifdef __cplusplus
    #endif
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Can i get a gyroscope on an ipad 1

    can i get a gyroscope on an ipad 1

    A gyroscope was introduced with the iPad 2 onwards - it's used to detect the speed and angle of turning the iPad, so is useful in, for example, driving games where turning the iPad turns the vehicle

  • Hi, I am using GPS receiver, Gyroscope, an

    d odometer. My question How can connect these 3 sensors to COM1? Also, I need to take the GPS time every 1 sec and put this time to the odometer and Gyroscope output? By the way, records from Odometer and Gyroscope every 0.1 sec. Thanks in advance, MahmoudI will use GPS, Gyroscope, and Odometer to defind the vehicle location with other sensors. I faced a problem when I tried to connect all sensors to my Labtop. Also, GPS gives data with time tagging but other sensors not. How Can I make time tagging for other data to be synchronized with GPS time every 1 sec. Thanks.

    d odometer. My question How can connect these 3 sensors to COM1? Also, I need to take the GPS time every 1 sec and put this time to the odometer and Gyroscope output? By the way, records from Odometer and Gyroscope every 0.1 sec. Thanks in advance, MahmoudHi Mahmoud,
    Another option you may wish to consider is to increase the number of serial ports available on your laptop. For example, you can obtain a PCMCIA card that has additional RS-232 ports. National Instruments has a 4-port PCMCIA RS-232 card available, which can be found on ni.com by going to Products & Services > Instrument Control and Connectivity > Serial Interfaces > PCMCIA > PCMCIA-232/....
    With this expansion, you will be able to connect each RS-232 device to its own port, and then interface that within LabVIEW. Other options could be to convert the serial interface into another protocol, such as USB (as previously suggested) or Ethernet.
    Hope this helps!
    Wilbur Shen
    Web S
    upport and Operations
    National Instruments

  • How to create stepper motor signal (myRIO)?

    Hi there,
    I'm fairly new to LabVIEW, and I'm trying to run a small stepper motor with ULN2003 based driver board (one of these) with a myRIO. I have gone through a few examples in the project guide to get a feel for things, but I can't figure out how to run this stepper.
    What I'm wondering is how do I create the signals to run to the IN1,2,3,4 on the driver board? What functions would I use?
    I don't have a deep understanding of LabVIEW yet, so any specific explanations are welcome. Or, if anyone has an example VI for doing this or something similar, I can just look through that.

    Hey GregRomero,
    I'd start simple.  You can control the stepper motor controller inputs using the Digital Output Express VI, but before you to that, play around with the LED Express VI so you can see how digital outputs work.  Create a VI that looks like this:
    Run the VI and click the buttons to turn on and off the LEDS.  Then switch the LED Express VI to the Digital Out express VI and choose the DO channels you've connected to the stepper drive.  Now you can use the buttons to set the digital outputs and use the logic table on the page you linked to set the motor step.
    Once you get that working you can replace the manual button presses with generated values to drive the motor.
    Let us know if you have questions about any of this.
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • Connecting LabVIEW to hardware sensors through myRIO

    Hi,
    I am  an electrical engineering student in the senior year and my senior project is about monitoring and controlling the critical equipment in the industrials. the project contains sensors ( tempreture, missing phasing, vibration ) to control motors and transformers  and i will biuld those sensors with my team. i want to design a control panel for those sensor in the LabVIEW and i should use myRIO as  microcontroller to communicate between the sensors and the LabVIEW for recieving the signals from the sensors and send it to the LabVIEW to be shown in the control panel and then to have an action to cut the power for example.
    my question is,
    how to use myRIO and connect it to the LabVIEW and the sensors? what should i do? what should i have? for time being i don't have any information about this.. please provide me with all information that i may need.
    can you help me brothers & sistors .. 
    Engineer34

    Hi Engineer,
    the project contains sensors ( tempreture, missing phasing, vibration ) to control motors and transformers
    Sounds like some power is needed to be controlled here. Don't forget safety measures…
    How to connect the hardware sensors to myRIO board?
    That depends on those sensors. You need to provide more information…
    that is too much
    It's your final year before becoming an engineer and you claim "too much information I need to read/watch"? What kind of engineer to you plan to be?
    all totrials there talking about the realtion between myRIO and LabVIEW
    Because that's the main part of the work: reading values from your hardware, analyzing it and calculation output signals to fulfill your control task…
    And also because LabVIEW is the IDE to create any programs running on those myRIOs…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • 2-way audio communication using myRIO

    Hello,
    I'd like to have a 2-way audio communication using myRIO.
    1. I'd like to speak into a microphone on my laptop and hear my voice on a speaker connected to myRIO.
    2. I'd like to speak into a microphone connected to myRIO and hear my voice on my laptop.
    3. Additonally, I need to perform the above using WiFI.
    I've tried the  Analog Input and Ouput functionalities of myRIO in LabVIEW (attached project). I've been able to connect a microhpne to myRIO and a headphone to myRIO and speak into the microphone and hear from the headphone connected to myRIO. But I need to be able to speak into microhpne connected to myRIO and hear my voice on speakers connected to laptop.
    Thank you for your helps and support.
    Attachments:
    Microphone Demo.zip ‏71 KB

    Coren wrote:
    Since I'm new and not very familiar with myRIO, I've 3 questions:
    1. How can I build a Real Time application at myRIO?
    2. How to send the waveform of the audio input by network stream to second application, which runs on Windows?
    3. What is the difference between an application running on Windows and Real Time?
    Thank you.
    ad.1.
    myRIO is RealTime target: that means code will be executed by real time operating system on the target.
    In project you will use two targets: My Computer : this is Windows target and myRIO that is real time target.
    ad.2.
    Check Menu>> Help>> Examples and at Search write 'Network Stream'
    my second thought is it could be easier to use Shared Variables.
    ad.3.
    At this point important thing is target and its operating system that execute the code. For myRIO ths is Real Time Linux,  for you it will be transparent, cos you will work using LabVIEW Project.
    Did you start with NI myRIO Project Essentials Guide ?
    Last and not least: check this path:
    Rn LabVIEW: select Create Project: select Sample Projects: select Voice Recorder myRIO
    Regards
    Mikrobi (Zbigniew St. Sobków)____________________________________________________________
    "You can lead a horse to water, but if you can get him to float on his back you've got something."

  • Generate sine waveform (myRio)

    What is the best way to generate a 1khz sine signal on one of the analog outputs of the myRio device? I tried a timed loop and the Point by Point Sine Generation VI similar to the Electret Microphone demo or this post: http://forums.ni.com/t5/Academic-Hardware-Products-ELVIS/frequency-matching-problem-with-myrio/m-p/2... by Sammy_K. But the resolution is a problem. The frequency is not very accurate and with a dt of 100 uS and a 1Mhz Clock I only get 10 samples per period. A dt of 10 is too much load for the processor (the deivce does not respond anymore and needs to be restarted). Is there a better way of generating a 1khz sine output or do I need to do this within the FPGA somehow?
    Solved!
    Go to Solution.

    Hey JulianR,
    The thing to keep in mind is that each time you call the Analog Write express VI you write one data point to the analog output on the myRIO.  The rate at which data is output is determined by the rate at which you loop runs.  You can use a timed loop in LabVIEW to write analog output values at a relativly fixed loop rate and vary the value to generate a sine wave output.
    I put together an example of doing just this (but using the value to set a PWM duty cycle rather than analog output) in this thread.  You'd basically need to replace the PWM express VI with the Analog Output Express VI.
    Finally as Marc67 mentioned you could implement the sine wave output in LabVIEW FPGA which would give you more control and let you use faster output frequencies.  I'd start with the timed loop method and move to FPGA if you need faster output rates.
    Let us know if you have more questions for us.
    -Sam K
    LabVIEW Hacker
    Join / Follow the LabVIEW Hacker Group on google+

  • Boolean--void data typle error in migrating lidar guide robot from sb-rio to myrio

    hi all
    new to labview, doing my NI arc 2014 project, trying to migrate "lidar guide robot" example to myrio.
    this is the best example i could find.
    after compilation the fpga main file sucessfuly, 
    an error says can't pass boolean to void.
    please help how to fix it

    thanks your reply, 
    does it mean something missing in FPGA target file or host file?
    not sure if you know any lidar example on myrio?
    my lidar can be regonised as usb raw, but  in this vi only the ASRL INSTR resouce is accepted.
    Attachments:
    castusbrawtoinstr.png ‏59 KB

  • Gyroscope ANE Android

    Hi all, i've integrated the Sample gyroscope ANE from here http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html inside my app. Basically, this will be a retro race game ( similar to OutRun ) , with the possibilyt to drive left -> right via the gyroscope. It will run ONLY on galaxy TAb 10.1 GT-P7500.
    I have some problem :
    VALUES :
    this is my min Value : -5.326322e-7 for each Axis ( the MAX Value SEEMS to be 5.326322e-7) .
    How to convert  it to a real number ( i need to limit it from 0 to 1 left to right) ? Number.toFixed()  ?
    Is there a way to normalize them in the Java part of the ANE ?
    AXIS :
    when i roatate the device from landscape to portrait, on which axis am i rotating ? When i try to trace it, ALL the axis change value ( and sometime they just get the MIN value of -5.326322e-7, even if the are all rotated ) .
    Thanks in advance!

    isit usefull to do it in the ANE Java ?
    No. Just use Actionscript.
    When im faking a steer with the device (screen i front of me, landscape) on which axis im rotating ?
    use the example on the site you linked to:
    var gyro:Gyroscope; if(Gyroscope.isSupported) { gyro = new Gyroscope(); gyro.setRequestedUpdateInterval(1000); gyro.addEventListener(GyroscopeEvent.UPDATE,onChange); }  
    function onChange(e:GyroscopeEvent):void { trace("From gyro: " + e.x + " " + e.y + " " + " " + e.z); }
    Since I don`t know details how you control your steering its pointless to guess, you must at least show how you plan to steer, control your car.
    And, regardig the snippet, why  2500000 and 2663161 ? ar them -5.326322e-7 converted ?
    The basic idea is to convert a solution room from (roughly -0,53 to roughly 0,53) to 0->1 (-5.326322e-7 is no space magic but simply an exponential way to write down -0.532....)
    This is a linear equation with 2 unknowns which gives when solved the funtion:
    f(x) = 2500000/2663161·x + 1/2
    http://en.wikipedia.org/wiki/Linear_function
    when i roatate the device from landscape to portrait, on which axis am i rotating ? When i try to trace it, ALL the axis change value ( and sometime they just get the MIN value of -5.326322e-7, even if the are all rotated ) .
    use a variable that holds the orintation, and switch the formulas (of which I gave you one) depending on that

  • Set system time to myrio programmatically synchrinized with GPS

    Hello,
    I have succesfully connected the PMOD GPS to my RIO and i extract the time and date string from the NMEA sentence in the following format:
    Time: HH:MMS
    Date: DD/MM/YY
    I would like to synchronize myrio system time to the GPS time. I have tried to use the nisyscfglvlib: Set Time.vi. For test purposes i try to set the time using a time stamp constant like the attached picture. However, when i run this code i get the following error. Where i can find this library and how do i add it to myrio? I
    LabVIEW:  Failed to load shared library nisyscfg.*:nisyscfg_lv_sysapiPropertySetString:C    . Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
    LabVIEW:  Failed to load shared library nisyscfg.*:nisyscfg_lv_rmcfgPropertyGetItem:C    . Ensure that the library is present on the RT target. Use either MAX to install NI software or FTP to transfer custom libraries to the RT target.
    Is there another way to set the time of myrio programmatically?
    Thank you,
    Christos
    Attachments:
    set system time.JPG ‏14 KB

    Hi ckyamaha, 
    Below is an example on how to set a real time system's time using the System Configuration API.  
    https://decibel.ni.com/content/docs/DOC-20082
    It sounds like you may need to include the library on your myRIO when you configure it in NI-MAX.  If you haven't already installed the System Configuration API, you can do so from this link: https://decibel.ni.com/content/docs/DOC-13216
    You can add the library to your myRIO in the Add/Remove Software menu in NI-MAX.  Instructions for installing software using NI-MAX can be found here: http://zone.ni.com/reference/en-XX/help/373925A-01/myriohelp/myrio_advanced_config/
    Regards,
    Kelly B.
    Applications Engineering
    National Instruments

Maybe you are looking for

  • Disk Utility can't repair and refuse Partition to work

    Hi, Is there any ways to solve this message appearing in the Disk Utility? When i click repair disk on Disk Utility, message shown; Repairing permissions for “Macintosh HD” Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/

  • Connecting external VGA displays

    I am attempting to connect two external displays to my 15" early 2011 macbook pro. One is a Dell monitor and the other is a Hanns-G. Both are pretty old and only have VGA ports, but I know for a fact both the monitors work because I was using them on

  • Video formats allowed for f4fpackager

    I'm facing issues with using f4fpackager for different video formats. With mp4 file - which plays in a flash player properly - I get only one segment, and a f4m file without bootstrap info.  This f4m file dosen't plays and I get stream not found. ./f

  • How to do arithmetic with two attribute values in a jsp in JDev 10.1.2?

    Hi! I need to compute Density value using two attributes being shown in my jsp (i.e. bindings.Spacing and bindings.Area), Density = bindings.Area/bindings.Spacing. How can I do this in JDev 10.1.2 in my jsp?

  • Aperture formatting issue

    Hi, I'm getting errors on photos that say "Unsupported Image Format" on images that are jpgs and NEF format. This doesn't make sense because all of my images are in either of those two formats and they used to preview just fine. This is a new error s