BI Graph with JRE

Dear professionals,
how to configure BI graph demo (Forms10gR2 demos) to work on AS along with JRE (instead with Jinitiator)?
I copied .jar file at /forms/java folder, change formsweb.cfg and run form, but there is no graph on the form... :(

Andreas Weiden wrote:
did you put the appropiate jar's in your archive-tag in the formsweb.cfg? You also may have a look at the java-console.archive_jini=frmall_jinit.jar,frmwebutil.jar,jacob.jar,my_icons.jar,*frame*.jar,accordion.jar,gmap.jar,FormsGraph.jar,demo.jar
archive=frmall.jar,formsframes5.jar,formsframe.java,frmwebutil.jar,jacob.jar,frame.jar,*accordion*.jar,*gmap*.jar,demo.jar
Andreas,
thx for quick response. As you could see, I already use some of the PJCs developed by you and Francois (so these jars works fine). I'm trying now to include chart in my Forms application.
I also tried to use jar from this site, but unfortunately with the same result - don't work...
http://www.bincsoft.com/articles/forms-wrapper-for-oracle-data-visualization-components/
I'm getting next message:
java.lang.ClassNotFoundException: oracle.forms.demos.bigauge.FormsGauge
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)

Similar Messages

  • How to create ONE graph with a growth trend ($ and %)?

    I would like to create a graph with a growth trend.
    The graph should have figures on one side reflecting $ values and on the other % growth.
    I cannot make a trend on the same graph and usually spend ages adding another graph to show the trend. I end up making 2 graphs instead of one.
    Please refer to the following really basic graph that will give you an idea.
    ex : http://www.tellurideareahomes.com/images/graph1.jpg
    Can anyone show how to do that?

    What you want requires a bit of trickery.
    Chart the bar graph
    Chart the trend
    then move the trend one above the bar one after setting its background to none.
    If this workaround is not OK for you,
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'09 (possibly for iWork '99)
    Yvan KOENIG (from FRANCE mercredi 19 novembre 2008 11:18:45)

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Is Apple aware of this problem? No longer supported?

    My web page uses a Java Applet to allow my visitors to replay chess games; the Chess Viewer Deluxe applet was written by Nikolai Pilafov some time ago and has been working properly for some time (until recently). I don't monitor this part of my site regularly so I am not sure when it began to fail. On his web site [http://chesstuff.blogspot.com/2008/11/chess-viewer-deluxe.html] he has a link to check LiveConnect object functionality (which fails for OBJECT tags). His recommendation is to "seek platform specific support which might be available from the JRE developers for your platform".
    I have been getting java.lang.ClassNotFoundException: ZeroApplet.class and java.lang.ClassNotFoundException: JavaToJS.class crashes with JRE version 1.6.0_26-b03-384-10M3425 VM executing a Java Applet. Until I checked the LiveConnect object functionality, I was unable to identify the source of the console error messages. This does seem to be the smoking gun.
    Is Apple aware of this problem? Are these classes no longer supported? Has anyone else had this problem? You can attempt to recreate the problem locally by going to my web page: http://donsmallidge.com/DonSmallidgeChess.html
    Thanks in advance for any help you can provide!
    Abbreviated Java Console output:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-384-10M3425 Java HotSpot(TM) 64-Bit Server VM
    load: class ZeroApplet.class not found.
    java.lang.ClassNotFoundException: ZeroApplet.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)
    load: class JavaToJS.class not found.
    java.lang.ClassNotFoundException: JavaToJS.class
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
        at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
        at sun.applet.AppletPanel.createApplet(AppletPanel.java:807)
        at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2389)
        at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
        at sun.applet.AppletPanel.run(AppletPanel.java:368)
        at java.lang.Thread.run(Thread.java:680)

    I just went up to check the LiveConnect object functionality page AND IT WORKED THIS TIME! I must confess, this is very mysterious. I will do some more checking and reply here if I can determine why it is working now (and more importantly, why it didn't work before).

  • JVM Crash: with jre 1.6.0_18 but not with 1.5.0_14

    Hello everyone,
    I got the problem that my JVM crashes when I am using the jre 1.6.0_18 but the same code runs with an jre 1.5.0_14. The code contains some JNI parts and
    is compiled with a JDK 1.5.0_14. The crash can not be reporduced within a debugger. The crash either occurs in the jvm.dll - as in the error log below - or when acessing the ntdll.dll.
    Any help is appreciated!
    Thanks in Advance!
    Here is the JVM crash report:
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d979ba7, pid=10932, tid=12276
    # JRE version: 6.0_18-b07
    # Java VM: Java HotSpot(TM) Client VM (16.0-b13 mixed mode, sharing windows-x86 )
    # Problematic frame:
    # V [jvm.dll+0x179ba7]
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x02afa800): VMThread [stack: 0x02be0000,0x02c30000] [id=12276]
    siginfo: ExceptionCode=0xc0000005, reading address 0x706d7953
    Registers:
    EAX=0x706d7953, EBX=0x00000000, ECX=0x37387a88, EDX=0x00000000
    ESP=0x02c2f79c, EBP=0x02c2f7ac, ESI=0x00000080, EDI=0x02bc7460
    EIP=0x6d979ba7, EFLAGS=0x00010246
    Top of Stack: (sp=0x02c2f79c)
    0x02c2f79c: 02c2f890 373851d0 02c2fa8c 02bc7464
    0x02c2f7ac: 02c2f7c4 6d8d8c66 02afaab4 00000000
    0x02c2f7bc: 02c2f7f8 37387a88 02c2f7dc 6d96b704
    0x02c2f7cc: 02afaab4 00000000 02c2f7f8 02afaab0
    0x02c2f7dc: 02c2f840 6d8b3449 00000000 02c2f7f8
    0x02c2f7ec: 05b30400 02c2f890 00000001 00000000
    0x02c2f7fc: 02c20000 0000ffff 00000000 00000000
    0x02c2f80c: 00000000 6da187a4 02c2f890 02c2fa8c
    Instructions: (pc=0x6d979ba7)
    0x6d979b97: 80 79 05 48 83 c8 e0 40 8d 1c 40 8b 07 8d 04 d8
    0x6d979ba7: 39 08 75 09 0f b7 58 04 3b 5d 0c 74 34 42 83 fa
    Stack: [0x02be0000,0x02c30000], sp=0x02c2f79c, free space=13d02c2f310k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0x179ba7]
    V [jvm.dll+0xd8c66]
    V [jvm.dll+0x16b704]
    V [jvm.dll+0xb3449]
    V [jvm.dll+0xb3562]
    V [jvm.dll+0x1db5f5]
    V [jvm.dll+0x1db9ca]
    V [jvm.dll+0x1a1af4]
    V [jvm.dll+0xc834f]
    V [jvm.dll+0xa443c]
    V [jvm.dll+0xc9398]
    V [jvm.dll+0x7e7cb]
    V [jvm.dll+0x1f442b]
    V [jvm.dll+0x1f6ed3]
    V [jvm.dll+0x1f615e]
    V [jvm.dll+0x1f64ac]
    V [jvm.dll+0x1f68d2]
    V [jvm.dll+0x17f9cc]
    C [msvcr71.dll+0x9565]
    C [kernel32.dll+0xb50b]
    VM_Operation (0x0a09e2dc): GenCollectForAllocation, mode: safepoint, requested by thread 0x05c54800
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x05b30400 JavaThread "persistance manager service activator" daemon [_thread_blocked, id=6588, stack(0x0a230000,0x0a280000)]
    0x05b38400 JavaThread "task queue worker" daemon [_thread_blocked, id=9788, stack(0x0a1e0000,0x0a230000)]
    0x05c5b800 JavaThread "PSJ-Subsystem" [_thread_blocked, id=11024, stack(0x0a140000,0x0a190000)]
    0x05c5a400 JavaThread "HDM-Subsystem" [_thread_blocked, id=8296, stack(0x0a0f0000,0x0a140000)]
    0x05c61000 JavaThread "CSM-Subsystem" [_thread_blocked, id=5272, stack(0x0a0a0000,0x0a0f0000)]
    0x05c54800 JavaThread "XPS-Subsystem" [_thread_blocked, id=10064, stack(0x0a050000,0x0a0a0000)]
    0x05c59400 JavaThread "GUI-Subsystem" [_thread_blocked, id=7596, stack(0x0a000000,0x0a050000)]
    0x05c5f800 JavaThread "TimerServices" [_thread_blocked, id=5760, stack(0x09fb0000,0x0a000000)]
    0x05af9800 JavaThread "Thread-2" [_thread_in_native, id=11624, stack(0x03d30000,0x03d80000)]
    0x02b0b000 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=8092, stack(0x02dc0000,0x02e10000)]
    0x02b07c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2696, stack(0x02d70000,0x02dc0000)]
    0x02b06400 JavaThread "Attach Listener" daemon [_thread_blocked, id=1444, stack(0x02d20000,0x02d70000)]
    0x02b05000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=10896, stack(0x02cd0000,0x02d20000)]
    0x02afd000 JavaThread "Finalizer" daemon [_thread_blocked, id=8084, stack(0x02c80000,0x02cd0000)]
    0x02afbc00 JavaThread "Reference Handler" daemon [_thread_blocked, id=10636, stack(0x02c30000,0x02c80000)]
    0x002a7000 JavaThread "MasterControl" [_thread_blocked, id=11412, stack(0x008c0000,0x00910000)]
    Other Threads:
    =>0x02afa800 VMThread [stack: 0x02be0000,0x02c30000] [id=12276]
    0x02b0d000 WatcherThread [stack: 0x02e10000,0x02e60000] [id=11048]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x002a61c0] Threads_lock - owner thread: 0x02afa800
    [0x002a65d0] Heap_lock - owner thread: 0x05c54800
    Heap
    def new generation total 4928K, used 4783K [0x22970000, 0x22ec0000, 0x27ec0000)
    eden space 4416K, 100% used [0x22970000, 0x22dc0000, 0x22dc0000)
    from space 512K, 71% used [0x22dc0000, 0x22e1bf30, 0x22e40000)
    to space 512K, 0% used [0x22e40000, 0x22e40000, 0x22ec0000)
    tenured generation total 10944K, used 697K [0x27ec0000, 0x28970000, 0x32970000)
    the space 10944K, 6% used [0x27ec0000, 0x27f6e4e0, 0x27f6e600, 0x28970000)
    compacting perm gen total 12288K, used 5037K [0x32970000, 0x33570000, 0x36970000)
    the space 12288K, 40% used [0x32970000, 0x32e5b4c8, 0x32e5b600, 0x33570000)
    ro space 10240K, 51% used [0x36970000, 0x36e97b58, 0x36e97c00, 0x37370000)
    rw space 12288K, 54% used [0x37370000, 0x37a04ce0, 0x37a04e00, 0x37f70000)
    Dynamic libraries:
    0x00400000 - 0x00424000      c:\windows\system32\java.exe
    0x7c900000 - 0x7c9b0000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c8f4000      C:\WINDOWS\system32\kernel32.dll
    0x77dd0000 - 0x77e6b000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77e70000 - 0x77f01000      C:\WINDOWS\system32\RPCRT4.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jre6\bin\msvcr71.dll
    0x6d800000 - 0x6da97000      C:\Program Files\Java\jre6\bin\client\jvm.dll
    0x77d40000 - 0x77dd0000      C:\WINDOWS\system32\USER32.dll
    0x77f10000 - 0x77f57000      C:\WINDOWS\system32\GDI32.dll
    0x76b40000 - 0x76b6d000      c:\windows\system32\WINMM.dll
    0x6d7b0000 - 0x6d7bc000      C:\Program Files\Java\jre6\bin\verify.dll
    0x6d330000 - 0x6d34f000      C:\Program Files\Java\jre6\bin\java.dll
    0x6d290000 - 0x6d298000      C:\Program Files\Java\jre6\bin\hpi.dll
    0x76bf0000 - 0x76bfb000      c:\windows\system32\PSAPI.DLL
    0x6d7f0000 - 0x6d7ff000      C:\Program Files\Java\jre6\bin\zip.dll
    0x6d610000 - 0x6d623000      C:\Program Files\Java\jre6\bin\net.dll
    0x71ab0000 - 0x71ac7000      c:\windows\system32\WS2_32.dll
    0x77c10000 - 0x77c68000      C:\WINDOWS\system32\msvcrt.dll
    0x71aa0000 - 0x71aa8000      c:\windows\system32\WS2HELP.dll
    0x6d630000 - 0x6d639000      C:\Program Files\Java\jre6\bin\nio.dll
    0x02eb0000 - 0x02f59000      C:\mod_s14\bin\stlport.5.2.dll
    0x7c3a0000 - 0x7c41b000      c:\windows\system32\MSVCP71.dll
    [snip]
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 2, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
    Memory: 4k page, physical 2094652k(589592k free), swap 4032296k(2558960k free
    vm_info: Java HotSpot(TM) Client VM (16.0-b13) for windows-x86 JRE (1.6.0_18-b07), built on Dec 17 2009 13:35:55 by "java_re" with MS VC++ 7.1 (VS2003)

    I have the Java console open and after 10 seconds it closes and the applet becomes unresponsive. Usually when an applet crashes, some error messages show up in the console before it closes. That does not appear to happen in this case.
    If I load a webpage with an applet (http://java.sun.com/applets/jdk/1.4/demo/applets/Fractal/example1.html) and then move to a non-applet webpage, and have the Java console up, it stays up (alive) for about a minute before it closes. In the case of my applet it closes much faster.
    When I refresh, the second instance of the applet might be starting in the same process as the first process which is in the middle of closing (I am new to Java and JNI, so I might be using the wrong terminology). But with JRE 1.6.0.25 I was not seeing the crash on refresh. It manifested itself with the update to JRE 1.6.0.31
    I did realize the codebase was wrong. This is what I have now:
    <!--[if IE 9]>
    <object
    id="myApplet"
    name="myApplet"
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6u31-windows-i586.cab"
    type="application/x-java-applet;version=1.6"
    width="800"
    height="600">
    <![endif]-->
    <!--[if IE 8]>
    <object
    id="myApplet"
    name="myApplet"
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6u31-windows-i586.cab"
    type="application/x-java-applet;version=1.6"
    width="800"
    height="600">
    <![endif]-->
    <!--[if IE 7]>
    <object
    id="myApplet"
    name="myApplet"
    classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase="http://java.sun.com/update/1.6.0/jinstall-6u31-windows-i586.cab"
         type="application/x-java-applet;version=1.6"
    width="100%"
    height="90%">
    <![endif]-->
    <![if !IE]>
    <object
    id="myApplet"
    name="myApplet"
    type="application/x-java-applet;version=1.6"
    width="800"
    height="600">
    <![endif]>

  • Is it possible to create graph with in the table / Pivote table.

    Is it possible to create graph with in the table / Pivote table.
    Emp# Emp Name % Bonus Pay Amt
    111 AAA $28276
    222 BBB $78878
    In the place of Bonus I have to display Bar (Chart) instead of number.
    Is it possible in OBIEE? I know we can display chart and table next by next but my user want display just like above.
    Please help me on this issue
    Thank you very much for your time

    hi,
    it is better for 2 different questions,make 2 differents threads...
    You used the 2ond solution(google???),put in the dashboard...html enabled...and check your pdf again.
    Moreover,printing pdf with answer is discouraged...always prefer Xml Publisher.
    Last,there are 2 fst files which configure the *.pdf files , check them,
    http://obiee101.blogspot.com/2008/09/obiee-pdf-controls-fst-files.html
    hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Jar files download problems in Java Webstart with JRE 1.6

    We have encountered a few problems in Java Webstart with JRE 1.6
    In JRE 1.5, the jar files are getting downloaded onto the client
    machine with it's original names.
    Example :
    Server File Name : acm.jar
    Client File Name : RMacm.jar
    But in JRE 1.6, the jar files are getting downloaded with improper file names.
    Example :
    Server File Name : acm.jar
    Client File Name : 4fb074cc-66fc7407
    Moreover the path itself seems to be invalid.
    Example Path :
    JRE 1.5 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\javaws\https\D17.16.23.11\P443\DMtest\DMwebStart
    JRE 1.6 path:
    C:\Documents and Settings\Administrator\Application
    Data\Sun\Java\Deployment\cache\6.0\12
    Due to this, we are facing Classpath problems.
    What changes do we have to make to the code, for Java
    Webstart to work ?
    We are using JBoss 4.0.4 and JDK 1.5 in the Server
    On the client machine, we have IE 6 and JRE 1.6.01
    Help would be appreciated.

    Ask your Java Web Start question at:
    http://forum.java.sun.com/forum.jspa?forumID=38

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • JDK 1.6 update n and compile with JRE

    With the new optimizations of the install of a JRE with java 6 update n, is it possible to compile with jre and just the parts of the jre that you need for your application? That is can we distribute a java application that only have the parts of the JRE that it needs to a user that do not have any JRE isntalled and he can run it?
    Thanks
    WildChild

    The license of Sun does not allow you to distribute just part of the JVM. The only solution to run your application in a computer without JVM is bundle your whole JRE folder together with your application.
    At first it sounds bad, but if you use an installer to compress your files, the JRE will be around 14mb.
    Check this tool

  • Xy graph with dynamic number of plots

    I've got an XY Graph with some dynamic number of plots to graph. Once I know this number, I change the LegPlots property and plot the data from an array containing all the plots. The data is displayed correctly, but I get overlapping colors. Say I'm only trying to graph 3 plots. I get three lines (good) but then the three lines have 29 colors (bad), as if it's plotting all possible plots at the data points of the three. The legend updates to only show three (good), but am I missing something else? Does the LegPlot property not govern that, but only governs the legend itself?

    If the problem is the code then I'll take a look at my mess of wire, I just wanted to see if it was the LegPlots property first.
    Here's what it looks like, just in case
    Attachments:
    toomanycolors1.JPG ‏25 KB

  • XY Graph with two Y inputs

    I need to know how to graph a XY graph with two values of Y. I need to it to compare to different angles and I also would like to make them graph different colors. Currently i have an XY graph with one Y input using the XY Graph express VI. I found out how to set up for two simultaneous plots by editing the properties for the graph but I don't know how I can input another Y value to plot using the XY Graph express VI.
    Thank You,
    Phil

    I never use the express functons but I think what will work is to use the merge signal function. Try merging the two x inputs together and merging the two y inputs together. I made a modification to the shipping example called Lissajous.vi  to try a quick test.
    Attachments:
    lissajous_mod.JPG ‏54 KB

  • LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.

    Hello, LV 8.2.1 notes indicates the following bug fix:
    43SAIR2A  Fixed an issue where LabVIEW crashes when you run a VI that contains a mixed signal graph with a multi-plot cursor.
    I am running this version, and still have this behavior.  Is there anything I may be missing, and/or certain circumstances that may still be causing this?
    thanks in advance,
    Darren

    Darren:
    I looked at the CAR ID that you mentioned and the issue has been resolved in LabVIEW 8.2.1. To verify something similar, I ran the attached VI and things worked just fine. Please feel free to send me the steps to follow to reproduce the issue you are running into in 8.2.1.
    Regards,
    Rudi N.
    Attachments:
    MixedGraphs.vi ‏15 KB

  • Exporting from a 2D line graph with .jpeg extension

    Is there any way to export from an ordinary 2D line graph with .jpeg extension so that with using this image i will improve my result of exporting excel.
    e.g. i have found and example and added a button as you will see when you run this code.I will click this button and it will export this line graph with extension .jpeg so that i will see it as an ordinary image at my home directory.
    Thanks for any helpful comment
    Regars,
    Serhat
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * @author led1433
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class LineGraph
        public static void main(String[] args)
            int x1 = 1000,y1 = 0;
            JFrame f = new JFrame();
            JButton exportToJPegButton = new JButton("EXPORT WITH JPEG");
            exportToJPegButton.setToolTipText("Exports Graph with extension *jpeg");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            exportToJPegButton.setSize(200,25);
            f.add(exportToJPegButton).setLocation(x1, y1);
            f.getContentPane().add(new GraphPanel());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class GraphPanel extends JPanel
        final int
            HPAD = 60,
            VPAD = 40;
        int[] data;
        Font font;
        public GraphPanel()
            data = new int[] {
                120, 190, 211, 75, 30, 290, 182, 65, 85, 120, 100, 101
            font = new Font("lucida sans regular", Font.PLAIN, 16);
            setBackground(Color.white);
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setFont(font);
            FontRenderContext frc = g2.getFontRenderContext();
            int w = getWidth();
            int h = getHeight();
            // scales
            float xInc = (w - HPAD - VPAD) / 11f;
            float yInc = (h - 2*VPAD) / 10f;
            int[] dataVals = getDataVals();
            float yScale = dataVals[2] / 10f;
            // ordinate
            g2.draw(new Line2D.Double(HPAD, VPAD, HPAD, h - VPAD));
            // tic marks
            float x1 = HPAD, y1 = VPAD, x2 = HPAD - 3, y2;
            for(int j = 0; j < 10; j++)
                g2.draw(new Line2D.Double(x1, y1, x2, y1));
                y1 += yInc;
            // labels
            String text; LineMetrics lm;
            float xs, ys, textWidth, height;
            for(int j = 0; j <= 10; j++)
                text = String.valueOf(dataVals[1] - (int)(j * yScale));
                textWidth = (float)font.getStringBounds(text, frc).getWidth();
                lm = font.getLineMetrics(text, frc);
                height = lm.getAscent();
                xs = HPAD - textWidth - 7;
                ys = VPAD + (j * yInc) + height/2;
                g2.drawString(text, xs, ys);
            // abcissa
            g2.draw(new Line2D.Double(HPAD, h - VPAD, w - VPAD, h - VPAD));
            // tic marks
            x1 = HPAD; y1 = h - VPAD; y2 = y1 + 3;
            for(int j = 0; j < 12; j++)
                g2.draw(new Line2D.Double(x1, y1, x1, y2));
                x1 += xInc;
            // labels
            ys = h - VPAD;
            for(int j = 0; j < 12; j++)
                text = String.valueOf(j + 1);
                textWidth = (float)font.getStringBounds(text, frc).getWidth();
                lm = font.getLineMetrics(text, frc);
                height = lm.getHeight();
                xs = HPAD + j * xInc - textWidth/2;
                g2.drawString(text, xs, ys + height);
            // plot data
            x1 = HPAD;
            yScale = (float)(h - 2*VPAD) / dataVals[2];
            for(int j = 0; j < data.length; j++)
                y1 = VPAD + (h - 2*VPAD) - (data[j] - dataVals[0]) * yScale;
                if(j > 0)
                    g2.draw(new Line2D.Double(x1, y1, x2, y2));
                x2 = x1;
                y2 = y1;
                x1 += xInc;
        private int[] getDataVals()
            int max = Integer.MIN_VALUE;
            int min = Integer.MAX_VALUE;
            for(int j = 0; j < data.length; j++)
                if(data[j] < min)
                    min = data[j];
                if(data[j] > max)
                    max = data[j];
            int span = max - min;
            return new int[] { min, max, span };
    }

    GraphPanel stays the same.
    public class JpegExport {
        public static void main(String[] args) {
            final GraphPanel graphPanel = new GraphPanel();
            JButton exportToJPegButton = new JButton("EXPORT WITH JPEG");
            exportToJPegButton.setToolTipText("Exports Graph with extension *jpeg");
            exportToJPegButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    exportToJpeg(graphPanel);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(exportToJPegButton, BorderLayout.NORTH);
            f.getContentPane().add(graphPanel, BorderLayout.CENTER);
            f.setSize(400, 400);
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        private static void exportToJpeg(GraphPanel graphPanel) {
            try {
                int w = graphPanel.getWidth();
                int h = graphPanel.getHeight();
                BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
                Graphics2D g2 = image.createGraphics();
                graphPanel.paint(g2);
                g2.dispose();
                ImageIO.write(image, "jpeg", new File("export.jpg"));
            } catch (IOException e) {
                e.printStackTrace();
    }

  • Formating Line thickness for lines in graphs with more than 6 lines.

    I have a line graph with more than 6 lines on it and I'm trying to make them all 1px.
    I can specify a line thickness for the first 6 lines but after that, the lines go back to the default thickness.
    Is it possible to change the default line thickness for a graph or format the line thickness for the 7th line and more?

    Good news! I found out how to format more than 6 lines of data and it's really simple to do!
    In the bottom left hand corner of the Format Chart Data, next to the Clear All button, is a button marked ADD.
    If you click this button, another row is added allowing you to format the 7th line of data.
    Click again and you get a row for the 8th line and keep clicking to add more lines.
    I'm making a note of it here in case it is useful to someone out there who searches on this problem in the future.
    Edited by: user2052587 on Jan 6, 2010 2:45 PM

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

Maybe you are looking for