Bar graph draw enough bars

Hi all.  I'm a Subvi for a work project.  My boss and I have run out of ideas and the drawing of the date deadline near!

I'm a noob to Labview, but I'll try to explain what my Subvi (or should do).

Basically my Subvi bed 24 channels of data of a VI.  My Subvi should then turn these data items in a table and 24 separate bars on a bar chart to represent the voltage level of each output channel.

This he does, however, the chart shows only 20 channels and not more.

I know for a fact that the Subvi receives all processes and 24 channels (if that's the right word) the 24 channels self all the way to the end.  But no matter what I do I can't get the graph to display the last 4 channels.

Myself and my boss (who know a lot more about Labview than me!) are stuck.  Help, please!

I have attached my Subvi.  It is commented, so hopefully it will be much easier to understand by looking at it rather than me try to do awkward attempt to explain in words! (Test 2 bar chart)

I've also attached the orginal bar graph VI that I adapted to my Subvi (bar graph example)

One last thing: "bar chart sample" was performed at LV 10 and "bargraph Test 2" was performed at LV 8.6 - because it had to be compatible with the previous VI.  Sorry!  (Bloody labview and non-problemes compatibility!)

Your board location only 10 items, so the loop place will turn only 10 times and not 12 because of autoindexing.

Try something like the joint. It's about the same as your code. To change the spacing of the x-axis, change dx, no need for the array of locations)

Tags: NI Software

Similar Questions

  • Filter marked graph (Graph Draw) XY

    Hello

    I have a question about a XY Chart data "filtering", please see the attachment.

    The graph shows a few examples of data (white route) and a red field 'balloon' (you can press the left button of the mouse

    and drag on the chart to draw the red path).

    My need is to get all the samples inside the red ball, but now I'm stuck with it!

    Any ideas?

    (The attached VI is saved by LabVIEW2009 version)

    Look here: http://forums.ni.com/t5/LabVIEW/How-to-select-a-set-of-points-in-a-xy-graph-contained-in-an-area/m-p...

  • Beginner LabVIEW - XY graph and audio files

    Hello

    I am very new to LabVIEW. I'm doing a program as follows:

    • The LabVIEW VI to simulate two temperatures of entry.

      • You can simulate each of them through a random number generator (be sure to keep the numbers in a temperature range of imaginary), or if you want to, by reading the values of a file.
    • The Panel should, at a minimum, instantly showing each temperature (e.g., using a digital display), a graph drawing each temperature with time and an indicator (for example an LED or the counter number) to show that the temperature has exceeded its threshold.

    Now I have the generator of random numbers and Boolean lights according to work properly. However, I recently added sound if the temperature drops too low (i.e. when the blue led shows) or too high (when the red lights). It works well, however, for some values sound custom ring, for others it will be. For example, three values in a line could show who are all under 16 years - the lower limit, the blue goes light on however the noise could only ring - its my default windows sound. Can anyone see anything wrong with it or offer me a solution?

    Then, the XY graph. I feel that I don't get the right settings in there. I want the number of seconds on axis through the temperature values on the x - y axis. The temperature values initially came out huge by default, I have not changed the name of the axis but theres no graphics if I resized the axis myself? In my view, that I've not connected properly maybe? Also I really think I have somewhere went wrong with my reading of axis x, maybe I have the wrong time function in the control panel? I amn't familiar with boolean or or how to define true/false?

    If I wanted to use 1 LED that could change in three different colours (red for high green, temperature temperature normal and blue for low temperatures), how can I do this?

    Finally, someone has suggestions for the user interface, to make it look a little more sophisticated?

    Thank you in advance, attached file.

    First of all, you want to work on both your temperature at the same time and display them in separate indicators.  Secondly, I am sure that your beeper goes with each temperature taken.  You want to put the tone within a business structure to make it sound when you have any out-of-range condition.

    So in the end, I'm sure you want a Setup like this.  I'll leave some work for you to do.  You are not nearly enough to pay me to do your work for you.

  • XY graph construction

    I do a simulation for a displacement of the robot vehicle, so I have three exits, where two of them are the coordinates X and Y. So I wanted to take these two outputs to represent them on the X - Y graph so who see the graph is a point moves on the XY graph, drawing a line or curve regardless of the ground until it reached a point selected, the program stops when the condition is met.

    My problems are now:

    • I try to build the graph and what I have, this is a change in the X and Yscale with the change of my values, but nothing is drawn inside the chart.
    • the other thing is that I can not put a desired point fixed on the graph, so when moving plot reaches the desired point the program stops running.

    As a note when I active execution of climax, I found the program do what I want, but I can only draw on the graph.

    File Untitled is a simple example of what I've done and untitled 1 is a part of my real code.

    My guess is that because you're drawn only a single point, the loop runs so fast that you can't follow every point.  That's why you can see when you turn on execution highlighting.  Add a delay if you want to keep the single window approach.  Otherwise, wire a constant false to Reset? entry on the XY build chart and you will be able to see all the points.

    PS how in the world you are so blindfolded son.

  • Pls helpme implement canvas and BufferStrategy on my old 'self made' buffer

    Hai all!
    As suggested by me cardan2 here: Re: AWT - how to remove (make transparent) one part of an Image
    I tried to implement the Web and BufferStrategy in my project.

    My old method of buffer selfmade was as follows (note: the explanation is shortened):
    -J' use to extend a framework
    -J' I create a BufferedImage with that
    Image buffer = this.getGraphicsConfiguration().createCompatibleImage(buff_xo, buff_yo);
    -J' made a class to manage the buffer (BufferManager)
    BufferManager buffMan = new BufferManager(buffer);
    - Then I start a regular thread with a class that extends TimerTask, which is practicable (CoreThread)
    ScheduledExecutorService core = Executors.newScheduledThreadPool(1);
    core.scheduleAtFixedRate(new CoreThread(buffMan), 5, 16, TimeUnit.MILLISECONDS);
    -I overloaded directly image update() paint (g) methods and frameworks write "buffer" on the graph of the image
    @Override
    public void paint(Graphics graph) {
         // Drawing everything from the buffer, and removing flicker effect
         graph.drawImage(buffer, buff_x, buff_y, null);
    }
    
    @Override
    public void update(Graphics graph) {
         paint(graph);
    }
    -at the end of my son, when I need to update my screen, I call the paint (g) of the image method.

    And it's practically how my work... as you can see, I'm bored a canvas and a BufferStrategy.

    Watching this tutorial http://www.javalobby.org/forums/thread.jspa?threadID=16867
    I see that he uses to set up of the canvas (easy, that I can do it) and then get the BufferStrategy with her.
    After that, it gets the BufferStrategy graph and use it in the threat are paintings on it.
    It removes the graphic and uses the BufferStrategy show() method to paint the buffer and update of the screen image.

    My problem on the implementation of BufferStrategy, is that I often use the "buffer" Image everywhere in my code (expecially when I need to make calculations with his size) and not simply its graph.
    So to implement the use of BufferStrategy, I should send it anywhere in the BufferStrategy where now to send the Image buffer?
    And then should be enough to call the show() method of BufferStrategy instead of patint (g) to the end fo my thread, when necessary to screen update?

    Thanks to you all!

    Patcha wrote:
    But my problem is Graphic2D object contains data about the current size of the traced... t-zone - it?
    I do a lot of calculations and there on the size or adjacent buffer of collisions.

    No, but the BufferStrategy also does not deal with things; the canvas has dimensions.

    I'm pretty lazy in this regard and I tend to have a singleton in this class that can call application components to understand the details of such as dimensions. Class singleton has then access to things such as the frame and the canvas, the rest of the code should not know they exist. All drawing is then made to the GUI of base, which could be the BufferStrategy backbuffer or, for example, that of an image from scratch if I want to make a composition before I blow the final result to the screen.

    Some people will condemn me for the use of a Singleton, but I don't like much about it really ;)

  • Apple in Sri Lanka support

    I find it frustrating that Apple didn't always options (other than authorized dealers) support for customers in Sri Lanka. I hope if I can draw enough attention to this thread I think that Apple would take notice?

    I really don't want to trust to authorized dealers here with my requests for support, simply because of their non-compliant with standards knowledge. I had bad experiences. If only Apple could have phone support for Sri Lanka, or at least a space online.

    I know that some progress has been made in many other countries in APAC, I think it's time that Apple gave us a little more attention.

    We are here all users and Apple here is moderation of the forum (without "retail" or "support")

    The best place for your suggestions Feedback - Apple Store - Apple , I think that

    I'm not sure that this one would address your concerns, but maybe Apple Support Feedback

  • Issue of ThinkPad tablet 2 Factory Reset reinstall Windows

    Please help me. I have problems to reinstalling windows on my thinkpad Tablet 2. I have a long enough thread explaining my problem here, http://forum.tabletpcreview.com/lenovo-ibm/62633-thinkpad-tablet-2-factory-reset-reinstall-windows.h... if someone could help me I would be very grateful. I'll copy and paste the thread here, if I have to, but it's just easier to copy the link.

    Fastest salvation,

    I had similar problems to you with a number of our TPT2s. They are really picky when it comes to boot from an external support. Here's how I got mine to (possibly) regularly start on external media. However, one thing to note is that, in order to recover Windows 8 on it, you're either going to need disk recovery Lenovo or an installation of Windows 8 of your own disc. I have no idea if the drivers listed on the Lenovo site will work with anything as old as XP, although I remember some Windows 7 see so if you have a Win7 disc you might try that.

    1. disable the Secure Boot UEFI in the BIOS. [BIOS |] SECURITY | SECURE BOOT | [* Change the secure startup flag ' disabled]

    2 get some kind of separator/hub USB so that you can plug your external DVD drive with a keyboard (Microsoft still require you to "push any key to boot from CD" and touch the screen does not count).

    3. with the drive and the keyboard is connected, set the boot order in the BIOS so that the CD/DVD drive is the first boot option. I also push the Windows boot manager at the bottom of the list if it is there. Do, but I'm a superstitious Guy and save the changes.

    4. as long as the DVD drive has adequate power (need an external power supply. He cannot draw enough power from the USB port of the tablet to run) and you have a Windows disc 8/7 in the drive, you should now receive the message "press any key to boot from the CD-ROM. Press a button and it should... Finally... it takes much longer than any normal device... starting in the installation menu.

    Each step of this lasts longer than you expect. For example, it takes an age for the message "Press any key" is displayed. It just sits there with a black screen and the DVD blowing away.

    That's how I got mine to work in any case, best of second chance.

  • USB 6008 weird analog voltage reading

    Hello

    I use the USB-6008 to measure a voltage of a Lithium battery, 3.66V.

    the battery come with a blocking diode (in series with the battery) of 1N5820, who have a fall of voltage drop of 0, 1V.

    battery with diodes in series (this is the way in which the battery is shipped with)

    -measure with DDM yield 3.66V without you connect to usb6008

    -measure with DDM yield connected to usb6008 (putting OUT VOLTAGE USB6008) 3.59V

    -able with USB-6008 performance 3.59V connected to usb6008

    battery with diode removed

    -measure with DDM yield 3.66V without you connect to usb6008

    -measure with DDM yield connected to usb6008 (putting OUT VOLTAGE USB6008) 3.66V

    -able with USB-6008 performance 3.66V connected to usb6008

    Thus, it seems that the problem is in the led in the series.  This is why the battery voltage has fallen to 0.07V? the series diode will hurt the USB-6008?

    Maybe people who know the circuits inside the USB-6008 can give me an answer.

    Thanks in advance.

    Hi learnerd,.

    The fall that you see is falling forward in the diode.  As an entry class device, the USB-6008 case has a relatively low input impedance (144kOhm) and thus draws a little current of the device.  Looking at the datasheet of the 1N5820 (http://www.onsemi.com/pub_link/Collateral/1N5820-D.PDF), Figure 7 shows that at 25 ° C, a draw of 50mA will cause a fall front of 200mV.  While the figure does not extend the curve below 50mA, extrapolating the given curve would indicate that a drop of 70mV would cause only a few current microamperes.

    A DMM will have a much greater input impedance (GOhms instead of kohm) and won't draw enough current to influence the measure, that's why you wouldn't see the decline with only the DMM.

    The diode will not harm the USB-6008 somehow.

    Good luck with your application,

    The f

  • signal analysis

    Hello users of Labview,.

    I have a vi that records mass gains based on time. The problem I have is that I want the time on the x-axis in seconds but somehow the vi records the data quickly and time is certainly not seconds. It is not more milliseconds. I have attached the front panel and I need help to make the vi to register data based on real time (in seconds).

    Thank you.

    -Myriam

    the waveform table each time you read your signal, plot you your data.

    The waveform graph draw you tables of data. If you don't want to set the announcement, then, use the dashboard wafeform and time your loop, so you'll have your measurements in a time of definide. If you time your loop, the computer does work as soon as possible, and you cannot guarantee it will read your signed at regular intervals.

  • Digital output with timer (Simulation)

    Hello everyone, I just found out how LabVIEW program a week ago. I try to do a simulation of digital output by LabVIEW (my attachment). In this simulation, I have a slider as an input (0-10 V), two digital controls (upper limit and lower limit), a waveform graph draw these 3 evaluates and two Boolean LED (P0.0 and P0.1) as indicator. In this simulation, you can fill any number (between 0 and 10) in numerical order as a limit for your entry cursor. If the entrance of a cursor exceeds these upper and lower limit, then the Boolean LED lights, P0.0 so exceeds the upper limit, and if P0.1 exceeds the lower limit. The problem is that I do not know how the timer for those Boolean LED. As an example:

    (1) make an entry of cursor,

    (2) if entry (1) exceeds the upper limit, P0.0 lights for 5 seconds, then turn to during 10 second.

    (3) if only 10 seconds, you change the entry back to normal (between high and low limit) then P0.0 will stay turn of until the cursor entry exceeds the upper limit again,.

    (4) If, in this second 10 you has not changed the entry (the stay exceeds the upper limit) then P0.0 repeats the process (2) until you the entrance to cursor back to normal.

    (Same process for entries exceed the lower limit).

    Can you help me do this timer? Thank you

    Concerning

    Juventom

    Hello

    If you don t mind I would just give you some advise to your code. To determine the data stream you can also use only the error wire connected to the loop. So Don t you really need, it's beter not not to use variables. For your solution, you can use something similar to what I tried for the upper limit in your program. It is added as an image.

    Hope it helps

  • HP laptop: HP G42 415DX hangs at post

    The system has been and is still blocking position up-down left, said - ESC for the start menu.

    Battery is dead - AC - did it with and without the battery in the device.

    I put in the new drive hard windows 7 ENT / x 64.  Runs great when it comes to windows.  When you restart - same thing - hangs on post.

    I checked the order - hard drive to boot first.  I flashed the bios for more later.  I ran the diagnostic boot test that all previous phases.  I also reset the bios to load the default values.  Nothing seems to work it to make a stop/restart and get past the post.

    After you click ESC to continue - it will start right from windows.  In the diagnostic selection menu.

    Really baffled here.  All solutions?  It is NOT a WINDOWS PROBLEM.  It is not a problem of MEMORY or HARD DISK.

    Thanks for any help.

    Well - I'll answer my problem for me.  I figured out it's a faulty power brick / cord.  Needs no summer of drawing enough juice for the initial post after turning on the power button.  After trying 2 different hard disks, flashing the bios, running the edge of diagnosis - I said what the hell - replace power cord, since I have one here in my office.

    Instant results.

    BAM.

    Thanks Joe!

  • Two signals 1 d

    I use DAQmx Read (analog 1 wfm NChan NSamp d) .vi twice, once to read Dev/ai0 and Dev/Ai1, two analog inputs of a PXI-6052.  I can do a waveform graph draw one or the other, but I want both of them to appear on the same waveform graph.  How can I do this?

    Thank you

    Kevin

    Use a table. See the example with LabVIEW.

  • Cannot install Windows 8, assuming that its due to the video card... Need help!

    Hi all, I'm terribly frustrated today. I think the video card, a brand specifically 6450 marked as a 7450 here, is at the origin of the problems. The pilot was a mess and when I updated and restarted windows 8 (using the stock drivers) then updated after hesitating to Windows 8. After I restarted my computer, windows 8 has been roasted and I couldn't access what anyone, I had to do a recovery install. I wonder if there are any suggestions as to what I can do here, would like any advice! Nick

    HI there - don't know why I don't post the model (h8-1227, a Pavilion), but regardless, the issue was not the video card.

    It's a seemingly simple, innocuous add-on I've used for over 2 years.

    Never heard of the Asus AI Charger?  It is used to help to "mount" the power to the USB ports on a computer, allowing an iPad draw enough power to recharge in FACT.  It has been a great feature to my computer.

    However such, it killed my first USB 3.0 ports, completely.  I would like to install the HP drivers and the USB port will work until I rebooted, then it stops.

    I completely misunderstood this as something that might have been originally, but here, I looked at the USB ports in the Device Manager and saw the tag HAVE charger which they are attached.

    Something SMALL, simple as it seems, is what was causing all that headache and frustration.  I probably lost more than 20 hours trying to solve a problem this stupid thing caused.  I even ended up buying a new video card, guess THAT's what the problem is here.

    What's happened is that the only TWO things I have installed in the computer were the new drivers for video card, Office and the charger HAVE stupid!

    Sometimes the simplest things are the most stupidly frustrating things!

  • Chart display problems - cut off the end or shows not all values

    I have a file I/O reads database table where I can choose a date range to view history, and I can't seem to format correctly.

    If I set the width of the graph large enough to show all values, it cuts the right part.

    Width 1200, the value date of end 10/01/2014, shows only until September 24:

    fileio.jpg

    Width set at 1700, will now interrupt the rightmost in the values:

    fileio1.jpg

    Obviously, I want the best of both worlds - when the date range is selected, it shows all the values and fits in the chart area.

    Any ideas?

    Create a diagram with scrolling.

    Under the item add something like:

  • 2D, legend, chart error bar XY, Multi draw help? Please modify the VI

    Please READ THE ENTIRE POST and HELP!

    Please help with this VI and make an instructive example for me and other novices like me who come through this typical example.

    A typical problem of tracing data is the following: on the SAME plot (y axis = Amplitude axis x = time), draw curves Amp1, Amp2, Amp3,... from sample1, sample2, Sample3,...

    In addition, it is a mistake1, Error2, Error3,... associated with Amp1, Amp2, Amp3,..., which must also be traced. In order to distinguish between these curves, we can use different

    colors and show a legend that reads Amp1 (i.e. black), Amp2 (say red) and Amp3 (green for example). Then, the plot becomes complete and transmitting data very conveniently.

    The attached VI made an attempt to trace Amp1 and Amp2 helps chart XY and 2D plot of error bar (to display error bars). There is a slight problem. The legend does not show what it is assumed

    to show. Can someone solve this? If I draw two curves, the caption should show Amp1 Amp2, that if I drew three curves, the caption should show Amp1 Amp2, Amp3 and so on.

    I don't want to see the default plot 0, draw 1 or whatever. Also, it would be nice to dynamically control the symbol, the color, the style of curve etc as we continue adding more curves in the plot.

    Once this problem is solved, I know that I can easily extend to draw more accurate curves two dynamically. I could use for loops with shift registers, etc. to draw any number of curves on a single parcel.

    Believe me, I searched for other positions and could not find a simple example like the one I posted here. I found a lot of examples have confused me more that helped me.

    I believe that if this problem is solved in a simple way, many will find this informative example. So by helping me, you help a lot of other people as well!

    Thank you in advance. Please see the attached files (VI and an example of data file I created only)

    If you like graphic multiple curves (Y1, Y2, Y3, etc) with their respective error bars (Err1, Err2, Err3, etc.) on the same plot

    Use the error Bar Plot (aka 2D bar error) and want the legend to display (Curve1, Curve2 Curve3, etc. or all what you want to call it),.

    Please visit the following link:

    http://forums.NI.com/T5/LabVIEW/A-simple-challenge-error-bar-plot/TD-p/1986755

    For the use of XY graph, please check out the link in one of the posts above.

    Thanks to everyone who has contributed to this.

Maybe you are looking for