Reading and writin to serial and parallel

Hi, is it possible to read and write from the serial and parallel portsin the same pfogram??

Yes, But in J2ME I dont think it is possible.
Maybe you download some APIs from third party.

Similar Messages

  • [svn:osmf:] 13042: Fix for FM-287, reinstating the main sample ( that uses serial and parallel composition), and making another pass at  getting all the changed trait methods mapped correctly back- and forth between JS and Flash .

    Revision: 13042
    Revision: 13042
    Author:   [email protected]
    Date:     2009-12-17 03:45:27 -0800 (Thu, 17 Dec 2009)
    Log Message:
    Fix for FM-287, reinstating the main sample (that uses serial and parallel composition), and making another pass at  getting all the changed trait methods mapped correctly back- and forth between JS and Flash.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-287
    Modified Paths:
        osmf/trunk/apps/samples/framework/HTMLGatewaySample/HTMLGatewaySample.as
        osmf/trunk/apps/samples/framework/HTMLGatewaySample/html-template/index.template.html
        osmf/trunk/framework/MediaFramework/org/osmf/external/HTMLElement.as
        osmf/trunk/framework/MediaFramework/org/osmf/gateways/HTMLGateway.as

    Perre wrote:I'm used to being able to pick one or a couple of songs and then adding it a specified playlist. Is this impossible in sonata?
    It's clearly not impossible, just different than you expect. Create your playlist as you want it to appear in the Current tab (meaning don't dump every single song from your library in there, just the ones you want) and then save the playlist.
    Perre wrote:And if I try to play the m3u file created (the one with every song listed) through freevo I get a message that the directory is empty. What am I doing wrong??
    Look at save_absolute_paths_in_playlists in your mpd.conf.

  • Is there a docking station for the HP Compaq 625 with serial and parallel ports?

    Hi
    I am looking for a docking station with at least 4 USB ports plus serial and parallel ports for the HP Compaq 625 running Windows 7.
    If not, what are the cheapest laptops for which I could find such a docking station?
    Thanks
    soVision

    The TravelSound ZEN X-fi looks like is might work, but it says nothing that it will. If it works I will buy it in second.
    Look carefully to Creative's documentation for this docking station. It is not compatible with the X-Fi2 or X-Fi Style.

  • Problem with yosemite and parallels

    Since I have upgraded to yosemite and parallels 10 my windows 7 has been using a lot of CPU resources.  Windows 7 runs very slow and it been using almost constantly 100% of one of the quads resources.  This just started to happen when I upgraded, because I did not have this problem with Mavericks and Parallels 9 or 10. I have an iMac 2011, 8GB of Ram.  Has anybody had this issue.  Thanks.

    Thanks for the response.  I was searching on a parallels forum website and found the following:
    As from the symptoms, the issue can lie in NVRAM preferences of your particular Mac.
    Please do the following to solve:
    open Terminal application on Mac (Applications/Terminal.app)
    please type this command (you may copy-paste it to the terminal from this message):
    sudo nvram boot-args="debug=0xd4e"
    Hit Enter.
    You will be prompted to enter Mac user password. Please type it and hit Enter.
    Note: you won't see what you are typing, just type and hit Enter. If you don't have Mac user password, please create a temporary one.
    Then you may restart your Mac and the issue should be solved.
    If not - please reply me here and I'll create a ticket for you in Support.
    I did the above and it seemed to correct the problem.

  • How to read and display a signal from my PIC Microcontr​oller onto Labview?

    Hi,
    I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
    How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/007​74a.pdf
    Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
    1) Open a New VI and used the Instrument I/O(Read & Display) template?
    2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
    3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
    4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
    Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
    Thank You
    Best regards,
    Ashwin
    Ashwin Kumar Mansukhani
    Attachments:
    Getting Started with Labview.pdf ‏901 KB

    Hi Ashwin,
    It is a good idea to first be able to communicate with the microcontroller using some sort of serial communication software such as "HyperTerminal" or "Procomm", etc. Refer to MicroChip's recommendations on this.
    Once that works, then you are ready to use LabView.
    Here is a link which covers many aspects of serial communication. Link - click here
    You probably received a development kit. They usually have a readily available interface. It's been a long time since I played with the PIC, but I seem to remember that you need to program the serial communication driver (as well as at least a bootloader) to get the serial communication going. The driver contains the necessary protocols so that you PC can have a machine conversation with the target (PIC).
    It sounds like a fun & interesting project. Please avoid to have replies to your personal email. By having the answers posted to this thread, you will get much more support and advice.
    Have fun,
    JLV

  • How to read and display a signal from my PIC Microcontroller onto Labview

    Hi,
    I am doing a project on a Pulse Oximeter and i am trying to read and display the signal from my PIC Microcontroller on Labview? How do i go about doing it? I am using the PIC16F877 and also making use of the USART?
    How do i implement and initialise the USART in PIC16? What are the steps to be taken, please guide me through the process? The link provides information regarding the USART connection, initialisting and stuff? Is it correct to use these codes in my program?Link: http://ww1.microchip.com/downloads/en/AppNotes/00774a.pdf
    Also, i am using the RS232 serial interface to connect to the PC? The connector i am using is the DB9 Connector. Which template and VI can i use? Am i supposed to use the NI-DAQmx and VISA? Also, for my USART connection, i am using the MAX232 Driver which is applicable for my application as i am working with +5V. So far, i have been reading and trying out on Labview and the steps i have taken are:
    1) Open a New VI and used the Instrument I/O(Read & Display) template?
    2) How do i configure the Instrument I/O Assistant Express VI to read the info from my device connected to COM1?
    3) I was reading the Labview Manual, 'Getting Started with Labview' and i was following the steps under Page 55, Communicating with an Instrument. Am i on the right track?
    4) How do i check and make sure that the port settings of the I/O Assistant and my PIC Micro Match
    Please help me out and guide me through the process. I am student at a polytechnic and i am very new to Labview and the software is used as a development tool for the project. I have a deadline to meet and i hope i can get a response as fast as possible. Your help will be kindly and greatly appreciated. I hope to hear from you guys soon.You can e-mail me all your answers at [email protected]
    Thank You
    Best regards,
    Ashwin
    Ashwin Kumar Mansukhani
    Attachments:
    Getting Started with Labview.pdf ‏901 KB

    Hi Ashwin,
    I am not familiar with the PIC Microcontrollers, but I am assuming you mean that you have the microcontroller sending out serial data that you want to read on another computer with LabVIEW. Please let me know if this is incorrect.
    What type of data is coming out of the serial port? Is it ASCII, or binary? The reason I ask this is that the serial communication in LabVIEW is done through a protocol called VISA, which uses ASCII data to send and receive. You can later convert this data into whatever form you need, but this is what it is designed to read and write.
    You can check the settings such as baud rate and data bits in a configuration utility called Measurement and Automation Explorer, or MAX. When you open up the MAX interface, you can expand the Devices and Interfaces entry on the left, and then expand the Ports entry to see your serial port. When you highlight this port, select the Port Settings tab at the bottom of the window, and you can see what the current settings are, and change them if you need to. You can also set these parameters in LabVIEW using the VISA Configure Serial Port VI.
    You can also test communication in MAX by right clicking on the correct port and choosing Open VISA Session. Then choose the Basic I/O light blue tab, and then go to the Read tab. When you click execute, it should read in what is coming from the serial port. This will allow you to verify that the correct information is coming in before even trying to acquire the data in the LabVIEW environment.
    In LabVIEW, the best resource to use the Basic Serial Write and Read example program that ships with LabVIEW. By examining the block diagram of this program, you will be able to see the basic programming flow of serial communication in LabVIEW.
    I hope this information was helpful! Please let us know if there's anything else we can help with.
    john
    Applications Engineer

  • Can Bootcamp and Parallels share the same Windows applications and data?

    I'm looking at getting an Intel iMac which will let me throw away my old PC - Yeah!
    I will have a couple of Win apps that I will need to hang on to (Quicken - Quicken for Mac is horrible, but that's another tghread). Anyway, can Bootcamp and Parallels share the same Windows applications and data?
    My thought would be to allow my wife to access Quicken from Parallels and not have to reboot. She will only need lightweight access and the overhead of running virtualization wouldn't impact her. I, on the other hand, would want to occasionally boot natively into Windows and run the same application with the same datafile. Is this possible?
    Thanks and looking forward to joining the MacIntel world!

    Thanks for all of the freplies. I suspected that BootCamp and Parallels could not shar ethe same partition, but wanted to verify. To address some of the other posts:
    Re: Quicken vs MoneyDance - I looked at MoneyDance a while back and while it is comparable to Quicken for Mac, it isn't comparable to Quicken for Windows (ergo, Quicken for Mac isn't comparable to Quicken for Windows!). But, as I said, that is a topic for another thread!
    Re: Using Bootcamp/Parallels for only one app: I actually have several apps that I still need access to on Windows. I work with many business applications than only run/are supported on Windows as well as receive some complex Office documents which Office for Mac cannot handle. Quicken (for Windows 2007) was just the best example of a consumer app where I could see wanting access from both OS X and Windows.

  • VMWare Fusion and Parallels Desktop Benchmark Comparison

    This is a quickie benchmark of VMWare Fusion and Parallels Desktop using Super PI, PC Mark 05, and Passmark.
    VMWare Fusion 36932
    Parallels Desktop 3094 Beta 2
    Notes:
    Both virtual machines were allocated with large 10+ GB virtual disks and 640MB of RAM. The VMWare CPU was configured with two processors. The Parallels CPU was configured with 1 (two is not available). VMWare reported the CPU as 1 physical, 2 logical processors running at 2.66 GHz while Parallels reported 1 physical, 1 logical processor running at 9.6 GHz (the combined speed of all four cores on the Mac Pro). The max observed CPU utilization in activity monitor when running under VMWare was 200% and max under Parallels was 173%.
    I chose not to compare 1 VMWare CPU vs. 1 Parallels CPU. While Parallels does not support SMP or multithreaded processes on multiple processors the CPU utilization on the Mac went well above 1 core (173%). For this comparison, I wanted to see results of max processing based on what the two vendors have delivered, as opposed to benchmarking the underlying "virtual or hypervisor cpu" on a 1:1 basis. This explains why VMWare was 2x faster than Parallels on some CPU tests.
    Both of these products are beta. VMWare is running in debug mode (can not be turned off in this beta).
    Caveat emptor on these stats. This was an unscientific exercise to satisfy my curiosity. Some of the extraordinary differences are highlighted with <--.
    Platform:
    Mac Pro 2.66 GHz, 2GB RAM, Nvidia 7300GT
    Disk 1 - OS X, 73GB Raptor
    Disk 2 - dedicated disk where each virtual machine image was created separate from the OS or any OS-related virtual memory files.
    VMWare and Parallels guest OS: Windows XP Professional, SP 2
    Comparison Benchmrk
    VMWare Fusion 36932 and Parallels Desktop 3094 Beta 2
    Super PI Parallels VMWare
    512K 8s 9s
    1M 20s 21s
    4M 1m 57s 2m 03s
    PC Mark 05 Parallels VMWare
    CPU Test Suite N/A N/A
    Memory Test Suite N/A N/A
    Graphics Test Suite N/A N/A
    HDD Test Suite N/A N/A
    HDD - XP Startup 5.0 MB/s 19.54 MB/s <--
    Physics and 3D Test failed Test failed
    Transparent Windows Test failed 69.99 Windows/s
    3D - Pixel Shader Test failed Test failed
    Web Page Rendering 3.58 Pages/s 2.34 Pages/s
    File Decrypt 71.73 MB/s 67.05 MB/s
    Graphics Memory - 64 Lines 179.92 FPS 111.73 FPS
    HDD - General Usage 4.82 MB/s 42.01 MB/s <--
    Multithread Test 1 / Audio Comp N/A N/A
    Multithread Test 1 / Video Encoding Test failed Test failed
    Multithread Test 2 / Text Edit 152.85 Pages/s 138.48 Pages/s
    Multithread Test 2 / Image DeComp 5.91 MPixels/s 35.4 MPixels/s <--
    Multithread Test 3 / File Comp 3.22 MB/s 6.03 MB/s
    Multithread Test 3 / File Encrypt 19.0 MB/s 33.26 MB/s <--
    Multithread Test 3 / HDD - Virus Scan 27.91 MB/s 25.49 MB/s
    Multithread Test 3 / Mem Lat - Rnd 16MB 5.34 MAcc/s 6.63 MAcc/s
    File Comp N/A N/A
    File DeComp N/A N/A
    File Encrypt N/A N/A
    File Decrypt N/A N/A
    Image DeComp N/A N/A
    Audio Comp N/A N/A
    Multithread Test 1 / File Comp N/A N/A
    Multithread Test 1 / File Encrypt N/A N/A
    Multithread Test 2 / File DeComp N/A N/A
    Multithread Test 2 / File Decrypt N/A N/A
    Multithread Test 2 / Audio DeComp N/A N/A
    Multithread Test 2 / Image DeComp N/A N/A
    Memory Read - 16 MB N/A N/A
    Memory Read - 8 MB N/A N/A
    Memory Read - 192 kB N/A N/A
    Memory Read - 4 kB N/A N/A
    Memory Write - 16 MB N/A N/A
    Memory Write - 8 MB N/A N/A
    Memory Write - 192 kB N/A N/A
    Memory Write - 4 kB N/A N/A
    Memory Copy - 16 MB N/A N/A
    Memory Copy - 8 MB N/A N/A
    Memory Copy - 192 kB N/A N/A
    Memory Copy - 4 kB N/A N/A
    Memory Lat - Rnd 16 MB N/A N/A
    Memory Lat - Rnd 8 MB N/A N/A
    Memory Lat - Rnd 192 kB N/A N/A
    Memory Lat - Rnd 4 kB N/A N/A
    Transparent Windows N/A N/A
    Graphics Memory - 64 Lines N/A N/A
    Graphics Memory - 128 Lines N/A N/A
    WMV Video Playback N/A N/A
    3D - Fill Rate Multi Texturing N/A N/A
    3D - Polygon Throughput Multiple Lights N/A N/A
    3D - Pixel Shader N/A N/A
    3D - Vertex Shader N/A N/A
    HDD - XP Startup N/A N/A
    HDD - Application Loading N/A N/A
    HDD - General Usage N/A N/A
    HDD - Virus Scan N/A N/A
    HDD - File Write N/A N/A
    Processor Intel Core 2 9653 MHz Processor Unknown 2661 MHz
    Physical / Logical CPUs "1 Physical, 1 Logical" "1 Physical, 2 Logical"
    MultiCore 1 Processor Core Multicore 2 Processor Cores
    HyperThreading N/A N/A
    Graphics Card Generic VGA Generic VGA
    Graphics Driver Parallels Video Driver VMWare SVGA II
    Co-operative adapters No No
    DirectX Version 9.0c 9.0c
    System Memory 640 MB 640MB
    Motherboard Manufacturer N/A Intel Corporation
    Motherboard Model N/A 440BX Desktop Reference Platform
    Operating System Microsoft Windows XP Microsoft Windows XP
    Passmark Parallels VMWare
    CPU - Integer Math (MOPS) 112.35 230.31 <--
    CPU - Floating Point Math (MOPS) 280.46 588.33 <--
    CPU - Find Prime Numbers (OPS) 446.37 676.99 <--
    CPU - SSE/3DNow! (MMPS) 2118.56 4737.13 <--
    CPU - Comp (KB/s) 2994.16 5952.34 <--
    CPU - Encrypt (MB/s) 18.09 36.27 <--
    CPU - Image Rotation (IRPS) 598.21 1184.41 <--
    CPU - String Sorting (TPS) 2118.81 3672.59 <--
    Graphics 2D - Lines (TPS) 220.71 25.15 <--
    Graphics 2D - Rectangles (TPS) 189.74 61.8 <--
    Graphics 2D - Shapes (TPS) 39.54 13.71 <--
    Graphics 2D - Fonts and Text (OPS) 190.39 75.88 <--
    Graphics 2D - GUI (OPS) 439.77 63.72 <--
    Memory - Allocate Small Block (MB/s) 2533.83 2526.21
    Memory - Read Cached (MB/s) 1960.5 1906.27
    Memory - Read Uncached (MB/s) 1871.79 1826.08
    Memory - Write (MB/s) 1687.81 1545.43
    Memory - Large RAM (OPS) 60.99 46.37
    Disk - Sequential Read (MB/s) 102.11 76.45 <--
    Disk - Sequential Write (MB/s) 58.33 50.9
    Disk - Rnd Seek + RW (MB/s) 51.4 40.4
    CPU Mark 711.08 1432.72 <--
    2D Graphics Mark 743.31 176.5 <--
    Memory Mark 599.94 580.38
    Disk Mark 766.11 606.7
    PassMark Rating 557.27 637.35<br>

    Thanks for posting these numbers - it's an interesting comparison.
    I would expect the final VMWare fusion performance numbers to be quite a bit better than that of Parallels - they have almost a decade's worth of experience more than the Parallels folks in this arena, and a much larger development team to boot.
    Once VMWare Fusion is released to the public, I think that you'll see a clearer distinction between the two products. VMWare will continue to appeal to the professional customer, with a more robust feature set and corporate-friendly features (and a correspondingly higher price tag); Parallels will fall more into the consumer/VirtualPC-replacement market. It will be interesting to see how Parallels will be affected when (and if) VMWare player is ported to OS X.
    Interesting about the Parallels performance stats on a native partition - looks like almost enough reason to avoid the bootcamp partition approach altogether. Sharing a native windows installation with a VM in parallels is a pretty scary situation in any case, as the two environments have entirely different hardware configurations. Do-able, but there is some black magic involved (if you want to see an example of what I mean, try to move a windows installation from one machine to another w/different hardware sometime - it ain't pretty); I wouldn't try this in a production scheme unless I had REALLY good backups.

  • Installing Windows 7 RC1 with Boot Camp AND Parallels?

    I have a 24" iMac (2009 model) and have successfully installing Windows 7 RC1 using Boot Camp. No problems at all and everything is working fine. But now I'm contemplating purchasing Parallels and using Windows 7 in a window.
    I just need to know the steps involved and how this works. First I purchase and install Parallels. Then I run it and somehow tell it to use my Boot Camp partition for the VM, right? In this way, I'm assuming I don't actually have to install Windows 7 again or make another partition, right? Once I get the VM installed, then I can either boot to Windows 7 from startup OR boot from within Mac OS using Parallels and it would be the same?
    If I can do it this way, can anyone point me to step-by-step instructions on how to choose the right settings in Parallels? I have found instructions for installing Windows 7 using Boot Camp and Parallels separately, but not how to use the Boot Camp install for the VM in Parallels.

    Wow, it was much easier than I thought it would be! Downloaded the trial of Parallels. Installed it and pointed it to my Boot Camp partition with Windows 7 installed on it. And minutes later, I'm up and running with Windows 7 in Parallels. Sound didn't work at first, but after I did a Windows Update, it installed the correct driver and now everything is working great. I can't believe how smooth this thing runs within Leopard. I allocated 1GB of RAM for WIndows 7 and it's seems fine so far, but I really haven't run any resource-intensive apps yet.

  • How should I install/setup a single OS of windows 7 to run through bootcamp and parallels 7 on my new macbook pro?

    I just bought a new macbook 8g ram and 750g harddrive and want to be able to run windows 7 through bootcamp and parallels. How do I setup that up and install a single version of windows (want to be able to utilize heavy programs - photoshop, 3D modeling CAD etc. - by installing them once and being able to use them through parallels 7 or bootcamp)? Please let me know of anything that may red flag by doing this and clear concise instructions of which to do first/ settings for bootcamp and parallels

    BootCamp is directly booting your computer into Windows for full hardware access and performance, just like a PC. It's free from Apple.
    https://www.apple.com/support/bootcamp/
    Virtual machine software (paid) like Parallels and VMFusion both can take the Bootcamped Windows and make a copy for use in OS X in a window at the same time as using OS X, but less performance. It's usualyl easiler to use.
    A free virtual machine option is VirtualBox, but it might not have all the bells and whistles of the payware options above, but works just  fine.
    We can't provide detailed installation instructions, it's too much, you will have to read Apple's instructions and the manual for your virtual machine software.
    http://manuals.info.apple.com/en_US/boot_camp_install-setup_10.7.pdf

  • How many ways to read and write a local variable in a called VI?

    Ciao!
    I'm producing my first TestStand sequence. It is called "FirstAttempt" and it is made by a single step which calls a VI. One of the first dilemmas i encountered realizing this sequence is how to read and write a local variable (created going in Variables -> Locals ('FirstAttempt') -> <right click to insert local>) in the called VI.
    The first way (the only one i tried) is to create a control and an indicator on the VI front panel, connect them to their respective terminals in the connector pane and then specify (going in Step Settings -> Module) that these connectors (shown in the Parameter Name column) are linked to the local variable (selected in the Value column).
    The second way (not tried) consists in using TestStand API: create a Sequence Context reference on the VI front panel, link it to a property node in the block diagram, select the property "Locals" and extract from this the local variable name and value which, i think, can be readable and writable.
    So...
    Are the shown ways correct?
    Are there other ways?
    Knowing that a "local" variable can be considered "global" within the whole sequence, is there the possibility to simply create a reference to the local variable and use the reference in the called VI block diagram in order to save space in the connector pane (if using method 1) or in the block diagram (if using method 2)?
    Thanks!
    Message Edited by aRCo on 09-17-2009 05:09 AM

    Hi,
    Before TestStand 3 you would use the second way you quoted as its the only way.
    But now you would use the first way you quoted. You may still what to pass the SequenceContext if you were going to use the TestStand API. For TestStand 3.x and above you would use this way as the first chose. (Personnelly, I would not pass the SequenceContext into a VI if I know it was never going to be used in that VI.)
    Not sure I understand your final comment, maybe you are liking it to passing the reference of a control to a subVI so that the control can be updated from within the subVI.
    If this is the case and you had a situation where you had a step that was running in parallel with the rest of the steps in the sequence either as a separate thread or execution and were dependent on the contents of the  local variable changing from that parallel running step, then you would have to use the API SetVal method to change the local.
    Hope this is clear.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • VM Fusion and Parallels and even a Boot Camp question

    I have both Fusion and Parallels installed and have a question about how Windows is displayed .
    with Parallels, I get the usual Windows desktop and with Fusion I get a "menu" for navagating to different areas/programs/settings
    What can I do to get Fusion to display the Windows desktop as Parallels does? I haven't used either enough to know which I prefer, but I can tell you one thing, I immediately disabled the internet connection for both. There is NO WAY I would ever connect to the 'net in Windows.
    I actually think that after I get Leopard I will try installing Boot Camp just for comparisons sake. I will have to "slipstream" a disk with XP to include SP2, but the directions are pretty clear, if I read them really slowly.
    I'd really like to hear from someone who has successfully "slipstreamed" a disk.
    thanks

    Sounds like you were using Fusion's Coherence mode to launch individual applications which some people prefer. But you should have first had Windows desktop.
    http://communities.vmware.com/community/vmtn/desktop/fusion

  • Reading and Writing to blob column is very slow

    Hi
    I want to write a serialized java object called 'engine' to a database table called javaObjectsDB. The serialized object could be of sizes anywhere between 20MB to 4GB. I am using the following code to write this 'engine' object
                   * Write java object to BLOB in DB - Start
                   Connection conn=null;
                   conn = Util.getConnectionFromDS();
              PreparedStatement ps=null;
              String sql=null;
                   Engine.startWatch();
                   ByteArrayOutputStream baos = new ByteArrayOutputStream();
                   Engine.endWatch("Time for ByteArrayOutputStream");
                   Engine.startWatch();
                   ObjectOutputStream oos = new ObjectOutputStream(baos);
                   Engine.endWatch("Time for ObjectOutputStream");
                   Engine.startWatch();
                   oos.writeObject(this.engine_);
                   Engine.endWatch("Time for oos.writeObject");
                   oos.flush();
                   Engine.startWatch();
                   byte[] data = baos.toByteArray(); // in case of using ByteArrayOutputStream
                   Engine.endWatch("Time for toByteArray");
                   Engine.startWatch();
         sql="insert into javaObjectsDB values (?)";
         ps=conn.prepareStatement(sql);
         ps.setObject(1, data); // in case of using ByteArrayOutputStream
         ps.executeUpdate();
         Engine.endWatch("Time for prepare statement and insert");
                   * Write java object to BLOB in DB - End
    To read from database BLOB column back to the engine object I use the following code:
    try {
                   String readBlob = "SELECT javaObject FROM javaObjectsDB ";
                   Statement readBlobStmt = conn.createStatement();
                   ResultSet resultSet = readBlobStmt.executeQuery(readBlob);
                   while (resultSet.next()) {
                        * ByteArrayStream *** Start
                        Engine.startWatch();
                        Blob blob = resultSet.getBlob(1);
                        Engine.endWatch("loadPlan::Time for getBlob");
                        Engine.startWatch();               
                        byte [] data = blob.getBytes(1,(int)blob.length());
                        Engine.endWatch("loadPlan::Time for getBytes");                    
                        Engine.startWatch();
                   ByteArrayInputStream bais = new ByteArrayInputStream(data);               
                   Engine.endWatch("loadPlan::Time for ByteArrayInputStream");
                   Engine.startWatch();
                   ObjectInputStream oin = new ObjectInputStream(bais);
                   Engine.endWatch("loadPlan::Time for ObjectInputStream");
                   Engine.startWatch();
                   engine_ = (Engine)oin.readObject();     
                   Engine.endWatch("loadPlan::Time for oin.readObject");
                   System.out.println("engine object prepared");
                        * ByteArrayStream *** End
                   } //while of result Set
    The time taken to write and read for a engine object of size 124MB are:
    write - 41secs
    read - 28secs
    For a engine object of size 340MB
    write - 3minutes
    read - 1minute
    This is a lot of time for such small object size, and since we are expecting sizes of 4GB, I need to have better performance. Please suggest what I can do to improve performance for read and write.
    One thing I tried was using cached lobs but not of much use.

    Welcome to the forum!
    Unfortunately this is an Oracle forum and your question should be posted in the Java JDBC forum.
    https://forums.oracle.com/forums/category.jspa?categoryID=288
    Please create a question on the JDBC forum, post a link to that new question here, in this forum, and mark this question answered.
    That way anyone seeing this question can followup with you in the other forum.
    Thanks.

  • Instrument i/o assistant always generates async methods for read and write!

    I am trying to generate VI by instrument i/o assistant, but it generated 'Visa write' and 'Visa read' always in asynchronous mode. Even if I unchecked asynch boxes in MAX->Visa Test Panel.
    I need only synchronous mode! And it is very uncovenient after open front panel change  Synchronous I/O Mode from Asynchronous to Synchronous!

    postoroniy_v wrote:
    Asynchronous mode does not work for my hardware.
    and before Instrument i/o assistant  generate diagram I have possibility to check requests and responses to/from my hardware. in this case everything is fine.
    after generate  does not work.
    Is it possible you don't have a sufficient amount of wait time between a VISA Write and VISA read to give the instrument time to receive the communication and turn around a response?  Take a look at Basic Serial Read and Write example VI.  If you are using the I/O assistant and checking things manually, it will work because there is no way you can generate a Read too fast.  It still would take a fraction of second to generate the write and do whatever clicking to generate the read.

  • Bootcamp and Parallels

    Can I run bootcamp and Parallels on the same Mac? How do I run Bootcamp if I've already installed Parallels? Do I have to re-format my drive and start over?

    Here's why you want to install both: Parallels accesses your existing Windows installation you did with Boot Camp. You don't have to boot into Windows if you install Parallels after you've installed Windows in its own Boot Camp partition and you don't have to install Windows again. It's much safer because the work you do is saved on the windows partition, not on a virtual drive. Of course, you can still boot to Windows if you need to.
    You can open Windows programs right with your Mac apps and switch among them as if they were native by using Parallels. You will have to activate Windows again for some reason, but it's painless unless you've installed it more than twice in which case you have to call Microsoft.
    Boot Camp is free of course and simply partitions the hard drive, you don't "run" boot camp as ZooCrew already pointed out, you actually boot to windows on startup. You do "run" Parallels which accesses your windows partition. Quite slick. I use it for Quicken because the Mac version blows hard, and another program I have to use for work that is Windows only for now.

Maybe you are looking for