Bit Manipulati​on in LV Realtime

There don't appear to be any bit manipulation functions in LV.  I just need some pretty simple tasks such as setting/clearing a particular bit in an integer.  Although these functions are available in Mathscript, apparently Mathscript won't run on a realtime target.  I've written my own function to perform this but it takes a lot more code than I would like to see (not that a LV function would necessarily be less code). 
Suggestions/algorithms appreciated.

Just use the AND function (from the boolean palette) to clear a bit (set all bits to 1 except the one you want to clear).
To set a bit, use the OR function with all zeros except the bit you want to set.
For example, if your data type is U8 and you want to set bit 5, wire the U8 and a 00001000 constant (U8 in binary notation) to an OR function.
Hope this helps,
Daniel
Message Edited by dan_u on 03-21-2007 07:21 PM

Similar Messages

  • Bit manipulati​on

    Hey everyone,
    I am trying to use labview to make my own bitmap files but I need to be
    able to control values of BIT of information. Does anyone know what datatype
    I need to see the value of every BIT?
    Many thanks in advance,
    --FRH

    > You can convert a number to a Boolean array, in which each element
    > represents one bit, and you can convert a Boolean array to a number, so you
    > can manipulate in both directions. The individual Boolean is the closest to
    > what you'd call a "bit" datatype. The functions are in the "Boolean" section
    > of the standard function palette. A more detailed response needs a more
    > detailed question.
    >
    > As a matter of curiosity to anyone else reading this, a single 32 bit wide
    > memory access can return a U32 for a given operation. If that U32 is
    > converted to a Boolean array, does it then require 32 memory accesses to
    > perform the same operation on it?
    This approach will work quite well, but anothr approach is to simply leave
    the data in numerics and AND/OR o
    r with whatever bit pattern you are trying
    to manipulate. This may seem more complicated, but it will end up using less
    memory and take less time, if that is important. Also, lots of people don't
    know that the Boolean operations will also work on integers, N bits at a time.
    To answer the next question, a 32 bit number will be converted into 32 Booleans.
    In LV5 and greater, that will be stored in 32 bytes. If you need to
    copy the
    Boolean array, then that will happen multiple element at a time, but most
    logical operations will happen one byte, one Boolean at a time. When converted
    back into a numeric, 32 adjacent Booleans will be recombined to form a number.
    Less bits for different numeric types.
    The Boolean arrays before LV5 were actually packed together into words, taking
    less memory, but more processing to manipulate.
    Greg McKaskle

  • An honest, AVCHD compatibility / ease of use - open discussion.

    Hello everyone!  i have yet to upgraded to CS4 and wish to use it with the AVCHD format which I know CS4 now is now capable of.  But seeing how I can't use the trial to make sure I am comfortable going tapeless, I wish to hear your thoughts on this.  Here are a few questions I have (all with PC):
    1) I hear that importing AVCHD can end up chopped up physically due to a FAT 32 issue, is this a universal trait for premier or is it because of how a camera itself manages the format?  (I am not refering to start and stop recording on a scene, I am refering to one continuous shot of footage being chopped up because of file management)
    2) I have also heard that AVCHD is hard to edit with.  Those of you whom have worked with it, have you noticed this and if so how has it rendered your productivity?  For example, have any of you been able to successfully and effiecently use a multicamera mode with three or more AVCHD files without crashes, or choppy playback or A/V sync issues?  (assuming your computer has the minimal Adobe recommendations)
    3) Can I export an AVCHD project into other formats and ratio sizes without loss of picture quality? (i.e. down conversion to a 4:3 dv avi file.)
    4) Can I work with AVCHD footage within a 4:3 DV project?   (I know how all this sounds, but I am asking about compatibility, capability, and ease of use.  I never know when I may need this option.
    5) Can I use AVCHD with After Effects?  Can I have a alpha channel in this format?
    6) Is there effects limitations with this format (i.e. can I still do scale/move/opacity in real time or color corrections)
    7) Are you enjoying the AVCHD editing experience?
    Thanks for reading and please join the discussion!
    Bilateral Bow

    Hi Guys,
    I don't know if this helps answer your questions or not but here goes.
    I have a Dell Preciscion M6400 laptop with 8 gigs of Ram and 1 Gb Video Card with Quad Core Extreme 2.53 CPU. I edited on DV for 10 years and just in the last 12 months have switched over to AVCHD with my purchase of a Sony HDR S12 (I think I got that right...)
    At first, editing with AVCHD was a frustrating and painful experience, so much so that I would just render all the clips to AVIs before editing. When I did the update to CS4.1 I noticed that the pain considerably eased if not vanished entirely. I only shoot the "Full HD" on the camera at what it calls Full Quality 1980 x 1080 60i but which is really just anamorphic 1440 x 1080 60i as far as Adobe Premiere Settings go.
    As to your questions, here goes:
    1) I hear that importing AVCHD can end up chopped up physically due to a FAT 32 issue?
    I use Sony PMB to import my files and then drag and drop them into Premiere Pro. I've never experienced this issue. Everything imports just fine.
    2) I have also heard that AVCHD is hard to edit with:
    It is a bit draggy in terms of realtime playback most noticeably when playing back over a transition. However, I ascribe that to having a laptop computer which sort of squeaks over the finish line in terms of having the firepower to handle HD.
    I have not noticed any changes in terms of my work speed since switching from DV to AVCHD, but seeing as I bought a new computer at the same time, that may be the reason. I don't use Multicamera mode right now, so can't answer you on that. Never had any sync issues.
    3) Can I export an AVCHD project into other formats and ratio sizes without loss of picture quality?
    I do this all the time as I don't render out to Blu-Ray and have zero problems, I usually compress to MPEG 2 DVD as well as a variety of webformats in Windows Media, Quicktime H264 as well as uncompressed AVI files for mixing up with old projects.
    4) Can I work with AVCHD footage within a 4:3 DV project?
    I don't know if this goes for everybody, but in CS4.1 you don't set the project anymore to be a specific type, you set the sequences to be 4:3 DV, AVCHD,etc... and you mix and match however the hell you want. It is really liberating. Yes you have to render the final results when you mix media, but really,,,who gives a hoot.
    5) Can I use AVCHD with After Effects?  Can I have a alpha channel in this format?
    I do,usually when I am editing with AVC HD and I need an effect over the clip I simply drag the clip from Premiere over into after effects automatically creating a project of the right settings and have at it. I almost always export out using a Quicktime file so can't answer on exporting out as AVCHD.
    6) Is there effects limitations with this format (i.e. can I still do scale/move/opacity in real time or color corrections):
    I do all this and sometimes it plays through depending on how much I am scaling, dissolving, etc... all on one piece. Again, I think if I had a computer with more cajones, it would be just fine. But in the meantime, even with a little render, it works great.
    7) Are you enjoying the AVCHD editing experience?
    Honestly, I am still getting used to it. Like I said, I edited DV for a decade, so there are some growing pains as I had everything set-up perfectly. But I didn't feel like becoming a dinosaur where my neighbors 9 year old is shooting higher quality picture on his dad's 800 buck camcorder. So it was change or be antiquated.
    If it makes you feel any better, I switched over from Avid to PP because I found that the Adobe CS pipeline was way better than any singular advantages any other isolated programs have and have had zero problems with AVCHD on any program or combination thereof within this pipeline.
    What I am enjoying is the outstanding increase in image quality that AVCHD has brought over DV. I mean it is just freaking GORGEOUS by comparison. I have only used HDV once and didn't like it enough to make the switch from DV especially since it was all still outputting to regular DVD. To me it is all about familiarity. If I had stayed with that HDV format I probably would've learned to like it and use it as well. Heck, I wanted to go P2 but simply couldn't afford the camera at the time. So I settled with AVCHD. I think to truly ENJOY the experience I need a better computer because right now my computer is slower than I am and that does not make for an enjoyable editing experience.
    But on the whole, yes the pros of going AVCHD outweigh the cons in my opinion and I don't see any problems on the Adobe side with handling it, just on the firepower side.
    I do corporate video and mini-documentaries, weddings, etc... The longest project I edited with the format (mixed in with DV, some HDV and a wack of other odds and ends) was about 1 hour and 20 minutes. Didn't have any problems.
    Hope that helps.
    What I have been searching the site for is a way to export an AVCHD disc from premiere.
    Regards,
    DSW

  • Cs6: slow switching into mask and back ?

    hi
    i am on an imac 27" i5 late 2013 with SSD and external scratch disc 256GB SSD (thunderbolt) and use photoshop cs6. (32GB RAM)
    everytime i use 16bit images with many layers (30 or 50) (80x60cm 300dpi) in RGB i can reproduce a slow switch into the masks, it takes about 1 second for viewing the white mask and 1 second to view the image without mask.
    when i work with 8 bit images, i have fast realtime switching into the masks. does that mean, my imac is too weak for 16bit composings?
    thanks

    too much I/O ?
    i double check every time i run cs6, i ve a dedicated, 100% empty scratch disc, my external 256GB intel SSD via thunderbolt to my imac, so photoshop has plenty of fast scratch. i also disable all other apps like mail, safari etc.., when i start photoshop.
    i use shortcut: "alt"-key + mouseclick into the mask to switch into the mask.
    i presume, that 16bit composings with a lot of layers (30-50 layers) in 300dpi, adobeRGB colorspace, is too much I/O for photoshop cs6 and cc2014, as i can reproduce the slow switching into the mask on my other mac pro 2014 with 64GB RAM, too.

  • DeferAction is too slow

    I need to make calls into javaFX functions from java on a frequent basis - to manipulate the scene in realtime. DeferAction from a RunnableFuture/JavaTaskBase seems to involve an almost one second delay. Is there a quicker way around? My primary reason to use a java is the need to receive raw UDP packets.
    thanks

    I switched to an Animator, and using polling inside java code called by the animator so it stays in the javafx thread. Much faster than the deferAction, so I can move forward.

  • How to evaluate 64 bit return code from realtime sequence

    Hello,
    I'm using the ExecuteAsync method of the StimulusProfile Class to execute a stimulus profile. The stimulus profile only contains one entry: A call to a realtime sequence.
    After the profile has finished executing I retrieve the return code of the realtime sequence by opening the result XML-File. 
    The xml-node of intrest might light look this:
    <TestResult ID="ReturnValue">
       <TestData>
              <Datum xsi:type="unsignedInteger" value="2147516544" xmlns="http://www.ieee.org/ATML/2006/Common" />
        </TestData>
    My problem is that the "value" attribute seems to be limited to 32 Bit. The upper 32 Bit of my 64 Bit return code are simply cutoff. How do I get the complete return code?
    After I ran into this problem when using the .NET API, I tried to do a "NumericBoundsCheck" evaluation using the Stimulus Profile Editor. As expected, it doesn't work correctly when working with values > 2^32 - 1.
    I'm using VeriStand 2012.
    Thanks

    Hello Gregor,
    I don't think it's necessary to post example code. Just return a value >= 2^32 from a realtime sequence and you will see that the evaluation in the realtime stimulus editor does not work correctly. Also, in the resulting XML-File, the return value will be truncated to 32 Bit.
    Meanwhile I have found that this this issue has already been discussed on this board (http://forums.ni.com/t5/NI-VeriStand/ATML-return-value-does-not-return-Uint64/m-p/2848796#M3649), but no solution was proposed so far.  
    I now run my realtime sequence using the ClientAPI. This allows me to evaluate the full 64Bit.
    Regards
    Krid

  • Manipulate designs in 12 bit & 24 bit?

    How to work with 12 bit & 24 bit in photoshop windows...? Thank in advance for your technical support..

    There is no way to directly manipulate images at "odd" bit-depths in PS. Any such files would be processed at the next highest bit-depth and then quantized down/ converted by whatever loaders and savers are involved, e.gf. for DDS game textures. Also depends on what color space is involved and may in fact require to set up specific color profiles to get correct conversion in some cases...
    Mylenium

  • What is difference between 32 bit and 64 bit sql server memory management

    What is difference between 32 bit and 64 bit sql server memory management
    Thanks
    Shashikala

    This is the basic difference...check if helps:
    A 32-bit CPU running 32-bit software (also known as the x86 platform) is so named because it is based on an architecture that can manipulate values that are up to 32 bits in length. This means that a 32-bit memory pointer can store a value between 0 and
    4,294,967,295 to reference a memory address. This equates to a maximum addressable space of 4GB on 32-bit platforms
    On the other hand 64-bit limit of 18,446,744,073,709,551,616, this number is so large that in memory/storage terminology it equates to 16 exabytes. You don’t come across that term very often, so to help understand the scale, here is the value converted to
    more commonly used measurements: 16 exabytes = 16,777,216 petabytes (16 million PB)➤ 17,179,869,184 terabytes (17 billion TB)➤ 17,592,186,044,416 gigabytes (17 trillion GB)➤
    As you can see, it is significantly larger than the 4GB virtual address space usable in 32-bit systems; it’s so large in fact that any hardware capable of using it all is sadly restricted to the realm of science fiction. Because of this, processor manufacturers
    decided to only implement a 44-bit address bus, which provides a virtual address space on 64-bit systems of 16TB. This was regarded as being more than enough address space for the foreseeable future and logically it’s split into an 8TB range for user mode
    and 8TB for kernel mode. Each 64-bit process running on an x64 platform will be able to address up to 8TB of VAS.
    Please click the Mark as answer button and vote as helpful if this reply solves your problem

  • Is there a way to install just the 32 bit version of Photoshop CS5 on a Windows 7 64 bit machine?

    I have a custom built Java 6 application that doesn't like Photoshop CS5 64 bit edition.  The program copies over a file from the network to the local machine and then opens it in Photoshop.  The user manipulates the image and saves the changes.  The user then completes the image and the application copies the image back to the server.  The problem we're having is: When we use Photoshop CS5 64-bit, it takes about 2 minutes for Photoshop to open the image.  The file is copied over within 2 seconds and the Photoshop icon on the windows taskbar starts flashing.  But then you spend a few minutes waiting for it to open.
    Some things that I have tried to isolate the problem:
    - I found you can copy the file somewhere else, double click on it and the image will open in Photoshop before the script is able to open the file.
    - I tried uninstalling Photoshop and reinstalling just the 64 bit edition without the 32 bit installation.  The script just stops working in this situation.
    - I tried uninstalling CS5 and installing CS3.  The image opens as soon as the file is copied over.
    What I would like to try next is to install just the CS5 32 bit version.  But the installer is being uncooperative and will only allow either the 64 bit version or both the 64 and 32 bit versions.  So, back to my question: Is there a way to install just the 32 bit version of Photoshop CS5 on a Windows 7 64 bit machine?

    Do you mean schroot?  If so I'm not sure exactly how well that will work out, because the part that depends on python is a deamon that handles communication between the USB dongle and the Tux Droid which may mean hacking the deamon a bit so ether way this does not seem like it will be a easy task.

  • How do I set up my timer/clock for a 17 bit synchronous encoder?

    I am trying to get an output from a 17 bit Gray Code encoder. I need the position output for other projects.
    Here is a list of equipment being used:
    PCIe 6361
    CP-850-17S-GC-CW encoder from Allied Motion
    SCB-68
    I am trying a 3 wire connection.
    Clock + to PFI 12
    Data + to AI 0
    NSL - to +5 V
    NSL+ to AI Gnd
    Data - to AI Gnd
    Clock - to D Gnd
    I have used MAX to build clocking to the PFI 12 and can see the clocking. This is also what is coming out of my encoder. It does not apperar to synch up using continuos clocking.
    I have tried to build a VI and use DAQmx with the same results.
    When I tried to run N samples using 17 bits with a clock at 100KHz and an initial delay the signals, using an osciliscope, appear to be correct except that it does not change with the rotation of the encoder. The output of the encoder still appears to be the clock signal.
    I have used other programs and they give the angle fine.
    It may be I need to add something else and or set this up in sequence. If anyone can direct me to documentation I would greatly appreciate it.
    I have added the documentation, from the website, for the CP850 17S GC encoder. This has the timing information. 
    Attachments:
    CP-800-900_Specifications_R1a(scrn).pdf ‏216 KB

    Hi msmith
    You are using a PCIe-6361, you could use that card also to acquire the same signals that you are generating. First you need to check that you are generating the signals as that encoder require, with the same PCI you can verify that. Then if you are generating the signals correctly, the enconder should has an output as shown in the graph in the datasheet, if not there is a problem in that enconder. 
    *Other detail, I am not sure in this case but in other cases that I remember with other encoders, there is necesary to change the NSL from 1 to 0 for each value. You can try also to manipulate that input from the PCI-card.
    Regards

  • ITunes 7.6 and Windows XP Pro x64  ---- 64 bit version of Windows XP Pro

    My wife was given an iPod nano, so I downloaded the current version of iTunesSetup.exe from www.apple.com and tried to run the executable. It told me that it wasn't designed to install iTunes on my 64 bit version of Windows XP Pro, and that I should go back to www.apple.com and download the 64 bit installer. I went back to www.apple.com and searched for the 64 bit installer in vain. There is only one main link to the current installer and the website determines which version of the installer you're given. After a few google searches I managed to aquire iTunes64setup.exe from the Apple site. I ran the executable and it told me "This iTunes installer requires that your computer is running Windows Vista 64-bit" and then it gave me the option to exit. I ended up installing iTunes from the executable I had originally downloaded. I have iTunes 7.6.2.9 installed now but it doesn't detect, or can't operate my DVD burner, so I can't rip music with iTunes for use on my wife's nano. I get this error report when I run the Diagnostic test built into iTunes.
    "Microsoft Windows XP Professional x64 Edition Service Pack 2 (Build 3790)
    System manufacturer System Product Name
    iTunes 7.6.2.9
    QuickTime 7.4.5
    CD Driver Not Available
    CD Driver DLL Not Available
    Bonjour 1.0.4.12 (118.4)
    iTunes Serial Number xxxxxxxxxxxxxxxx
    Current user is an administrator.
    The current local date and time is 2008-04-30 23:34:07.
    iTunes is not running in safe mode.
    Video Display Information
    Standard VGA Graphics Adapter
    NVIDIA GeForce 8800 GT
    ** External Plug-ins Information **
    No external plug-ins installed.
    ** CD/DVD Drive Tests **
    LowerFilters: Afc
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the "Add or Remove Programs" control panel.
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the "Add or Remove Programs" control panel."
    And there was no change in the diagnostic when I first tried to repair the install and then tried to reinstall iTunes. I'm sure the burner is working because I can play music, watch movies and all the normal stuff a DVD burner can do using Nero.
    I'm guessing I need an iTunes version of 64 bit optical drive driver.
    Any help would be appreciated!
    Cinder's
    <Edited by Moderator>

    I got the iTunes 7 to work on XP Pro 64bit. What I did was this:
    1. Downloaded DriverInstaller_AMD64EM64T.exe
    2. Installed it.
    3. Created this file tree: C:\Windows\Sysnative\drivers (Easier terminology, I went into the Windows folder and created a folder named "sysnative", opened that folder and created another folder called "drivers".
    4. Then I located the folder where I installed DriverInstaller_AMD64EM64T.exe ..
    5. I took the file called GEARAspiWDM and COPIED IT. I DID NOT MOVE THIS FILE!!!
    6. I pasted a COPY of this file into sysnative\drivers. The folder I just made.
    7. I installed iTunes 7, not 7.6. 7.6 and this method won't solve the burning issue. That would require more programs and more patients.
    Note, you will have to manipulate iTunes when you want to burn. The best way to do this, I found, was to simply make a playlist and right click the playlist on the left column and select burn to disk. It should act normally.
    Message was edited by: Nexis

  • 100% disk usage in Task Manager when using Photoshop CC (Windows 8.1 - 64 bit)

    Hi
    I have been using Adobe CC for a month or two now. I own an Asus laptop with Intel i7 (2.4 GHz), 6 GB RAM, 1 TB hard disk space and 64 bit, nearly 6 months old. Following apps are currently installed: Photoshop, Illustrator, InDesign, Audition, Acrobat XI Pro, Premiere Pro and Media Encoder. I recently performed an update through Adobe CC for Photoshop and Illustrator, all others are up-to-date.
    I believe, but I may be wrong, that since this update Photoshop is acting weird on my laptop. When I start Photoshop, my task manager immediately indicates a 100% rate of my disk usage. This seems to wield off after it is fully operational, but when I start to edit a file, the disk usage immediately jumps back to 100%, while the CPU remains below 10%, RAM stays at 3.5-3.8 GB (only 60% of total capacity) and even the actual read and write speeds of my HDD are not particularly high (5 - 10MB max). And because of the 100% disk usage, Photoshop freezes in an instant and operating it is nearly impossible.
    I already uninstalled Photoshop, went over all services and **** that could trigger this within Windows 8.1 (Google-search for: Windows 8.1 disk usage 100%) , re-installed Photoshop and I still have the same problem.
    So, I was wondering if there might be a solution to this problem or if anybody else is having this problem as well?
    Thanks in advance!
    UPDATE: This error applies only when I try to manipulate, add, edit or remove text. All other functions (not related to text) seem to work properly.

    No, I don't know much about that, but I found a couple links for you..
    "service host: Local system (network restricted)(11)" eating virtual memory
    http://www.reddit.com/r/techsupport/comments/1b496x/windows_8_high_disk_usage_usually_arou nd_100_and/

  • LABVIEW- REALTIME 8.6.1

    Ok. i have had an issue my previous laptop bit the dust and im trying to reinstall the software on my other laptop but the software will not allow me to download the Realtime 8.6.1 and the NIRIO setup always encounters an error. can someone tell me if there is a digital copy that i can download to see if it is just a defective disc..

    Go to this link, http://joule.ni.com/nidu/cds/view/p/id/1207/lang/en and down at the bottom there is a link that says, "Evaluation Software Download Page" If you click that link you can download the evaluation exe that you can activate to full version with your serial number.
    National Instruments
    Applications Engineer

  • Unable to Start the SOA Domain (11g v 11.1.1.5.0, Windows 7 64-bit)

    Hi Folks,
    I have installed the SOA 11g (11.1.1.5.0) along with other required softwares but when I am trying to start the weblogic server <domain>\bin\startWebLogic.cmd from with domain, it is throwing the out-of-memory exceptions as,
    <May 21, 2011 3:04:51 PM CDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP relate
    d logic, because error occurs when parsing sip related annotations of "integrati
    on/worklistapp"
    com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
    at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnot
    ationData.java:146)
    at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(Deploym
    entUtil.java:70)
    at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:9
    6)
    at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTa
    ilModule.java:127)
    at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(Si
    pServerTailModule.java:112)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla
    ssLoader.java:343)
    Truncated. see log file for complete stacktrace
    >
    Warning: Starting ADF Library jar post-deployment on WebLogic Server. Is "provid
    er-lazy-inited" init-param missing from LibraryFilter? Ignore this warning if th
    e ADFJspResourceProvider is not being used.
    Started: ADF Library non-ADFJspResourceProvider post-deployment
    Finished: ADF Library non-ADFJspResourceProvider post-deployment (millis): 78
    <May 21, 2011 3:05:06 PM CDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP relate
    d logic, because error occurs when parsing sip related annotations of "workflow/
    DefaultToDoTaskFlow"
    com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
    at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnot
    ationData.java:146)
    at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(Deploym
    entUtil.java:70)
    at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:9
    6)
    at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTa
    ilModule.java:127)
    at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(Si
    pServerTailModule.java:112)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
    at java.lang.Class.privateGetPublicMethods(Class.java:2547)
    at java.lang.Class.getMethods(Class.java:1410)
    at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.classAnnotation
    Parsing(SipAnnotationData.java:335)
    Truncated. see log file for complete stacktrace
    >
    <May 21, 2011 3:05:24 PM CDT> <Warning> <HTTP> <BEA-101162> <User defined listen
    er com.sun.faces.config.ConfigureListener failed: java.lang.OutOfMemoryError: Pe
    rmGen space.
    java.lang.OutOfMemoryError: PermGen space
    >
    I tried to manipulate the JVM memory setting in the setSOADomainEnv.cmd file but no luck. Currently, the setting are:
    set JAVA_OPTIONS=%JAVA_OPTIONS%
    set DEFAULT_MEM_ARGS=-Xms256m -Xmx512m
    set PORT_MEM_ARGS=-Xms128m -Xmx256m -XX:CompileThreshold=8000
    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=128m -XX:MaxPermSize=256m
    Again, I am not sure what are the right setting for running SOA on weblogic in Windows 7 64 bit O/S.
    Any help is really appreciated.
    -NJ

    Hi All,
    In continuation to my last post, I modified the memory setting as under,
    set JAVA_OPTIONS=%JAVA_OPTIONS%
    set DEFAULT_MEM_ARGS=-Xms256m -Xmx512m
    set PORT_MEM_ARGS=-Xms512m -Xmx768m  -XX:CompileThreshold=8000
    if "%JAVA_VENDOR%" == "Oracle" goto OracleJVM
    set DEFAULT_MEM_ARGS=%DEFAULT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
    set PORT_MEM_ARGS=%PORT_MEM_ARGS% -XX:PermSize=256m -XX:MaxPermSize=512m
    This allowed the server starting process to move a little further but again encountered with an error as under,
    Loading Preference Migrators...Ok
    ********* WorkSpace was initialized successfully *********
    Warning: Starting ADF Library jar post-deployment on WebLogic Server. Is "provid
    er-lazy-inited" init-param missing from LibraryFilter? Ignore this warning if th
    e ADFJspResourceProvider is not being used.
    Started: ADF Library non-ADFJspResourceProvider post-deployment
    Finished: ADF Library non-ADFJspResourceProvider post-deployment (millis): 124
    <May 21, 2011 3:55:30 PM CDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP relate
    d logic, because error occurs when parsing sip related annotations of "bpm/compo
    ser"
    com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
    at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnot
    ationData.java:146)
    at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(Deploym
    entUtil.java:70)
    at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:9
    6)
    at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTa
    ilModule.java:127)
    at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(Si
    pServerTailModule.java:112)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla
    ssLoader.java:343)
    Truncated. see log file for complete stacktrace
    >
    <May 21, 2011 3:55:33 PM CDT> <Warning> <oracle.adf.share.ADFContext> <BEA-00000
    0> <Automatically initializing a DefaultContext for getCurrent.
    Caller should ensure that a DefaultContext is proper for this use.
    Memory leaks and/or unexpected behaviour may occur if the automatic initializati
    on is performed improperly.
    This message may be avoided by performing initADFContext before using getCurrent
    To see the stack trace for thread that is initializing this, set the logging lev
    el of oracle.adf.share.ADFContext to FINEST>
    Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tun
    ing)',5,Pooled Threads]: CompressionFilter: Using debug = (0)
    <May 21, 2011 3:55:52 PM CDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP relate
    d logic, because error occurs when parsing sip related annotations of "SimpleApp
    rovalTaskFlow"
    com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
    at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnot
    ationData.java:146)
    at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(Deploym
    entUtil.java:70)
    at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:9
    6)
    at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTa
    ilModule.java:127)
    at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(Si
    pServerTailModule.java:112)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla
    ssLoader.java:343)
    Truncated. see log file for complete stacktrace
    >
    <May 21, 2011 3:55:58 PM CDT> <Warning> <HTTP> <BEA-101162> <User defined listen
    er com.sun.faces.config.ConfigureListener failed: java.lang.OutOfMemoryError: Pe
    rmGen space.
    java.lang.OutOfMemoryError: PermGen space
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
    at weblogic.utils.classloaders.GenericClassLoader.defineClass(GenericCla
    ssLoader.java:343)
    Truncated. see log file for complete stacktrace
    >
    <May 21, 2011 3:56:48 PM CDT> <Warning> <J2EE> <BEA-160181> <An error was encoun
    tered and ignored during undeployment. The error was: weblogic.utils.ErrorCollec
    tionException:
    There are 2 nested errors:
    java.lang.OutOfMemoryError: PermGen space
    and
    java.lang.OutOfMemoryError: PermGen space
    weblogic.utils.ErrorCollectionException:
    There are 2 nested errors:
    java.lang.OutOfMemoryError: PermGen space
    and
    java.lang.OutOfMemoryError: PermGen space
    at weblogic.application.utils.StateMachineDriver.previousState(StateMach
    ineDriver.java:227)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
    river.java:63)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.
    java:205)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.ja
    va:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(Deploym
    entStateChecker.java:161)
    Truncated. see log file for complete stacktrace
    >
    <May 21, 2011 3:57:09 PM CDT> <Error> <WLSS.Setup> <BEA-331210> <Skip SIP relate
    d logic, because error occurs when parsing sip related annotations of "em"
    com.bea.wcp.sip.engine.server.setup.SipAnnotationParsingException:
    at com.bea.wcp.sip.engine.server.setup.SipAnnotationData.<init>(SipAnnot
    ationData.java:146)
    at com.bea.wcp.sip.util.DeploymentUtil.getOrCreateAnnotationData(Deploym
    entUtil.java:70)
    at com.bea.wcp.sip.util.DeploymentUtil.isSipModule(DeploymentUtil.java:9
    6)
    at com.bea.wcp.sip.engine.server.SipServerTailModule$1.visit(SipServerTa
    ilModule.java:127)
    at com.bea.wcp.sip.engine.server.SipServerTailModule.visitAllContexts(Si
    pServerTailModule.java:112)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.OutOfMemoryError: PermGen space
    >
    <May 21, 2011 3:57:30 PM CDT> <Warning> <HTTP> <BEA-101162> <User defined listen
    er org.apache.myfaces.trinidadinternal.webapp.TrinidadListenerImpl failed: java.
    lang.OutOfMemoryError: PermGen space.
    java.lang.OutOfMemoryError: PermGen space
    >
    <May 21, 2011 3:57:35 PM CDT> <Warning> <HTTP> <BEA-101162> <User defined listen
    er com.sun.faces.config.ConfigureListener failed: java.lang.NullPointerException
    java.lang.NullPointerException
    at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureList
    ener.java:241)
    at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run
    (EventsManager.java:482)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
    dSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
    120)
    at weblogic.servlet.internal.EventsManager.notifyContextDestroyedEvent(E
    ventsManager.java:200)
    Truncated. see log file for complete stacktrace
    >
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6da442db, pid=6876, tid=5792
    [thread 6508 also had an error]
    # JRE version: 6.0_24-b50
    # Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
    # Problematic frame:
    # V [jvm.dll+0x1a42db]
    # An error report file with more information is saved as:
    # D:\Oracle\ofmw11gv5\mw\user_projects\domains\ofmw_domain1\hs_err_pid6876.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    Thanks in advance!
    NJ

  • SQL Server 2012 64 bit - reading data from dbf (DBase 3/4/5 or VFoxPro) - solution and examples

    It took me quite a while to find a solution that will enable me to read dbf files from 64 bit SQL server, so i decided to create this guide for all of you guys searching for an answer.
    Download and install Access Database Engine 64 bit : http://www.microsoft.com/en-us/download/details.aspx?id=13255
    Creating Linked server for me is the most elegant solution 
    To create a Linked Server modify following sql statement with your data and execute it:
    EXEC master.dbo.sp_addlinkedserver 
    @server = N'DBFServer', 
    @srvproduct=N'', 
    @provider=N'Microsoft.ACE.OLEDB.12.0', 
    @datasrc=N'D:\DBF\', 
    @provstr=N'dBASE IV'
    You can read data directly without linked server, but i find this less elegant
    To read data directly modify following sql statement with your data and execute it:
    Use KTCDB
    GO
    sp_configure 'show advanced options', 1
    reconfigure 
    GO
    sp_configure 'Ad Hoc Distributed Queries', 1 
    reconfigure
    GO
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 1;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 1;
    SELECT * FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                           'dBASE IV;Database=D:\DBF\;', 
                           'SELECT * FROM ODMRAD')
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'AllowInProcess' , 0;
    EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0' , N'DynamicParameters' , 0;
    GO
    sp_configure 'Ad Hoc Distributed Queries', 0
    reconfigure
    GO
    sp_configure 'show advanced options', 0
    reconfigure 
    GO
    I hope this will help you guys avoid frustration and wasting lots of time.

    Visakh, i believe you are mixing terms 'reading' and 'importing', as with solution i proposed you can consume 'live' data without the need to
    import it on every change.
    To clarify : Data in DBF's can change at any point in time, and with my solution whenever you try to read data from either linked server or directly, you will always have most recent data, contrary to the import methods where you are cloning data and actually
    could run into many problems synchronizing original and cloned data.
    Ok..I understand that
    Based on your data volatility you can configure an automated job for executing SSIS package to extract latest of data from dbase. But again it wont be "in real time". There will be slight delay depending on frequency you choose for job.
    I was suggesting it more from a datawarehousing perspective whether data refresh happens only after predefined period (daily,6hrs etc)
    If requirement is to get realtime data when you desire then definitely linked server would be the way to go.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Windows 7 Installation on Satellite C50-A-1JT

    Hi everyone, I've bought a brand new Sattelite C50-A-1JT PSCJGE from Romania with no OS. First i've tried for about a day to install Windows 7 and it won't boot, neither on DVD neither on USB, only Windows 8, but after i've searched about it, i found

  • Table to see pricing procedures assigned to document types

    Hi Folks, Greetings for the day, How can i see the pricing procedures that are assigned to document types. 1. Is there a specific table name? 2. Is there a tcode where we assign pricing procedures to document types. For example if there is pricing pr

  • Smart form for commercial invoice

    hi , i have to develop a smart form for commercial invoice for argentina in spanish language only. is there any standard smartform in SAP which i can use as a reference for this. or any help regarding this you can tell. any help is appreciated.

  • SUN cluster data service for JCAPS 513

    Hi, I am trying to setup scalable data service for logical host (JCAPS 513) using SUN cluster. Did anybody tried in the past or is it feasible? The requirement is to run the JCAPS simulateneously on two servers hosted across two data centers geograph

  • To group the data by checking the year

    I need to design a report with details based on year.i have employee details with their date of join.I want to display the fields by grouping the year alone.For eg employees joined in the year 2000,2001,2002 etc.Like this i have to display.How to che