[NXT-TETRIX] calculate power from joystick

Bonjour à tous, actuellement en Terminal Sti2D SIN j'ai pour projet de réalisé un robot explorateur l'aide du kit Tetrix et de labview ( 2012 ) et du toolkit NXT.
Ma mission est de réaliser le controle à distance du robot à l'aide d'un joysitck. J'ai pu testé le controle à distance du robot avec le programme de test du Project Robot. Mais étant donné que cela est tout fait ça ne convient à mon professeur qui veux aussi une face avant avec l'états de tout les capteurs du robot.
Donc après quelque recherche dans labview j'ai trouvé la fonction "calculate power from joysitck". Mais après plusieurs tests je ne sais pas comment utilisé cette fonction...
Donc je suis ici pour requêter une aide de votre part car je suis vraiment perdu...
De plus nous l'avons équipé d'un d'un bras avec deux servos pour récupéré une balle. Donc vous savez comment paramètré les boutons depuis une Vi je prend.
Je vous remercie d'avances
Cordialement Flores Valentin

Merci pour cette aide mais j'avais déja lu cette page et malheureusement cela n'a pas marché. Je ne comprend pas pourquoi mon Joystick ne fonctionne pas ( j'ai mit mon joystick en piece jointe. Il s'agit du joystick Free ). Cette Vi fonctionne en Cible Nxt ou cible PC ? je travaille en cible PC pour avoir la face avant fonctionnelle pour l'état des capteurs. J'ai rajouté en piece jointe le programme que j'ai réalisé avec cette fonction.
Pour ce qui est de ma dernier question : mon robot est équipé de deux servos ( piece jointes ) et j'aimerai savoir si depuis la meme VI je peut les controler avec les boutons de mon joysticks
Flores Valentin
Pièces jointes :
joysticks.JPG ‏892 KB
robot.servos.JPG ‏889 KB
programme.JPG ‏23 KB

Similar Messages

  • Calculate SNR from Power spectrum (Urgent)

    Hi. I have used simple blocks like PSK modulator,white noise,phase noise,tone interference, up and down converter and demodulator in a chain to simulate a noisy channel and also perform modulation in  LabVIEW. I would like to know is it possible to calculate SNR from the power spectrum live for this channel? Is there any function avaiable in Modulation toolkit to calculate SNR from Power spectrum?
    Thanks
    Solved!
    Go to Solution.

    Hello en99,
    The Spectral Measurements Toolkit provides VIs to calculate the 'Power in Band'.  By taking the ration of this VI and the apparent noise level, I believe you should be able to calculate the SNR.
    The screenshot shows where this VI can be found:
    George T.
    Applications Engineering Specialist
    National Instruments UK and Ireland

  • How to calculate power in specific frequency band

    Hi Everyone. I have been trolling on here for months but this is my first post so I hope I am putting this in the correct place.
    What I am trying to do is simple in theory but I have tried over and over and am having no luck in getting this to work. I wish to calculate the power in specific frequency bands for heart rate variability analysis.
    Referring to the article "Using LabVIEW for Heart Rate Variability Analysis"  http://zone.ni.com/devzone/cda/epd/p/id/5832 I am aware of the steps I need to follow.
    I have plotted the RR intervals and resampled these with cubic spline interpolation to give a nice time dependent series. I then wire this to a PSD VI and this is where I am out of my depth.
    I know from the above article that I am looking for power in these frequency bands
    VLF  
    ms2
    Power from 0–0.04 Hz.
    LF  
    ms2
    Power from 0.04–0.15 Hz.
    HF
    ms2
    Power from 0.15–0.4 Hz.
    The NI Biomedical Startup kit can do these, however I am unable to look into the source code as I do not have some required plugins in my installation. I have LabVIEW 8.6 full development system.
    As this is not my area there is a steep learning curve and I have read many forum posts and pages but am still unsure of what I need to do here.
    It is my understanding that the frequency resolution is simply the sample rate/number of samples. So if I require a resolution of 0.01Hz then theoretically 100Hz sample rate and 10,000samples would give me this.Furthermore I gather that the size of the output array from the PSD VI is equal to the # of data points (This i have just noticed from trial and error so I may be wrong).
    Therefore if I am using the above values then is it correct that PSD would return an array and all I need to do is simply sum the contents of those array elements to get the power?
    For example if frequency resolution is 0.01 , then to get power from 0-0.04Hz I must simply add the first 4 elements in the PSD output array?
    I have made a test VI to show what I am talking about and attached it to this post.
    Some feedback on the required approach would be a lifesaver here. I have purchased a couple of books and read through pages of forum posts but am still having trouble with this.
    Many thanks!
    Attachments:
    labviewhelp.jpg ‏53 KB

    Sorry about that, I didn't realize you wanted to run the code too The VI was doing a bunch of other stuff so I have tried to clean that out and just leave the relevant bit. As mentioned above, the case block executes when a peak is detected in the data and appends this value to an array.
    I am using the technique of resampling the data because this is what was mentioned in this http://zone.ni.com/devzone/cda/epd/p/id/5832 and also in another reference that I have been following titled "Heart Rate Variability Standards of Measurement, Physiological Interpretation, and Clinical Use" http://circ.ahajournals.org/cgi/content/full/93/5/1043 which states
    "The spectrum of the HRV signal is generally calculated eitherfrom the RR interval tachogram (RR durations versus number ofprogressive beats; see Fig 5a,b) or by interpolating the DES,thus obtaining a continuous signal as a function of time, orby calculating the spectrum of the counts–unitary pulsesas a function of time corresponding to each recognized QRS complex.35Such a choice may have implications on the morphology, themeasurement units of the spectra, and the measurement of therelevant spectral parameters. To standardize the methods used,the use of RR interval tachogram with the parametric method,or the use of the regularly sampled interpolation of DES withthe nonparametric method may be suggested; nevertheless, regularlysampled interpolation of DES is also suitable for parametricmethods. The sampling frequency of interpolation of DES mustbe sufficiently high that the Nyquist frequency of the spectrumis not within the frequency range of interest."
    Attachments:
    Exp-PulseOximeter.vi ‏205 KB

  • I am trying to upload photos from my digital camera. Every time I try to plug it into my USB, the following error message comes up: "Because a usb device was drawing too much power from your computer, one or more of your USB devices have been disabled."

    I am trying to upload photos from my digital camera. Every time I try to plug it into my USB, the following error message comes up: "Because a usb device was drawing too much power from your computer, one or more of your USB devices have been disabled."
    I don't have anything else plugged into my MBP, so I am confused as to what's going on.  This problem has never happened before.  MBP is less than a year old - about 9 months old.  HELP

    Get a powered USB hub.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • Mac won't take power from the mains

    Hi,
    I just bought my MacBook two days back. I'm already finding a few things crashing, but my main headache is that its currently refusing to take power from the mains. I take out the power chord and put it back in... nothing. I've tried restarting - no go. I've changed socket, no difference (the sockets are working fine). I noticed that the MagSafe Power Adaptor was pretty hot when I first spotted this problem. Any ideas?
    Cheers,
    Robin

    Hi robin
    All I can offer is to keep doing what you're doing that's kept it going up till now - whatever that is? As soon as you've got time take it back.
    I find it slightly strange that you're prepared to risk 'some urgent work' using something that's clearly having a problem? However if it's all you have then I suppose you have no choice? If there's enough 'juice' to let you complete whatever it is you need to do and if you've a memory stick or can burn a CD/DVD then I would look at those options once you've done the work.
    You never know?
    Tony

  • HELP! I need to be able to remove power from a PXI chassis and replace a card without rebooting the whole system

    I do not have particulars on the controller, but I am sure it's an NI chassis
    and NI regular controller that has a serial cable leading back to the PC.
    I am making this PXI rack into a debug rack for instrument cards,
    so I need to be able to remove power from just the PXI chassis
    and then replace the card with another one
    or the same one and then turn the power back on and restart a
    diagnostic test on the card WITHOUT
    having to reboot the PC.
    Is there a PCIe bridge setup that would allow me to do this?
    Is there software that I need that can accomplish this?

    Yes
    The Chassi is a NI PXI 1045
    and the controller is a NI-PXI-8331
    Let me re-enumerate my requirements:
    Background:
    I have a number of NI cards as well as other manufactured cards in the system.
    One of these cards in the NI system is considered to be a UUT.
    That is, I am using the NI card cage system and other cards in the system to test a CARD
    during a manufacturing test of said UUT CARD.
    The UUT uses a PLX 9030 for it's PCI interfacing.
    This UUT is not designed for hot swap, and I do not bieleve it is plug and play.
    Requirement:
    1. I need to be able to shut off the chassis and remove the UUT when the test finishes, replace the tested UUT
    with a unknown UUT, re-apply power and then test the new UUT WITHOUT having to reboot the PC.
    I have tried several things, such as disabling the PCIe busses in the windows control panel, and then removing power
    replacing the UUT with the next one, re-applying chassis power and then re-enabling the bus and SOMETIMES it works.
    I need a very robust way to do this.
    I also bought a CHROMA PXI-52906-E extender card with bus switches on it, so that I can remove power to the UUT
    without shutting off the chassis. The card is supposedley designed so that when power is re-applied to the UUT, the necessary
    signals to boot the PXI PCI interface is conducted, but I think something else has to be written to the card's PCI registers.
    I am by no means an expert in PCI/PXI, 
    but I seem to have exhausted all of my reserach online in how to meet my requirements.
    Perhaps there is a way for the NI8331 controller to capture PCI configuration data to the card's on system boot,
    and then "replay it" to my UUT after I re-apply power to the UUT?
    Or perhaps PLX makes such a tool?
    Any ideas?

  • Can't print to HP Photosmart C5180. getting error mssg that says, "Because a USB device was drawing too much power from your computer, one or more of our USB devices have been disabled."  Never seen this before.  How do i fix this?

    can't print to HP Photosmart C5180. getting error mssg that says, "Because a USB device was drawing too much power from your computer, one or more of our USB devices have been disabled."  Never seen this before.  How do i fix this?

    Get a powered USB hub.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents

  • "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled." HELP!

    When I plug in my son's iPad I get this message "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled." I only have one charger for this iPad all my other chargers are for iPhone 4s. I have pluggerd it in different outlets around the house and the iPad will not charge. When I plugged it on my lap top to back it up it gave me the warning message. HELP!!

    I have the same problem on my Air. The message first came up while my iPhone was connected to it for some time. Since then, it pops up ALL THE TIME, whithout anything being connected to the USB port, at what appear to be random intervals that vary between about one hour and a few seconds. I have tried resetting the SMC and  the PRAM, but no results. A quick search revealed that thousands of users are facing this problem, but Apple has yet to provide a solution. Please help!

  • "Because a USB device was drawing too much power from your computer, one  or more of your USB devices have been disabled.

    Here is the total error message:
    "Because a USB devce was drawing too much power from your computer, one
    or more of your USB devices have been disabled.
    To prevent damaging your computer, the USB device drawing too much
    power has been disabled. Other devices may have also been disabled.
    When you disconnect the device drawing too much power, your other USB
    devices will be enabled again."
    Now in contrast to every other thread on this i get this error message eveytime i connect my soundcard (interface). Not when i start up the mac or anything, just when i connect the sound card. (the soundcard does not have its own power source but note that this has never happened before and i have had this soundcard for about a year!)
    It deactivates so i cannot use it.
    I have tried:
    Connecting the soundcard to my mothers mac -> it worked!
    Connecting an external harddrive to my mac -> it worked!
    so basically, i can't be the soundcard or the cable and it cannot be the mac USB port?
    I don't know what to do! i really need this to work! anyone got an idea??

    Hi, ryankeenanrk. 
    Thank you for visiting Apple Support Communities. 
    I would recommend trying the steps in both articles below and test the results. 
    OS X Mountain Lion: Reset your computer’s PRAM
    http://support.apple.com/kb/ph11243
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    Cheers,
    Jason H. 

  • "Because a USB device was drawing too much power from your computer..." error withOUT any USB device

    Hi,
    I am getting this error since recently when I am using my MBP:
    "Because a USB device was drawing too much power from your computer..."
    The 'funny' thing: there is no USB device attached to the computer (only power and monitor cables).
    Why is this happening and what could I do about it?
    Appreciate your ideas?

    It's probably an internal hardware fault, but you can try this:
    Intel-based Macs: Resetting the System Management Controller (SMC)

  • I am having a problem when I plug my iPod into my macbook. When I plug the cable into my mac I get the following message - "Because a USB device was drawing too much power from your computer, your USB device has been disabled." PLEASE HELP!

    I am having a problem when I plug my iPod into my macbook. When I plug the cable into my mac I get the following message - "Because a USB device was drawing too much power from your computer, your USB device has been disabled." CAN SOMEONE PLEASE HELP!

    The rest of the message in the pop up window says "To prevent damaging your computer, the USB device drawing too much power has been disabled. Other devices may have also been disabled. When you disconnect the device drawing too much power, your other USB devices will be enabled again."

  • New iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    I have a new iMac 27"  and just plugged in a Apple USB superdrive and get message, "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."  I am trying to load Office mac2011  what to do?

    If you just bought the iMac and the Sjuperdrive take the superdrive back and get a refund. The by any other brand external DVD drive that connects by USB and try that. Most come with a Y USB cable to allow you to connect to 2 USB ports to supply enogh power to the drive IF Needed.
    Or take both back and get a refund on both, you have 14 days to return it no questions asked, and buy another iMac and some other brand external DVD drive.

  • I keep getting this message : Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled.

    I keep getting this mesage : Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled.
    I need to charge my phone but it's not letting me!! Please help!

    Solution may be found if you search in the "More Like This" section over in the right column and in the article - http://support.apple.com/kb/HT1151. 

  • HT1212 i get this message? "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled."

    Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled?
    What do I do?

    Not Charge
    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use. One symptom of a bad Lightning cable is the message you are getting.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar      

  • Because a USB device was drawing too much power from your computer - bla, b

    In the last week or so, my iMac (Intel CoreDuo) started displaying an error message every 30 seconds saying "Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled", followed by some other useless "explanations" (which BTW can't even be copy/pasted). This has happened before (for about a year now) at every startup, but that was more acceptable; now that the message comes every 30 seconds it renders this machine unusable.
    I tried it with or without any USB accessories attached, with or without powered hubs attached, I reset the PRAM and SMC and reinstalled the OS twice. The only option I have left is to trow this machine out and buy a new one (believe me, it's not going to be a Mac).
    This shows not only the lack of quality of the hardware (crappy logic board and USB ports) but also a complete disregard for the annoyance these constant popping messages create to the end user when designing the OS. Just while writing this message I had to press the OK button about 10 times. It's AWFUL!!!

    Hi cimula. before you turn to the extremes have you tried reinstalling snow leopard. maybe you had a problem occur when it was originally installed and is missing a driver or something. also take it to an apple store if possible. take everything needed to run the imac and show one of the geniuses the problem and 90% of the time if you are nice and calm they will gladly help and diagnose the problem even if it is out of warranty. no promises it will be free it could be a hardware malfuntion. just dont force your self back to pc once all of the problems are gone you will love it again. i switched from pc which i had been using my whole life after a friend showed me his macbook and have never looked back. of course once and a while there will an error, problem or whatever but is it worth switching to a pc which has to have a security program running 24/7 to stay alive and sucking up all of the cpu and slowing you down? hope i am helping Dean

Maybe you are looking for

  • Three Finger Swipe to change Spaces

    Hi, I was wondering if there's any way to set up my macbook air to change spaces using a three finger swipe in the finder. I know I can use a three finger swipe to go forward and backward in safari as well as do some other things and I want to be abl

  • Analog Clock Chime Challenge - not on the hour

    I have a custom analog clock job. The following page will help you understand it: eleven-hour-clock(dot)com Here is the author's mathematical description: >> 60 seconds per minute X 60 minutes per hour = 3600 seconds per hour 3600 seconds per hour X

  • Y Axis chart format  (currency)

    How do I format the numbers on the Y Axis of a chart? I am trying to format numbers on the Y axis as US dollars. The numbers have three or more digits to the left of the decimal. I used the inspector and selected $ as the numbers format and steps 1 u

  • How to find bar codes and mails to send clients in smartforms

    HI friends,     How to find bar codes in smartforms and also how to send mail to the client. I have developed one object in smartforms, but i don't know how to send maill to the client. Pls help me........................ Thanks in Advance. Saradhi.

  • Bugs introduced in EA releases

    Hello guys, I just want to mention few bugs which were introduced in your last three EA releases and which are really annoying... 1) When you have multiple table/view tabs open and browsing amongst those tabs, it happens the grid is reloaded. It look