Java and R/F Controlled DC motor

Hi guys.
I need some help. I am working on a physics poroject that interfaces a computer to a radio circuit that controls a DC motor on board a model toy car. The issue of the electronics has been solved. What remains is to be able to write the program for controlling the craft remotely from my PC. I have found Java to be more convenient to do that and thats why I have asked for your help.
What I want to know is
a) Is this viable?
b) If yes, how?
c) further, can it be programmed to control itself from point a to point B without human intervention, just using the terrain map fed into it?
Thanks a lot.

OK I prefer to help you from where you are. Where
Java is concerned I'm unclear where you are. So for
starters...
1 Have you connected/communicated with the control
interface yet?
2 Assuming you havn't written any Java for the App
yet then how about identifying a few objects in the
application.
Choices might be
The UI (Maybe One Screen with Buttons)
Each Button
A Map (Perhaps showing actual or estimated position)
A History (of Previous Commands/Responses)
A Command,
A Response,
A Status (or Position if you have GPS fitted)
Yes to the two questions above

Similar Messages

  • Stepper motor and loacell PID control - waveform motion.

    Hi, 
    Hardware :  cRio9073, C series module 9403 for stepper motor control and 9215 for load cell data acquisition. 
    I am trying to control a stepper motor in a closed feedback loop system with a load cell. The user would have to input two things : the maximum load applied and the frequency of the motion. At the moment I have it working in open loop controlling how many steps forwards or backwards it does and at what rate, with a display showing the load being applied.
    I am now looking to include the "PID.vi" built into labview into my existing code. I am using the load cell output as the 'process variable' and the 'output' of the PID will control the wait time between an ON and OFF signal to the motor (since I have to do the PWM in software as the 9403 module doesn't do it in hardware. Is this the right way to do it? ) 
    I wish to make the motor do a sinewave motion, thus the 'setpoint' of the PID would be dynamic. I have therefore linked the "Sinewave form.vi" (also built into labview) to the setpoint and the frequency of the "Sinewave form.vi" will be the user input for the frequency of the motor. However my problem lies with the 'Sampling info' of the "Sinewave form.vi" : Previously that is what controlled my number of steps, defining the maximum displacement of the motor. Now I need the peak of the generated sinewave to coincide with the maximum load applied defined by the user. How can I make it do that? 
    I have attached my existing code with how I have attached the PID.vi at the moment. 
    Many thanks for your help
    Lawrence 
    Attachments:
    PIDControl.vi ‏23 KB
    BIOGROWTH.lvproj ‏46 KB

    Hi Lawrence,
    Here is an example PID VI.
    Regards
    Rico P
    Attachments:
    General PID Simulator.vi ‏22 KB

  • Is to possible to control a motor by using fuzzy logic toolbox in Labview and motor interfaced with PIC microcontroller

    sir
     I am doing a  PG project on fuzy logic control of robotic arm,In this first i need to write a code in LABVIEW fuzzy toolbox and interface that that code with PIC where motor is connected and a tachogenerator should be connected to motor to send speed to LABVIEW through PIC microcontroller where ADC is inbuilt in it.
    Please help sir me whether  it is possible to do that ,if not tell me do i require any interfacing device  ,I am very new to labview 

    Now for this problem, Fuzzy can be easily used to control the plant. Here is the softwares that would help in this task:
    - LabVIEW Full Development System (FDS) 2009 or later - The is the LV version that allow you accessing the latest Fuzzy Logic develoment
    - LabVIEW PID and Fuzzy Logic Toolkit 2009 - This has PID and Fuzzy Logic functions available for you to develop your controller
    - LabVIEW Control Design and Simulation Module 2009 - This is a complete set of functions that allow you to simulate and develop advanced control applications. In your case, you probably will be using this module for simulation of the DC motor.
    Now, you also will need a way to read the encoder and control the voltage applied to the motor. You have several options from NI for that process. Probably a multi-function Board could help since they have digital counters and Analog Output signals. However, I can't recommend what would be best for this application, but the ideal platform is the CompactRIO platform for your application. They have a Real-Time controller and integrated Input/Output modules with signal conditioning that could allow you to directly drive the DC motor. I would advice to go to our webside (http://www.ni.com/compactrio/) and verify what this platform does. For this platform, you will also need the following sofrware:
    - LabVIEW Real-Time Module 2009 - Allow you to develop you application in Real-Time for deployment.
    Hope this helps.
    Barp - Control and Simulation Group - LabVIEW R&D - National Instruments

  • How to get return value from java and read by other application?

    i want to read return value from java and the other application read it.
    for example:
    public class test_return {
        test_return(){
        public int check(){
            return 1;
        public static void main(String args[]){
           new test_return().check();
    }from that class i make as jar file. How to read the return value (1) by other application?
    thx..

    If your installer is requiring some process it invokes to return a particular value on failure, then the installer is seriously broken. There are a bazillion commands your installer could invoke, and any of them could fail, which in turn could invalidate the entire install process, and any of them could return any value on failure. The only value that's consistent (in my experience) is that zero means success and non-zero means failure, with specific non-zero values being different in different programs.
    About the only control you have over the JVM's exit code is that if your main method completes without throwing an exception, the JVM will have an exit code of 0, and if main throws an exception (either explicitly or by not catching one thrown from below), it will be non-zero. I'm not even sure if that's guaranteed, but I would guess that's the case.
    EDIT: I'm kind of full of crap here. If you're writing the Java code, you can call System.exit(whatever). But nonetheless, if your installer requires certain exit codes from any app--java or otherwise--you have a problem.
    Edited by: jverd on Oct 29, 2009 1:27 AM

  • Problem with Java and Zip Files

    Hello there everyone. I have a problem with trying to zip up directories with empty folders in them. They zip fine with my code, but according to winzip, the number of files in the archive is incorrect. It's supposed to have a total of 288 files in it, but when it's zipped up, it only says 284. I mention specifically the "empty directories" note because the zipping works fine without empty folders.
    Below is the code for the zip method:
    public static void zip(File[] list, File zipfile, File zipRoot)
         throws IOException {
          if (!zipfile.exists()) {
                   zipfile.createNewFile();
              else if (!zipfile.isFile()) {
                   throw new IOException("The zip file, " + zipfile.getAbsolutePath()
                             + " is not a file.");
              if (list.length == 0) {
                  LOG.error("The list of files to zip up is empty.");
              for (int i = 0; i < list.length; i++) {
                   if (!list.exists()) {
                        throw new IOException("The file or directory, " + list[i].getAbsolutePath()
                                  + " does not exist.");
              FileOutputStream fos = new FileOutputStream(zipfile);
              ZipOutputStream zos = new ZipOutputStream(fos);
              for (int i = 0; i < list.length; i++) {
                   if (LOG.isDebugEnabled())
                        LOG.debug(i + ": " + list[i].getName());
                   String entryName = getRelativeName(list[i], zipRoot);
                   if (list[i].isDirectory()){
                        if (list[i].listFiles().length == 0){
                             ZipEntry entry = new ZipEntry(entryName + "/");
                             zos.putNextEntry(entry);
                   else {
                        ZipEntry ze = new ZipEntry(entryName);
                        zos.putNextEntry(ze);
                        byte[] buffer = new byte[8096];
                        FileInputStream fis = new FileInputStream(list[i]);
                        int read = 0;
                        read = fis.read(buffer);
                        if (LOG.isDebugEnabled())
                        LOG.debug("\tFound " + read + " bytes.");
                        if (read == -1){
                             //empty file, but add it for preservation.
                             //zos.write(buffer,0,0);
                        while (read != -1) {
                             zos.write(buffer, 0, read);
                             read = fis.read(buffer);
                        fis.close();
                        zos.closeEntry();
              zos.close();
    The files look like they're there, but I need the system to be able to determine the number correctly. 
    Here's the interesting thing:  It zips the files, and then when I use the size() method for zip files in java, it says 284 files.  But when I unzip, it says 288 again.  It's like there's files missing when compressed, but when decompressed, they return.  Note that the files are actually there.  If I open the archive in a third party app such as Winzip AND Winrar AND IZarc, they all show 288 files.  Any idea what would make the number of files appear incorrectly in a zip file when zipped by java with the code above?  Thanks in advance.
    - Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    I figured out the problem. When zipping files in windows using winzip, it doesn't explicitly count folders as a "file/folder" as a file in itself. It will create the folders for files to go in, but the folder itself will not be 'counted' when you query the info of the file itself. You have more control of the zip file in java, and can count the folder as a file or not.

  • I'm new to Java and can't get javac command working

    Ok first of all hello ( i'm new to the forum ), second i'm reading a book about Java and im trying to compile a sample code from the book, but javac command gained life and it's against me. So the book i'm reading is Sams Teach Yourself Java in 21 Days (YAY), and the code i want to compile is an application that works with another bit of code that mimics what a robot could do inside a volcano. So the Volcano program code is the following ( i'll post the robot code at the end of the post):
    1: class VolcanoApp {
    2: public static void main(String[] arguments) {
    3: VolcanoRobot dante = new VolcanoRobot();
    4: dante.status = ?exploring?;
    5: dante.speed = 2;
    6: dante.temperature = 510;
    7:
    8: dante.showAttributes();
    9: System.out.println(?Increasing speed to 3.?);
    10: dante.speed = 3;
    11: dante.showAttributes();
    12: System.out.println(?Changing temperature to 670.?);
    13: dante.temperature = 670;
    14: dante.showAttributes();
    15: System.out.println(?Checking the temperature.?);
    16: dante.checkTemperature();
    17: dante.showAttributes();
    18: }
    19: }
    Ignore the numbers they are used for explaining stuff in the book, and i din't copy the indentation.
    So what i do is that i creat a file with notepad ( no fancy stuff only plain old notepad ) and i copy this code, remove the numbers and make the indents.
    After that i save as .txt file with the apropriate name ( i know it's case sensitive ). After that i open command prompt and write:
    javac VolcanoApp.java
    And it tells me that "javac is not recognized as an internal or external command operable program or batch file".
    I managed to solve that by going to the control panel and by adding to the system variables for my user in the path variable this :
    ;C:\JAVAJDK\bin
    ( C:\JAVAJDK is where JDK is installed)
    And then i modified the system variables like this:
    In the CLASSPATH i entered this .;%JAVA_HOME%\lib\tools.jar
    In JAVA_HOME i entered this C:\JAVAJDK
    Setting the variables like this made the javac error go away but now when i write in command line
    javac VolcanoApp.java
    It gives me this error
    javac: file not found : VolcanoApp.java
    Usage: javac options source files
    use -help for a list of possible options
    And then i read that i can drop my java file directly in the javac file. So i did.
    When i drop my VolcanoApp.java in the javac file it open a command line window and writes a bunch of stuff in like a milisecond and shuts down. And no file is created.
    I wanted to know what was writen in that window so i did it again and took a print screen and pasted it on paint ( it writed so much text that i only got a little bit but enough to see what hapend)
    I read it and in the print screen it said it had 15 errors ( so far ) and then it point the errors with little arrows and there were characters that weren't present in the original code.
    What hapend the compiler added wierd letters?
    SO, my real question is, how the heck do i get javac working and compiling stuff properly?
    Plz help i'm getting mad at this! ; (
    And the code for the "robot":
    1: class VolcanoRobot {
    2: String status;
    3: int speed;
    4: float temperature;
    5:
    6: void checkTemperature() {
    7: if (temperature > 660) {
    8: status = ?returning home?;
    9: speed = 5;
    10: }
    11: }
    12:
    13: void showAttributes() {
    14: System.out.println(?Status: ? + status);
    15: System.out.println(?Speed: ? + speed);
    16: System.out.println(?Temperature: ? + temperature);
    17: }
    18: }
    Again no indents and ignore the numbers. In the book it only said to compile the VolcanoApp.java , and not the VolcanoRobot.java
    Edit:
    I'm using Windows Vista Home Premium 32 bit.
    Edited by: BBlop on Dec 13, 2009 11:29 AM

    guess what it says java file. So yes i'm sure. Sarcasm. Not the best way to encourage a total stranger to help you. Then there's
    Sorry if i wasn't more clear but was that response needed?No it wasn't needed, but I'm not the one asking for help so I have the luxury of not worrying too much about it. It's extremely frustrating trying to drag relevant information out of someone, and makes one less inclined to bother.
    Anyways, there's still nothing in this thread that actually explicitly says "there is a file called VolcanoApp.java in the directory where I'm running javac from" and I really can't be bothered banging my head against the wall any longer. You've made a silly mistake, or a false assumption. We all do it from time to time. My advice is, take a break, go for a walk and re-visit this in a while. You'll probably spot the mistake right away.

  • [Java and all else] How do you document DB design?

    Hello,
    Although most of the technical choices are explicit in SQL (UniqueKey & ForeignKey constraints, indexes,...), the semantics of the data columns and their constraints seem better served as plain human-readable comments ("ID column: identifies the plane copy; 6 figures are enough as we don't expect to sell more than 1 million planes in a foreseeable future...").
    In my current system, (EJB-based, but the DB schema is not created by the JPA-compliant ORM, but via SQL scripts), I see the following ways to write and maintain this documentation:
    - SQL comments in the schema creation and patch scripts
    - Javadoc comments in the Java source of the Entity classes.
    - UML notes in UML diagrams(1)
    - external "Architecture and design" document.
    All 4 of them are used, sometimes inconsistently, for various parts of the design choices; I mean, the docs do not contradict themselves (not yet, but it's a mere question of time), but some tables are commented in SQL scripts, others are in design docs, and the details for some columns are in entity javadocs. Although each developer may find it handier to "write" the doc via his preferred medium, it becomes increasingly difficult to "maintain" theoverall documentation.
    Our current situation is that most of the project team members are Java developers, so it would probably be better accepted and served if we standardized that we document DB tables and columns in Java source, but I am worried that:
    - someone else pouring over our DB (ex: DBA helping us to optimize things, or other team developping a data-mining tool to leverage the historical data in DB) may not be as comfortable with Java
    - this may not cover all design choices of the DB schema:
    - - - - first, although that is the case currently, in the future there might not be a 100% 1-1 mapping between e.g. each entity class and a DB table. Maybe some columns will not need to be mapped anymore,...
    - - - - second, I fear some DB constructs are not amenable to Java counterparts; no accurate idea there, I'm not an SQL nor JPA expert, but I presume Indexes, table partitioning, tablespaces, for example (yes, the DBMS is Oracle :o) are not taken into account in JPA mapping.
    And if we document those choices at the SQL level (my preferred idea so far), this will gradually make the javadocs in the entities obsolete, or removed altogether, and that will make future maintenance of the Java source risky.
    How do you document your DB design in general?
    Do you have specific advices for my case?
    Thanks in advance,
    J.
    (1) Just for the record, here are a few posts that refer to modelling the DB in UML:
    [A post on this forum highlighting that UML 1.4 standardizes a notation for RDB modelling|http://forums.sun.com/thread.jspa?messageID=1383724#1383724]
    [A DB modelling tutorial|http://www.tomjewett.com/dbdesign/dbdesign.php] (not sure whether it leverages the standard mentioned above :o)
    P.S.: "Java and all else" as in, damn, I'd love to use the familiar JDC forums and people to discuss not only Java-related issues, but also [all other things that surround Java|http://forums.sun.com/thread.jspa?threadID=5422264&tstart=0] (other technologies, processes, people) and enable to make workable systems out of Java code.

    jduprez wrote:
    Thank you again.
    A couple more questions:
    2. Table, and proc dictionary maintained as one or more text files. Those files and schema are all in source control.Do you mean, a proprietary text format (a la tabledesign.txt), or +.sql+ source files? Again, you seem to suggest the scehma info is present in two locations.I didn't say two locations unless you meant files. Then yes.Yes I meant two files. I trust the team to get the doc file lagging a few revisions behind the SQL file, and to correct that I would have to include one more step in the review process (e.g. "review CM actions to check that the doc file is updated consistently with the SQL source").
    The tool I wrote would throw errors if the comment file didn't match the schema. And if comments were not provided. That of course doesn't stop someone from documenting a table with "a table".
    You can of course keep the addtional info as special comments in the SQL, but when I did this, and even in retrospect, it seems better and perhaps easier to keep them seperate. I have done special comments in SQL before and it seems a bit of a kluge but you do have the single source. But in that case I was the only one maintaining it too.What do you mean by "special"?For code generation I have a schema file with the following (pseudo sql.)
        create mytable
           mytable_id int,
           column_foo varchar(10);
           column_fum varchar(20)
            -- Query: for_a_query (column_foo, column_fum)
        )The generator consumes the schema and generates the standard CRUD which would include a query based on the primary key.
    The above comment is used to provide an additional query where the proc is named 'for_a_query' (munged with table name) and takes two parameters (column_foo, column_fum) whose type/name matches those of the table.
    If we don't try to generate a browseable HTML out of the schema (although the idea is appealing, I don't have the resource to make such a tool), do you see anything kludgy in maintaining SQL comments interpersed within DDL code?
    Of course that is doable.

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • JMF example AVTransmit2.java and AVReceive2.java is not working for me?

    Dear all
    I want to develop a class which will capture my voice data from my microphone and then will send it to the sound system of my PC following RTP protocol. For that I tried both AVTransmit2.java and AVReceive2.java class from http://java.sun.com/products/java-media/jmf/2.1.1/solutions/ but they just not doing it how I want, I am sure I am making some mistake, please let me know.
    Moreover, when I try AudioBufferControl.java from the above link it is doing it for me what I want, let me hear what I am saying to my microphone, but it is using "javasound", I think that is not using RTP. Again if I use JMStudio even then I can hear my voice from microphone to sound system.
    Pls can you help me write a class and let me know what I am doing wrong!
    With care
    Arif.

    Try to follow these steps:
    1. make sure db tables have the pk and fk's pre-existing.
    2. create a brand new workspace
    a) Select New Business Components: business components from tables.
    b) Select these two tables
    c) on the define view pages (step 2), push both objects over, then just click [finish]
    3. Open the ViewController Node
    a) expand Web Content, then WEB-INF
    b) double click struts-config.xml to open it
    4. In Struts-config.xml
    a) drop a datapage, name it BrowseRoster, double click it, then drag and drop the Roster table from your DataControl Palette, as a READ only table.
    b) insert a column as the first cell in the table and drop the operation: setCurrentRowWithKey as a find Row link. This should create the ANCHOR link, i.e.
    ">Show Emps</a>
    c) create another page, EditOneEmp, double click to open that, and EXPAND the Roster table in the Data Control Palette. Drop the Emp table on this as an input form.
    d) Now go back to the STruts-config.xml and draw a forward from the browse to the detail and name the forward setCurrentRowWithKey.
    e) run the browse page from the struts-config.xml file (right click and run). Click on the hyperlink and you should go to the detail input page.
    You may have messed up in Step 4(c). Also, when you run into these situations, as we've run into this NUMEROUS times at work, follow through the examine again, IN A NEW WORKSPACE, and redo each and every step. You must be EXACT or things don't work.
    Let me know if it works out.
    Thanks.

  • Verifying .java and .class files match

    I have a bit of a strange situation in a team-working environment where many developers copy code to a production server. None of this code is in a Version Control System and I have been given the task of getting it into one (I've chosen Subversion, but that isnt important)
    The problem is, its not as simple as doing a full commit of the production server because developers may have copied edited .class files onto the server, but not copied edited .java (therefore the .java file is not the same as the .class file)
    Because the server has hundreds (if not thousands) or java and class files, I cant just decompile each of the class files and manually see if they match the java files, so I'm asking, is there a tool that can verify a java file matches a class file of the same name in terms of version (or if not is there an easier way of doing it than the decompile method)?
    Thanks in advance

    Years ago I had to do something very much like this...and now I'm trying to recall how we did it (and for that matter whether it worked)...and I'm having trouble recalling. Ah, that's what happens when you read forums out of insomnia.
    Of course, you can do a baseline check by just checking the file timestamps. Also instead of decompiling the class files you can try re-compiling the source code, and then generating checksums on both class files to see if they're the same.
    You might be able to use BCEL (http://jakarta.apache.org/bcel/) to extract some useful information out of the class files. As I recall I tried this but the data wasn't useful for this kind of project, but maybe I'm misremembering. It's worth looking into.

  • JRE 1.4.2_05 installed BUT no Java logo in the Control Panel

    Hi, I have just installed JRE 1.4.2_05 on my computer using a manual download. However, I still cannot run applets after the installation finished. I checked Add/Remove in Control Panel to make sure that it was in fact installed, and it was. When I tried to enable and configure JRE, I could not find the coffee cup icon in control panel.
    Could someone please tell me what problem I'm having, and what I can do to solve it? I'm running Windows XP Professional (SP1) on an AMD Athlon 800 MHz computer.
    Thank You

    I removed the Java and also went into the registry and installer files to clean it out. I tried to install the SDK, but a warning window pops up mid way that says 'Java(TM) Update (1.4.2_05-b04 cannot be installed because the Java(TM) Virtual Machine is still running. Please close all running Java(TM) applications, especially browsers.'
    I had all the browsers closed and didn't have any other applications open so I don't know why this message pops up. I also don't understand how I could have Java Virtual Machine if I haven't installed it yet.
    Please Help. Thank You

  • Java/java and java/c++ connection

    Hello,
    I'm new in distributed programming. Now I have to make a java application which can communicate with an other java and a c++ application. All of the 3 applications have to be made by me so I can controll all of the codes. All applications will run on the same machine.
    The main java application only have to send an SQL statement to the 2. java and to the c++ application. The 2. java and the c++ application have to send back only a resultset.
    Maybe it is not the best architecture, but it must do it in this way.
    How can I start with it?
    Any tutorial/example?

    There is a "custom networking" tutorial on Sun's site. Or google for java socket tutorial for some others. The tutorials have sample servers and clients, grab one and extend it to build your own protocol.
    I'd try to make the protocol line-oriented if possible (send text lines instead of "binary" data); avoids byte order and related problems, easier for inter-language work, and makes debugging easier.

  • I "allowed" Java Deployment Toolkit, it made me upgrade java, and now there are ads everywhere

    I was doing homework on masteringgenetics and there was this box in the top left hand corner that said to allow java deployment toolkit because some of the content on the website needed it so I clicked "always allow". This then took me to java's website to update java and I was gullible so I did. Now there are random ads on most websites I go to and if I stay on there it takes me to some random website. I've tried disabling all plugins, uninstalling java, uninstalling then reinstalling firefox, but it still happened. It doesn't happen when I use google chrome so I think it's a firefox thing (actually now it's happening on chrome too).

    Oracle may be bundling other software with a Java update, so always be careful when installing or updating programs like Java and Flash and look carefully for any check boxes to installs such unwanted extras.
    You can check in "Windows Control Panel > Programs" for recently installed programs (sort by installed time) to see if any suspicious software shows up.

  • ANNOUNCE: JRockit R27.1 and JRockit Mission Control 2.0 released!

    New versions of JRockit and JRockit Mission Control are now available!
    The following new products have been released:
    - JRockit 1.4.2 R27.1
    - JRockit 5.0 R27.1
    - JRockit 6 R27.1 TECHNOLOGY PREVIEW
    - JRockit Mission Control 2.0
    JROCKIT R27.1
    =============
    The JRockit release is a major update from the previous version (R26.4) and includes a large set of enhancements including:
    - A completely new version of JRockit Mission Control (see separate section below)
    - Improved Monitoring and Diagnostics features
    - Improved Supportability features
    - Connect-on-Demand capability for JVMTI and JMX (JRockit 5.0 and 6)
    - A new "Diagnostics Guide" with troubleshooting and performance tuning tips
    - Full support for IPv6 on all platforms
    - Expanded support for Solaris/SPARC
    - Enhanced performance
    The 1.4.2 and 5.0 versions of JRockit R27.1 are based on Sun 1.4.2_12 and 1.5.0_08 respectively, and contain all enhancements and fixes made to the Java class libraries from those Sun releases.
    JRockit 6 R27.1 is a tech preview based on 1.6.0-rc-b97 from Sun. The public GA of JRockit 6 is expected to be in the first half of 2007, and will bring a larger set of performance enhancements. For feedback on this release, please use our user forums at forums.bea.com/bea/forum.jspa?forumID=2009.
    The connect-on-demand capabilities in JRockit 5.0 and 6 are similar to those provided in Sun Java SE 6 and enable developers to connect to locally running JRockit processes without being forced to start JRockit with specific command line options. For JMX there is also an autodiscovery mechanism for remote connections which is very useful in development environments.
    For Solaris/SPARC we have added a JRockit 1.4.2 version, which in internal measurements has shown to be very competetive to Sun's 1.4.2 implementation on Solaris/SPARC. Definitely worth checking out! (Note: WLS 8.1 does not officially support running on this JRockit version.)
    On the performance side, there are enhancements for WLS applications (10-15%), memory-intensive applications (10-15%) and improved out-of-the-box performance (up to 25%), all based on internal measurements.
    Release notes:
    http://e-docs.bea.com/jrockit/releases/R27/relnotes/r27_notes.html
    Docs home:
    http://e-docs.bea.com/jrockit/webdocs/index.html
    NEW! Diagnostics Guide:
    http://e-docs.bea.com/jrockit/geninfo/diagnos/index.html
    Download pages:
    http://commerce.bea.com/products/weblogicjrockit/jrockit_prod_fam.jsp
    JROCKIT MISSION CONTROL 2.0
    ===========================
    Together with JRockit R27.1 we are releasing a completely new version of JRockit Mission Control. The separate tools in JMC 1.0 have been integrated into one single GUI based on Eclipse RCP, which means that any user of the Eclipse IDE should feel at home. All tools features from Mission Control 1.0 are of course still available, and we continue our drive towards exposing all data about your Java application that JRockit has access to. You will also find a large set of usability improvements, including:
    - Drag-and-drop support
    - Configurable views
    - Online and (for the Runtime Analyzer) context-sensitive help
    - Connect-on-demand to local JVMs and autodiscover remote JVMs
    One particular area of interest is GC profiling, where much more detailed metrics are available, which can help drill down into the causes for long GC pause times and spikes.
    Release notes:
    http://edocs.bea.com/jrockit/tools/relnotestools/relnotestools2.html
    There is no separate download for JRockit Mission Control, instead it is included in the JRockit R27.1 JDK downloads for Windows and Linux/x86. To start using the tools, install JRockit and select JRockit Mission Control from the Windows Start menu, or launch the $JROCKIT_HOME/bin/jrmc executable.
    Documentation is bundled with the installation and available from the Help menu.
    If you have any questions, comments or concerns, please visit our user forums at forums.bea.com/bea/forum.jspa?forumID=2009.
    Happy holidays!
    Henrik Stahl
    Product Manager

    Hi,
    I have tried and installed the version R27.1.0-109-73164-1.5.0_08-20061129-1415-linux-x86_64 on our 16GB RAM
    with 4 dual-core Opteron processor.
    JAVA_OPTS="-server -Xms800M -Xmx4000M -Djava.net.preferIPv4Stack=true -Xpausetarget=2500ms -Xverboselog:/var/log/javavm.log -Xverbose:gc,memory -Xverbosetimestamp -Xgcpause -Xgcreport -Xstrictfp -XXexitOnOutOfMemory -XXdumpFullState -XXstaticCompaction -XXcompactRatio:10 "
    After 5 secs of jvm startup I receive the follwing trace (without any DUMP-file):
    java.lang.OutOfMemoryError: class allocation JVM@check_alloc (src/jvm/model/classload/classalloc.c:1
    22). 42216 bytes requested. Java heapsize=838860800, paged memory=0/0.
    Probable cause: Too large java heap setting.
    Try to reduce the Java heap size using -Xmx:<size> (e.g. "-Xmx128m")
    at java/lang/Class.getDeclaredMethods0(Z)[Ljava/lang/reflect/Method;(Native Method)
        at java/lang/Class.privateGetDeclaredMethods(Class.java:2395)
        at java/lang/Class.getMethod0(Class.java:2642)
        at java/lang/Class.getMethod(Class.java:1579)
        at org/apache/xalan/processor/XSLTAttributeDef.setAttrValue(XSLTAttributeDef.java:1611)
        at org/apache/xalan/processor/XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProces
    sor.java:338)
        at org/apache/xalan/processor/XSLTElementProcessor.setPropertiesFromAttributes(XSLTElementProces
    sor.java:263)
        at org/apache/xalan/processor/ProcessorTemplateElem.startElement(ProcessorTemplateElem.java:76)
        at org/apache/xalan/processor/StylesheetHandler.startElement(StylesheetHandler.java:623)
        at org/apache/xerces/parsers/AbstractSAXParser.startElement(Lorg/apache/xerces/xni/QName;Lorg/ap
    ache/xerces/xni/XMLAttributes;Lorg/apache/xerces/xni/Augmentations;)V(Unknown Source)
        at org/apache/xerces/impl/XMLNSDocumentScannerImpl.scanStartElement()Z(Unknown Source)
        at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Z)Z(
    Unknown Source)
        at org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.scanDocument(Z)Z(Unknown Source)
        at org/apache/xerces/parsers/XML11Configuration.parse(Z)Z(Unknown Source)
        at org/apache/xerces/parsers/XML11Configuration.parse(Lorg/apache/xerces/xni/parser/XMLInputSour
    ce;)V(Unknown Source)
        at org/apache/xerces/parsers/XMLParser.parse(Lorg/apache/xerces/xni/parser/XMLInputSource;)V(Unk
    nown Source)
        at org/apache/xerces/parsers/AbstractSAXParser.parse(Lorg/xml/sax/InputSource;)V(Unknown Source)
        at org/apache/xerces/jaxp/SAXParserImpl$JAXPSAXParser.parse(Lorg/xml/sax/InputSource;)V(Unknown
    Source)
        at org/apache/xalan/processor/TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:92
    0)
        at org/jboss/deployment/XSLSubDeployer.createService(XSLSubDeployer.java:141)
        at org/jboss/system/ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
        at org/jboss/system/ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
        at sun/reflect/GeneratedMethodAccessor2.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
    Object;(Unknown Source)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:585)
        at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
        at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org/jboss/system/ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.create()V(Unknown Source)
        at org/jboss/system/ServiceController.create(ServiceController.java:330)
        at org/jboss/system/ServiceController.create(ServiceController.java:273)
        at sun/reflect/GeneratedMethodAccessor4.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
    Object;(Unknown Source)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:585)
        at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
        at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.create(Ljavax/management/ObjectName;)V(Unknown Source)
        at org/jboss/deployment/SARDeployer.create(SARDeployer.java:258)
        at org/jboss/deployment/MainDeployer.create(MainDeployer.java:953)
        at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:807)
        at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:771)
        at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
        at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava
    /lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Lja
    va/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:585)
        at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
        at org/jboss/mx/interceptor/AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
        at org/jboss/mx/interceptor/ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor
    .java:142)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
        at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy8.deploy(Ljava/net/URL;)V(Unknown Source)
        at org/jboss/deployment/scanner/URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
        at org/jboss/deployment/scanner/URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
        at org/jboss/deployment/scanner/AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymen
    tScanner.java:263)
        at org/jboss/deployment/scanner/AbstractDeploymentScanner.startService(AbstractDeploymentScanner
    .java:336)
        at org/jboss/system/ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at org/jboss/system/ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun/reflect/GeneratedMethodAccessor2.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
    Object;(Unknown Source)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:585)
        at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
        at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org/jboss/system/ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start()V(Unknown Source)
        at org/jboss/system/ServiceController.start(ServiceController.java:417)
        at sun/reflect/GeneratedMethodAccessor9.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/
    Object;(Unknown Source)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:585)
        at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:86)
        at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Ljavax/management/ObjectName;)V(Unknown Source)
        at org/jboss/deployment/SARDeployer.start(SARDeployer.java:302)
        at org/jboss/deployment/MainDeployer.start(MainDeployer.java:1007)
        at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:808)
        at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:771)
        at org/jboss/deployment/MainDeployer.deploy(MainDeployer.java:755)
        at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
        at jrockit/vm/Reflect.invokeMethod(Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava
    /lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Lja
    va/lang/Object;)Ljava/lang/Object;(Native Method)
        at sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java/lang/reflect/Method.invoke(Method.java:585)
        at org/jboss/mx/interceptor/ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org/jboss/mx/server/Invocation.dispatch(Invocation.java:94)
        at org/jboss/mx/interceptor/AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
        at org/jboss/mx/interceptor/ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor
    .java:142)
        at org/jboss/mx/server/Invocation.invoke(Invocation.java:88)
        at org/jboss/mx/server/AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org/jboss/mx/server/MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org/jboss/mx/util/MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Ljava/lang/String;)V(Unknown Source)
        at org/jboss/system/server/ServerImpl.doStart(ServerImpl.java:482)
        at org/jboss/system/server/ServerImpl.start(ServerImpl.java:362)
        at org/jboss/Main.boot(Main.java:200)
        at org/jboss/Main$1.run(Main.java:464)
        at java/lang/Thread.run(Thread.java:595)
        at jrockit/vm/RNI.c2java(JJJJ)V(Native Method)
        -- end of trace
    JRockit aborted: Out of memory (68)
    Failed to acquire native memory. Try reducing Java heap size using -Xmx:<size> (i.e "-Xmx16m")
    If I change the -Xmx parameter from -Xmx4000M to -Xmx3000M
    than it didn't work, but
    if I change the -Xmx parameter from -Xmx4000M to -Xmx2900M
    than it works.
    (The hint to change -Xmx to -Xmx16m is great on a 16GB RAM machine,.. :-) )
    Any ideas?
    How can I use 4GB java-heap ?
    Greetings Martin                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to use sinewave to controll my motor run automatically.

    Hello
    I am now tring to use a waveform(sinwave ) to control my motor run automatically .I am using  labview2010 and EPOS50/5. Is there anyone can give me your suggestion? Thanks in advance.The attachment is the program for my epos.
    Attachments:
    epos and sinewaveform.vi ‏34 KB

    PS: My program for epos can work, but I don not know how to combine the sinewave program with the epos program to make motor run automatically.
    Thanks your suggestion in advance.

Maybe you are looking for

  • Disk Repair Needed?

    I have a Macbook Pro, 500 GB Hard drive, core i7 Processor. I was trying to delete old backups from one of my other computers in order to make space for new backups on my MBP. I dragged the old backups to the trash, because I did not want to reformat

  • How can I forward a message without downloading it ?

    I'm trying to forward a message on messages counter change event by adding a listener on my INBOX folder: folder.addMessageCountListener(new MessageCountAdapter()   {           public void messagesAdded(MessageCountEvent ev) {               Message[]

  • Help in sending email with attachment

    Hi Experts, I have developed a code which takes a pc file and change gets its binary content. later I am using the email send from class CL_BCS to send the mail.Its working very fine when I am executing it my Id, however it fails when I am using it a

  • Is there an app that produces airplay on older ipods?

    have purchased a soundtouch system and need to use airplay to connect my ipod.  Is there an app that will do this?  The ipod touch apparently is too old to have airplay on it.

  • I get 403 errors EVERY time I try to download something.

    I was just looking for mods for Oblivion on tesnexus when I suddenly couldn't download anything anymore. I had been downloading things all day, but nothing that would change anything this drastically. I went to other sites and found out I couldn't do