XY-Graph TORQUE AND POWER IN FUCNTION OF ROTATE SPEED

Dear,
I have  made a program in Labview for my endwork so i have now one problem ; i read data (torque,temperature,power,speed of an engine with an USB-6009 daq-kaart.) now i want to make a graph of the torque (koppel in dutch) in funtion of rotate speed and also power(vermogen in dutch).  i have used xy graph but  i get nothing  . What do i wrong can some one help me? I send the program also as attachement ; on the y i will torque(=koppel) and x i will rotate speed (toerental)  
thank you
Attachments:
Eindwerk_data.vi ‏346 KB

Hey Drayton,
Please have a look at the attached VI.  
Left
of the While Loop I created a 2 dimensional array.  Column zero is
representing the RPM, column 1 the Torque (koppel) and column 2 is the
Power (vermogen).
Then I am simulating the measured data of RMP,
Torque and Power.  As I would like to limit the number of elements in
the array, I used the "Remainder and Quotient" function to round to a
nearest lower multiple of 20.  This means you will have steps of 20 RPM
in your graph.  The lenght of the array is in the case: 4000 RMP max /
20 = 200 elements.  Of course you can change this but then also your
array size will become larger (more processor time needed to analyze).
Next
step is to get the index number in the existing array which equals the
current measured RPM.    This index is needed to replace the
corresponding torque and power values in the array.
If the newest
torque or power value is greater than the already available value for
the corresponding RPM,  then this value will overwrite the existing
value. If not, then the existing torque and power value will be kept.  
Finally I will extract the complete columns of the array for RPM, torque and power to apply them to the XY graph.
You can almost copy/paste this into your VI.
As
your data is coming from Express VI, the wires contain waveform data
which also inclused timestamp information.  As you cannot use waveform
data with arrays and actually don't need it, you have to use the
function "From DDT". This is also an express VI to convert the Dynamic
Data Type from the Express VI into a scalar datatype.  You can show to
analyze only one point at a time of by using an array.
I have also seen that you have place additional numeric indicators on your front panel beside the meters.
This is great. You only used an additional object to do so causing also an additional terminal appearing on your block diagram.
Actually,
the numeric front panel objects have already an numeric indicator
related to it.  This way no additional block diagram terminal will show
up.
You only need to enable it.
Right click on the object to open
the shortcut menu ---> Visible Items --> Numeric Display.  There
is your numeric indicator directly related to the object.
If you do this for all you front panel objects, your block diagram will look much nicer and easier to read.
Best regards,
Joeri
National Instruments
Applications Engineering
http://www.ni.com/ask
Make our forums great:
If you like the answer, don't forget to "Kudos!".
"Accept the Solution" if your question is answered!
Attachments:
Arrays.vi ‏18 KB

Similar Messages

  • [865PE/G Neo2 Series] Memory timings and power settings anyone?

    I'm not very good with computers, so I've just played around with the timings on my memory, but have not found one stable setting as of yet.
    The memory is brand new and I've tested it for errors on my brothers computer and there's nothing wrong there.
    Intensive harddrive usage, dvd playing and intense downloading while listening to music are sure ways to crash my system. "..........Not less or equal" is the most common error message, but there are
    many many more.
    Oh, maybe I should point out that overheating's not an issue, cause I've good fans and run my computer without sidepanels.
    I also like to say that I have the first generation of p4 with ht and 533fsb.
    I'm sure there's something I forgot to mention but here below I'll paste the system summary that Sandra gave me.
    Would be forever grateful if someone could help me out with the memory timings and power settings for my board. Setting it to "auto by spd" gives me a very unstable system, so no avail there.
    I'm running the mem at 2.70 and sometimes at 2.65, since these two settings seem to be the ones with least crashes.
    The Memory installed are 4*512mb ,kingston 512 kvr333x64c25 pc2700
    The PSU is a Tagan "TG480-u01" 480w
    Many many thanks in advance guys. 
    SiSoftware Sandra
    Processor
    Model : Intel(R) Pentium(R) 4 CPU 3.06GHz
    Speed : 3.10GHz
    Performance Rating : PR4118 (estimated)
    Cores per Processor : 1 Unit(s)
    Threads per Core : 2 Unit(s)
    Internal Data Cache : 8kB Synchronous, Write-Thru, 4-way set, 64 byte line size
    L2 On-board Cache : 512kB ECC Synchronous, ATC, 8-way set, 64 byte line size, 2 lines per sector
    Mainboard
    Bus(es) : ISA AGP PCI IMB USB FireWire/1394 i2c/SMBus
    MP Support : 1 Processor(s)
    MP APIC : Yes
    System BIOS : American Megatrends Inc. V2.5
    System : MICRO-STAR INC. MS-6728
    Mainboard : MICRO-STAR INC. MS-6728
    Total Memory : 2GB DDR-SDRAM
    Chipset 1
    Model : Micro-Star International Co Ltd (MSI) 82865G/PE/P, 82848P DRAM Controller / Host-Hub Interface
    Front Side Bus Speed : 4x 135MHz (540MHz data rate)
    Total Memory : 2GB DDR-SDRAM
    Memory Bus Speed : 2x 168MHz (336MHz data rate)
    Video System
    Monitor/Panel : Iiyama A201HT VisionMaster Pro 510
    Adapter : RADEON X800 Series   
    Adapter : RADEON X800 Series Secondary
    Imaging Device : CanoScan FB630U/FB636U #2
    Imaging Device : Video Blaster WebCam 3/WebCam Plus (WDM) #2
    Physical Storage Devices
    Removable Drive : Diskettenhet
    Hard Disk : ST3160023AS (149GB)
    Hard Disk : WDC WD1000BB-00CAA0 (93GB)
    Hard Disk : WDC WD1200JB-00CRA1 (112GB)
    Hard Disk : FUJITSU MPG3409AT  E SCSI Disk Device (38GB)
    CD-ROM/DVD : PHILIPS DVDR1640P (CD 63X Rd, 63X Wr) (DVD 8X Rd, 8X Wr)
    CD-ROM/DVD : PLEXTOR CD-R   PX-W4824A (CD 40X Rd, 48X Wr)
    CD-ROM/DVD : AXV CD/DVD-ROM SCSI CdRom Device (CD 32X Rd) (DVD 4X Rd)
    CD-ROM/DVD : AXV CD/DVD-ROM SCSI CdRom Device (CD 32X Rd) (DVD 4X Rd)
    CD-ROM/DVD : AXV CD/DVD-ROM SCSI CdRom Device (CD 32X Rd) (DVD 4X Rd)
    CD-ROM/DVD : AXV CD/DVD-ROM SCSI CdRom Device (CD 32X Rd) (DVD 4X Rd)
    CD-ROM/DVD : AXV CD/DVD-ROM SCSI CdRom Device (CD 32X Rd) (DVD 4X Rd)
    Logical Storage Devices
    1.44MB 3.5" (A:) : N/A
    Hard Disk (C:) : 149GB (101GB, 67% Free Space) (NTFS)
    Xp (D:) : 112GB (2.1GB, 2% Free Space) (NTFS)
    Big (E:) : 93GB (9GB, 10% Free Space) (NTFS)
    Jimjimjim (F:) : 38GB (2.1GB, 5% Free Space) (NTFS)
    Bologna_2 (G:) : 3.9GB (UDF)
    CD-ROM/DVD (H:) : N/A
    Bfv_3 (I:) : 486MB (CDFS)
    Doom 3 roe (J:) : 650MB (CDFS)
    Sims2ep1_1 (K:) : 650MB (CDFS)
    Bf2 dvd (L:) : 1.9GB (UDF)
    CD-ROM/DVD (M:) : N/A
    Peripherals
    Serial/Parallel Port(s) : 1 COM / 0 LPT
    USB Controller/Hub : Intel(R) 82801EB USB Universal Host Controller - 24D2
    USB Controller/Hub : Intel(R) 82801EB USB Universal Host Controller - 24D4
    USB Controller/Hub : Intel(R) 82801EB USB Universal Host Controller - 24D7
    USB Controller/Hub : Intel(R) 82801EB USB2 Enhanced Host Controller - 24DD
    USB Controller/Hub : Intel(R) 82801EB USB Universal Host Controller - 24DE
    USB Controller/Hub : USB-rotnav (hub)
    USB Controller/Hub : USB-rotnav (hub)
    USB Controller/Hub : USB-rotnav (hub)
    USB Controller/Hub : USB-rotnav (hub)
    USB Controller/Hub : USB-rotnav (hub)
    USB Controller/Hub : USB-enhet (sammansatt)
    USB Controller/Hub : Stöd för USB-skrivarport
    FireWire/1394 Controller/Hub : OHCI-kompatibel IEEE 1394-värdstyrenhet
    Keyboard : Logitech HID-Compliant Keyboard
    Keyboard : HID-tangentbordsenhet
    Mouse : HID-compliant MX310 Optical Mouse
    Mouse : HID-kompatibel mus
    Mouse : HID-kompatibel mus
    Human Interface : Logitech WingMan Force 3D USB (HID)
    Human Interface : HID-kompatible konsumentkontrollenhet
    Human Interface : HID-kompatibel enhet
    Human Interface : Logitech Virtual Hid Device
    Human Interface : Logitech Virtual Hid Device
    Human Interface : Logitech USB MX310 Optical Mouse
    Human Interface : Logitech WingMan Force 3D USB
    Human Interface : USB HID (Human Interface Device)
    Human Interface : Internet Keys USB
    MultiMedia Device(s)
    Device : Audigy X YouP-PAX A4 v1.00 Audio Driver(WDM)
    Device : Creative Game Port
    Device : Pinnacle PCTV Stereo PAL Capture Device
    Printers and Faxes
    Model : Microsoft Office Document Image Writer
    Model : Canon PIXMA iP4000
    Model : Adobe PDF
    Power Management
    AC Line Status : On-Line
    Operating System(s)
    Windows System : Microsoft Windows XP/2002 Professional (Win32 x86) 5.01.2600 (Service Pack 2)
    Network Services
    Adapter : Intel(R) PRO/1000 MT Desktop Adapter #2

    Thanks for your answers.
    Danny: 1. Yes, I've put my memory in my brothers computer, and ran memtest there, and it came out ok, but on mine it crashes almost instantly.
              2. Yea, I have 2 fans blowing into the case and one out, so airflow is good, cpu is also cool and seems to be happy ;-)
    Geps:  I can't say I understand all these numbers but there are som specs here as an example, Tagan TG480-U01 480W ATX
    I can't imagine that this psu ain't enough, and if so.....I've been had by the dealer. 

  • How do I use sqrt() and pow() math functions?

    I tried starting with import java.lang.Math.*; and using sqrt() and pow(), but I get an error response in compilation.
    //** 1/pi calculation program using Ramanujan's forumula **//
    //** by n=2 iteration, double precision value for 1/pi repeats **//
    import java.lang.Math.*;
    import java.io.*;
    public class CalcInversePiRamanujan {
      public static void main(String args[]) {
        double n=0, term, four_n_factorial=1, n_factorial=1, inverse_pi=0;
        inverse_pi = four_n_factorial * 1103 * 2 * sqrt(2) / 9801; //** initial value for n=0 **//
        System.out.println(inverse_pi);
        for (n=1, four_n_factorial=1, n_factorial=1; n<=3; n++) {
            four_n_factorial *= (4 * n);
            four_n_factorial *= (4*n-1);
            four_n_factorial *= (4*n-2);
            four_n_factorial *= (4*n-3);
            term = four_n_factorial;
            n_factorial *= n;
            term /= pow(n_factorial, 4);
            term *= 1103 + 26390 * n;
            term /= pow(396, 4 * n);
            term *= 2 * sqrt(2);
            term /= 9801;
            inverse_pi += term;
            System.out.println(n, term, inverse_pi);
        System.exit(0);
    }

    all methods in math class are static so you have to call them as
    Math.pow() and Math.sqrt() you dont have to import any additional packages as Math is a class available in java.lang package
    you have to change your
    System.out.println(n, term, inverse_pi); to
    System.out.println(n+ term+ inverse_pi);
    math class also provides the value of Pi you can access it using Math.PI

  • Hi! I purchased my ATV in Miami, but I live in Argentina. I have not been able to get the device running on any TVs. When I plug it in, it briefly shows the apple logo, then a sign saying no signal, check power cords and power source or sthg like that.

    Hi!
    I purchased my AppleTV in Miami, but I live in Argentina.
    I have not been able to get my device running correctly, and altough I've read tons of things online, I still have no solution to my problem.
    Here's the thing: after everything's plugged in and ON, I see the Apple logo briefly, then the TV displays a sign that says no signal, check pwoer cords and power source.
    But everything is plugged in and connected properly, otherwise, I doubt I'd be seeing the apple logo, right?
    I tried changing the HDMI cable, reversing the ends, switching ports, hard resetting the ATV, and trying a different TV. No luck.
    I read there is some issue with Samsung TVs, and most LED and LCD tvs down here are Samsung.
    On the other hand, I cannot return it or exchange it, since I bought it in the states.
    Oh! One of the tvs I tried it on displays a little sign that reads "connected at 1280x720 @60hz", and only THEN, goes to the "no signal" sign.
    Please!!! I am being driven up the walls here.... HELP!!

    Try this:
    Change the Apple TV resolution:
    Press and hold the Menu and Up button on your Apple Remote for six seconds.
    The Apple TV will automatically cycle to the next resolution at approximately 20 second intervals.
    Press Play on the Apple Remote to keep the current resolution or Select to manually cycle to the next resolution.

  • I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    I want to remove the monitor from my 17" Macbook Pro 2008 to use as an external for my Macbook Pro 15" 2012. How can I convert lvds to Thunderbolt and power the monitor?

    It's almost impossible.  The new iMacs have a Target Display Mode, but it's built to do that.  Without ripping your screen out, finding an acceptable power supply, frame, and whatever electronics to convert a Thunderbolt signal to the screen, the cost will be much larger than buying a cheaper HiDef monitor that runs with an HDMI to Thunderbolt cable to your MacBook 15.  In fact, you can sell your 17" MBP for a lot of money, unless it's broken or something, buying you a really sweet monitor.
    By the way, I found your answer by searching this forum.  I would suggest using the search function here in the futuere.

  • My iphone 4 is stuck on the reboot logo, ive ried holding both home and power to shut it off snd then keep holding home to let you plug it into itunes but it doesnt work. what do i do?

    my iphone 4 is stuck on the reboot logo, ive ried holding both home and power to shut it off snd then keep holding home to let you plug it into itunes but it doesnt work. what do i do?

    Did you try rebooting the iPad? You will need to have some battery power for this.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    This may be helpful
    iPhone, iPad or iPod touch: Not responding or does not turn on
    Frozen or unresponsive iPad - Apple
    iPad: Unable to update or restore

  • Is it possible to virtually bypass the battery on a macbook pro (retina 2014) and power the mac directly via AC power?

    Is it possible to virtually bypass the battery on a macbook pro (retina 2014) and power the mac directly via AC power?
    E.g. Dell allows you to plug the laptop into AC power but prevent battery charging.
    Note: I do not want to physically remove the battery.
    If there isn't an option on Mac OS, is there anything I can download to bypass the battery when I want?

    Thanks for linking me! Wow I had no idea the clock speed would be cut so severely! What a bunch of rubbish, as if the AC won't provide enough power!
    I guess the only solution to my question would be an app which virtually disconnects the battery but tricks the mac into thinking the battery is still connected. I'm just surprised Apple haven't yet started to build prisons for the government - considering how well they lock up their software and hardware!

  • I lost power to my MacBook Pro before I had saved anything that I was working on...usually I plug my computer it and power it back on and the documents pop right back up when the computer turns on. That did not happen this time.How can I recover this data

    I lost power to my MacBook Pro before I had saved anything that I was working on...usually I plug my computer it and power it back on and the documents pop right back up when the computer turns on. That did not happen this time. How can I recover my documents?

    If you never saved, auto save does not kick in.
    Peter

  • How do I stop an app from waiting?  I have tried to reboot by holding the home key and power button to power down.  Also, I have tried to sync the apps from my laptop with no success.  Can you help?  Thanks.

    How do I stop an app from waiting?  I have tried to reboot by holding the home key and power button to power down.  The app is still grayed out and waiting so it cannot be deleted.  Also, I have tried to sync the apps from my laptop and tried downloading new appswith no success.  Can you help?  Thanks

    If there are multiple apps trying to download at once, only one can download at a time and the rest say "Waiting" until it is then their turn. Try this. Double tap the icon of the Waiting app, and it should resume the download.
    How to Solve the Problem of An iPad App Download Stuck on “Waiting”
    http://ipadacademy.com/2012/06/how-to-solve-the-problem-of-an-ipad-app-download- stuck-on-waiting
    How To Get Rid Of Your iPad App Download Frozen Problem
    http://www.sidelineapple.com/how-to-get-rid-of-your-ipad-app-download-frozen-pro blem-and-not-lose-years-of-your-life-video/
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725
    Another thing to try - Turn the iPad Off & then back ON.
    If that doesn't work:
    •  Log out of your iTunes store account.  Go to Settings > Store > Sign Out Then press the Home button.
    • Then press and hold the Home and Sleep buttons simultaneously and don't release them when it brings up the Turn Off screen; keep holding them until the Apple logo appears.
    • After restart, the Waiting should be gone.
     Cheers, Tom

  • IPhone4 will not turn on. Tried reboot with home button and power button, and tried with sim out. Left on charge for an hour and nothing. Tried plugged into PC and nothing. Tried holding any and all buttons one at a time and plugging into PC and nothing.

    Hi,
    This is for my wife's iPhone 4
    She was on a call and went to end the call and the phone just turned off.
    Left it on charge for an hour or so and nothing.
    I tried the old reboot (home button and power button) and nothing
    I tired with the sim out.
    And with it plugged into a PC, opened iTunes and it didn't recognize that the phone was plugged in.
    I tried my PC and nothing.
    My phone charges and connects to both PC's
    Tried holding the home button then plugging into PC
    Tried holding the power button then into PC
    I've now been trying different combinations for about 3 hours and now I'm all out of ideas.... :(
    Please please can some help before Tuesday when I will have to find someone to repair it.
    Thanks,

    Sounds like faulty battery. Make Genius reservation and take to Apple for quick (minutes) free battery diagnostic testing. If you have Warranty or AppleCare the problem will be covered.

  • My ipad mini does not restart when i press and hold the home and power buttons for a minute or more. what do i do? i really need to access some information on it. please help.

    my ipad mini does not restart when i press and hold the home and power buttons for a minute or more. what do i do? i really need to access some information on it. please help.

    You need to connect to iTunes and restore.
    iOS: Not responding or does not turn on
    You may need to put the device into recovery mode, this is covered in the link on this page.
    Did you back up the device?

  • I have reached out  to this community as my Iphone display gone black and got the solution to keep home and power button pressed. It worked but I would like to know why it went black

    I have reached out  to this community as my Iphone display gone black and got the solution to keep home and power button pressed. It worked but I would like to know
    1. Why it went black and is there a permanent fix for this
    2.Will the IOS gets automatically updated as I feel the IOS was 5 when I got the phone in 2012 december
    3.Do you suggest 7.1 for Iphone 4

    1. There is no way of knowing. These things happen.
    2. The iOS only gets updated when you want it to be.
    3. You should always update to the latest iOS your phone will support. Apple do not write the updates to make your experience worse.

  • Decided to update iphone 4 to ios 5.1 and mid update it froze and the screen is black.  Phone does not respond to any combinations of home and power buttons, when plugged into computer it does not see it is plugged in, any ideas?

    Decided to update iphone 4 to ios 5.1 and mid update it froze and the screen is black.  Phone does not respond to any combinations of home and power buttons, when plugged into computer it does not see it is plugged in so I cannot restore or anything.  Looks like the screen is on it's just unresponsive and black obviously.  Has anyone had this problem?  I was updating via wifi right in front of my router and my computer.

    Spoke to a "senior advisor" in the Apple TV department.  Her suggestions:  change channel in router to minimize/eliminate wifi interference from other users; move router away from any metal - i.e., DVD player, phone modem, etc.; keep router away from wireless 2.4 gH phones, which are "notorious" for crashing wifi routers.  So she confirms that the problem is one of connection to router suddenly dropping out.
    My own feeling is that none of these fixes will do the trick, because it seems pretty clear that there is a hardware component here - the timing of the drops seems like an overheating issue.  It takes 35-40 minutes for the box to warm up enough for the first drop; then each consecutive drop happens quicker than the one before, as it heats up more.  Each time it drops, its tiny brain gets a little more scrambled; last night it finally wouldn't start up again at all.
    My suggestion is that everyone who is experiencing this problem, please call Apple tech support and ask to speak to a senior advisor in the Apple TV department.  Make them aware of this problem!

  • Installed the ios 7.0.2 update to my iphone 4, now it is stuck on a screen with itunes icon and power plug.  is this corect? I am unable to use the phone now.  What should i do next? I plug in to itune in my computer and ask me to restore my phone?

    installed the ios 7.0.2 update to my iphone 4, now it is stuck on a screen with itunes icon and power plug. 
    I am unable to use the phone now.  What should i do next? I plug in to itune in my computer and ask me to restore my phone? I will loose all my date?

    I hooked up itune and restore.  after finished restores, it said my phone is in recovery mode and needs to be finish before using itune, my screen still show the itunes icon and power plug

  • My ipod touch 2nd gen 8 gb won't boot! (I did hold home and power)

    So my ipod touch 2nd gen 8 gb won't boot. It never really fell on the ground it was not jailbroken and I had it for almost a year. Yes I have googled it, yes I holded home and power button at the same time,  basically did almost everything possible. I'm thinking it's the battery but might be something else. If you recognize this problem and know how to solve it, please reply here. I also can't connect to itunes in case your wondering

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

Maybe you are looking for

  • Standard Business Content Reports

    Hello, We are on the latest SAP BI version and we also have the BO - Cystal and Xcelsius. My question is when I try to look for standard business content, I couldn't find any. Am I missing something here, please giude me through. Thanks, Ravi.

  • HT3204 Downloading Trouble

    After renting a movie on itunes a box popped up saying: There was a problem downloading "This Means War/McG". An unknown error occurred (-50). Please check that the connection to the netowrk is active and try again. My internet connection is fine and

  • Outer Join Bug !!

    Has anybody noticed there is a huge bug in Oracle 9.2.0.1 ? SELECT STRS.Text, STRS.Language FROM CTY LEFT OUTER JOIN STRS ON (STRS.Language='de' AND CTY.LanguageId=STRS.Num) returns: 1 , 'Deutsch' , 'de' 2 , 'Deutsch' , 'de' BUT if the condition is r

  • Has anyone else had experience of BT completely ig...

    some days I spend hours on the phone with someone in india who denies I am a customer I read the customer number -- again and again -- I read my address postcode all my details they will keep asking keep denying -- THEY DON'T WANT TO DEAL WITH YOU th

  • Drill Down - Total is editable

    Hi, In the DP, I am using the DET_LEVEL() to check if there is a drill down for particular infoobjects, e.g., 'Customer' and 'Product' then only the Key figure should be editable. The macro is set under 'Default' option (best I could find) It works f