Samples of ODAC 11.1.0.7 Beta.

I need an example of how to the class OraclePermission.
Roberto.
Edited by: rober584812 on Jun 13, 2009 1:24 PM

OraclePermission class does not differ significantly from using any other permission class. Microsoft has code samples using permission classes. These can be easily adapted to be used with OraclePermission.

Similar Messages

  • Aging made better threads getting no Vendettas

    How's that can you hear me now; decent: not undecent. What went down here with my homegrown those of you who know know the lo down...?
    Anyway The Way is clear to me now. Out of quite a few previous attempts too many samples had the carnival cruise effect, like a Hawaian string band running on/off.
    Today I laid some samples that were decent. Though the instrument editor in the EXS sampler really had me fooled into thinking that playback was the real thing.
    But it's a really interesting process how it's kind of like a fine grind, digitally resampling the original sound, like put your head in and listen [just don't get it stuck in the muddy-mod-pond].
    I like mud, actually, when the sample gets kind of muddy it's better than taking a vendetta out for not getting tech-know freaking in the mod-shack.
    Is that technical enough, winesome, for the freakin' geeks? [win some for the geeks]
    "get your tech freak on, get your tech-know freak on, go, go, go, go...'Careful the faux po's put out these lyrics, bow down when we come to your town' and no one likes that ****!"
    PMacG5 2.Ghz iBookg4 1.42   Mac OS X (10.4.7)   2.5mem Singin'ShureLynx16x M-AOzonicProKeys88Motu896ARTubesGolden FCS-Lp 7.2.☮

    Some steel laid down hard against a nice Gforce Minimonsta, that's a mini moog replica for those of you who aren't familiar with the other 'Gforce' as in made by M-Audio not Nvidia, any way this kind of music went down like an American sample gem based on some homegrown samples of steel gits.
    So Rohan you better check your spam filter or something because previously I sent you something and it sounds as if you didn't get the email.
    Dig it, this thread is still hanging!
    Balls out,
    muZAK
    PMacG5 2.Ghz iBookg4 1.42   Mac OS X (10.4.7)   2.5mem Singin'ShureLynx16x M-AOzonicProKeys88Motu896ARTubesGolden FCS-Lp 7.2.☮

  • XMII v12 Sample Project in SDN Downloads

    I downloaded and installed the xMII v12 Sample Project from SDN.   Hoping to use it to gain a better understanding of the workbench.
    I followed the instructions provided and was able to successfully import the project, and setup the required datasources.  However I began getting errors such as 'Template not found'.  After some digging I was able to figure out the problem.
    The project installs as 'Sample', with all files deployed under the 'Sample' root.  Unfortunately when the root is referenced within the htm, irpt etc... files it is spelled out as 'Samples' causing the template not found errors.
    Here's some html from OrdersSPC.htm, notice VALUE="Samples/SPC/Ord..."
    <APPLET NAME="SPCChart" CODEBASE="/XMII/Classes" CODE="iSPCChart" ARCHIVE="illum8.zip" WIDTH="760" HEIGHT="460" MAYSCRIPT>
    <PARAM NAME="QueryTemplate" VALUE="Samples/SPC/OrdersSPCQuery">
    <PARAM NAME="DisplayTemplate" VALUE="Samples/SPC/OrdersSPCChart">
    </APPLET>
    Although changing all the 'Samples' to 'Sample' did give me some time to better understand the workbench, it just made me wish for a global find and replace function. 
    Is there something I'm missing?  Would there have been a better way to fix this?
    So the intent of my post is to bring this to someones attention so it can be fixed, and provide a resolution to anyone having the same difficulty.
    Regards,
    Rod Hoffman

    From the URL
    [https://www.sdn.sap.com/irj/sdn/manufacturing-tools]
    Select xMII 12.0 Sample Projects and Tools,  under that I had difficulty with the sample project specfically.  I don't see an author, it just states "SAP Evaluation Software".
    Here is the full URL for the specific download.
    [v12 Sample Project|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/c0f4027d-b180-2a10-8daf-e0a78c7a9735 [original link is broken]]
    Rod

  • How to know the sampling rate for NI6624?

    Dears,
    I am trying to measure a transient signal that is a time-vary counter train.  The target frequency is increased from 0 Hz to 50 Hz when the measurement time rises to 1 s from 0 s.  The NI 6624 card and the LabVIEW DAQmx have been adopted.  In the block diagram, the terminal of measurement method “Low Frequency with 1 Counter” is set in “DAQmx Create Channel (CI-Frequency).vi”, and the “Finite Samples” mode is chosen in “DAQmx Timing (Implicit).vi”.  Then the transient signal points (increasing-frequency points) will be got successfully within 1 s.  Now I have a question: how do I estimate the time step “dt” between these data points?  Knowing the default sampling rate of the card seems a better way to help me to define the "dt", and calculates the time stamp at each data point.  If the foregoing concept is true, how the internal sampling rate in NI6624 obtains?  Beside, for the transient counter signal, any way to get the time stamp of data points is also welcome.
    Thanks for anyone comment,
    Adan

    Adan,
    When selecting "Implicit" as the DAQmx Timing type, you are indicating
    that a data point will be taken for every measurement the counter
    performs. When you create a task of type "Low Frequency with 1
    Counter," the counter simply uses the card's internal timebase to
    measure the period between edges of your signal. It then takes this
    period measurement and converts it to a frequency. Therefore, the
    spacing between the samples you read out is simply the inverse of the
    subsequent frequency measurement sample.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • IBook samples are useless

    The iBook store needs some serious work. Browsing is a joke, for example you can look at a category like Children's Books which gives you everything from teen dramas to baby books with no other sorting available. If you do find something and and are wondering what it looks like you can view a "sample". What a joke, most of the time that "sample" is a table of contents, publishers page a blank page or two but rarely is there a sample of the text of the book. I'm not looking for the Library of Congress catalog number when I'm looking at a sample. I want to see a sample of the text of the book. I want to see what the illustrations look like.
    The comparison between samples in iTunes and samples in iBooks makes those annoyingly short 30 sound clips look like nirvana.

    Hi Cynops,
    Interesting. Perhaps it depends on the books you are sampling? The ones I've sampled all seem to have a healthy amount of text/graphics - plenty to let me make a choice. For example:
    1) Empire of Light by Gary Gibson
    2) The ABC of Good Bridge by David Huggett (I declare a self-interest here).
    3) Foundations Fear by Gregory Benford.
    In fact the samples through iBooks (for me) are consistently better than those available through Amazon's kindle store (what a shame the number of titles is currently far poorer!)
    Robin

  • Arbitrary waveform generation from large text file

    Hello,
    I'm trying to use a PXI 6733 card hooked up to a BNC 2110 in a PXI 1031-DC chassis to output arbitrary waveforms at a sample rate of 100kS/s.  The types of waveforms I want to generate are generally going to be sine waves of frequencies less than 10 kHz, but they need to be very high quality signals, hence the high sample rate.  Eventually, we would like to go up to as high as 200 kS/s, but for right now we just want to get it to work at the lower rate. 
    Someone in the department has already created for me large text files > 1GB  with (9) columns of numbers representing the output voltages for the channels(there will be 6 channels outputting sine waves, 3 other channels with a periodic DC voltage.   The reason for the large file is that we want a continuous signal for around 30 minutes to allow for equipment testing and configuration while the signals are being generated. 
    I'm supposed to use this file to generate the output voltages on the 6733 card, but I keep getting numerous errors and I've been unable to get something that works. The code, as written, currently generates an error code 200290 immediately after the buffered data is output from the card.  Nothing ever seems to get enqued or dequed, and although I've read the Labview help on buffers, I'm still very confused about their operation so I'm not even sure if the buffer is working properly.  I was hoping some of you could look at my code, and give me some suggestions(or sample code too!) for the best way to achieve this goal.
    Thanks a lot,
    Chris(new Labview user)

    Chris:
    For context, I've pasted in the "explain error" output from LabVIEW to refer to while we work on this. More after the code...
    Error -200290 occurred at an unidentified location
    Possible reason(s):
    The generation has stopped to prevent the regeneration of old samples. Your application was unable to write samples to the background buffer fast enough to prevent old samples from being regenerated.
    To avoid this error, you can do any of the following:
    1. Increase the size of the background buffer by configuring the buffer.
    2. Increase the number of samples you write each time you invoke a write operation.
    3. Write samples more often.
    4. Reduce the sample rate.
    5. Change the data transfer mechanism from interrupts to DMA if your device supports DMA.
    6. Reduce the number of applications your computer is executing concurrently.
    In addition, if you do not need to write every sample that is generated, you can configure the regeneration mode to allow regeneration, and then use the Position and Offset attributes to write the desired samples.
    By default, the analog output on the device does what is called regeneration. Basically, if we're outputting a repeating waveform, we can simply fill the buffer once and the DAQ device will reuse the samples, reducing load on the system. What appears to be happening is that the VI can't read samples out from the file fast enough to keep up with the DAQ card. The DAQ card is set to NOT allow regeneration, so once it empties the buffer, it stops the task since there aren't any new samples available yet.
    If we go through the options, we have a few things we can try:
    1. Increase background buffer size.
    I don't think this is the best option. Our issue is with filling the buffer, and this requires more advanced configuration.
    2. Increase the number of samples written.
    This may be a better option. If we increase how many samples we commit to the buffer, we can increase the minimum time between writes in the consumer loop.
    3. Write samples more often.
    This probably isn't as feasible. If anything, you should probably have a short "Wait" function in the consumer loop where the DAQmx write is occurring, just to regulate loop timing and give the CPU some breathing space.
    4. Reduce the sample rate.
    Definitely not a feasible option for your application, so we'll just skip that one.
    5. Use DMA instead of interrupts.
    I'm 99.99999999% sure you're already using DMA, so we'll skip this one also.
    6. Reduce the number of concurrent apps on the PC.
    This is to make sure that the CPU time required to maintain good loop rates isn't being taken by, say, an antivirus scanner or something. Generally, if you don't have anything major running other than LabVIEW, you should be fine.
    I think our best bet is to increase the "Samples to Write" quantity (to increase the minimum loop period), and possibly to delay the DAQmx Start Task and consumer loop until the producer loop has had a chance to build the queue up a little. That should reduce the chance that the DAQmx task will empty the system buffer and ensure that we can prime the queue with a large quantity of samples. The consumer loop will wait for elements to become available in the queue, so I have a feeling that the file read may be what is slowing the program down. Once the queue empties, we'll see the DAQmx error surface again. The only real solution is to load the file to memory farther ahead of time.
    Hope that helps!
    Caleb Harris
    National Instruments | Mechanical Engineer | http://www.ni.com/support

  • How do I read data from a DMM or DC Power Supply at a specified rate?

    I have a PXI system with 4071 DMMs and 4110 DC Power Supplies. I want to be able to measure the power consumption of my DUT as it performs various operations. This is what my process flow looks like:
    1. Configure DMM and Power Supply 
    2. Wait for DUT to go into a certain mode
    3. Start  Acquiring data from DMM and PS.
    4. Wait for DUT to get out of this mode
    5. Stop Acquiring data from DMM and PS.
    Since the duration of step #4 is uncertain, I cannot tell the units to collect a predetermined number of samples and give it back to me. Instead I have to take readings as long as it's required. 
    I'm attaching screenshots of my setup and read process. The reading is done inside a timed loop which is running at 1kHz.
    The problem is that using niDMM Read Multi-Point or niDCPower Measure Multiple takes 5-9ms before I get a reading, so I'm not really getting 1ms resolution in my data. I'm sure there are other folks who have had the need to read data from these devices with better time-resolution, so if anyone can point me in the correct direction, it would be great. I'm pretty sure I'm not doing the correct thing here.
    Attachments:
    1-Setup.PNG ‏12 KB
    2-Read.PNG ‏9 KB

    What is really confusing to me is why you are even using the multi-point function when you set the sample count to 1. If you want multiple points, request multiple samples and let the DMM acquire them at a rate you specify. If you want a single sample, use the normal Read. You also need to pay attention to how fast the DMM can acquire. If you want the fastest sample rates, you might be a lot better off with a DAQ board.

  • How can I mark large sections of a topic to be skipped during RH spell check?

    I have a RoboHelp Webhelp project in which many of the topics have sample code and other entire lines of package, class, and other names that I want
    the spell checker to bypass.
    Unfortunately, there is no option to select the text and mark it to be ignored.
    When I run spell check, RH flags certain words or phrases and asks me how to handle them, one at a time.
    If I close the spell check dialog, RH bounces right back to the spot where I stopped it during a subsequent spell check.
    This is tedious and I end up with multiple <rhignored? = "text to be ignored".> in a single code sample, for example.
    Is there a better way to mark sections of text to be skipped?
    I see this as basic functionality, and maybe I am missing something I did not find on this forum or in the help files.
    Thanks so much!
    Cynthia
    I meant to add that I am using RoboHelp 9 on a PC running Vista.

    Sorry but there's no way I have seen. I state that quite categorically as what will hopefully happen is that someone will now respond they do know a way.
    I'm not sure I would agree what you want is basic functionality but I do understand your need for it.
    The more people who request a feature, the more likely it is to be actioned. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Converting tdm to lvm/ working with large amount of data

    I use a PCI 6251 card for data aquisition, and labview version 8; to log 5 channels at 100 Khz for approximately 4-5 million samples on each channel (the more the better). I use the express VI for reading and writing data which is strored in .tdm format (file size of the .tdx file is around 150 MB). I did not store it in lvm format to reduce the time taken to aquire data.
    1. how do i convert this binary file to a .mat file ?
    2. In another approach,  I converted the tdm file into lvm format, this works as long as the file size is small (say 50 MB) bigger than that labview memory gets full and will not save the new file. what is an efficient method to write data (say into lvm format) for big size files without causing labview memory to overflow? I tried saving to multiple files, saving one channel at a time, increased the computer's virtual memory (upto 4880 MB) but i still have problems with 'labview memory full' error.
    3.  Another problem i noticed with labview is that once it is used to aquire data, it occupies a lot of the computer's memory, even after the VI stops running, is ther a way to refresh the memory and is this mainly due to  bad programming?
    any suggestions?

    I assume from your first question that you are attempting to get your data into Matlab.  If that is the case, you have three options:
    You can treat the tdx file as a binary file and read directly from Matlab.  Each channel is a contiguous block of the data type you stored it in (DBL, I32, etc.), with the channels in the order you stored them.  You probably know how many points are in each channel.  If not, you can get this information from the XML in the tdm file.  This is probably your best option, since you won't have to convert anything.
    Early versions of TDM storage (those shipping with LV7.1 or earlier) automatically read the entire file into memory when you load it.  If you have LV7.1, you can upgrade to a version which allows you to read portions of the file by downloading and installing the demo version of LV8.  This will upgrade the shared USI component.  You can then read a portion of your large data set into memory and stream it back out to LVM.
    Do option 2, but use NI-HWS (available on your driver CD under the computer based instruments tab) instead of LVM.  HWS is a hierarchical binary format based on HDF5, so Matlab can read the files directly through its HDF5 interface.  You just need to know the file structure.  You can figure that out using HDFView.  If you take this route and have questions, reply to this post and I will try to answer them.  Note that you may wish to use HWS for your future storage, since its performance is much better than TDM and you can read it from Matlab.  HWS/HDF5 also supports compression, and at your data rates, you can probably pull this off while streaming to disk, if you have a reasonably fast computer.
    Handling large data sets in LabVIEW is an art, like most programming languages.  Check out the tutorial Managing Large Data Sets in LabVIEW for some helpful pointers and code.
    LabVIEW does not release memory until a VI exits memory, even if the VI is not running.  This is an optimization to prevent a repeatedly called VI from requesting the same memory every time it is called.  You can reduce this problem considerably by writing empty arrays to all your front panel objects before you exit your top level VI.  Graphs are a particulary common problem.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • How to measure thermocouple in lab view and save the data..

    hi.. i am using my DAQ with 2 analog channels.. i need to acquire signal from thermo couple i have T type thermo couple with brown jacket.. i have connected the thermocoupe in ai0.. and i selected the thermocouple type... when i select the built in option.. it shows some error.. then if i use cjc value as constant 25 its working.. but the signal acquired is not matching well.. it show huge variation.. some times it goes for -20 and maximum of 60 which is not possible at all...just in air medium i checked it... when i used infrared thermometer it shows around 24 C... kindly help me.. i have attached the screen shot of the block diagram panel... and acquired signal..
    Attachments:
    Doc1.docx ‏425 KB

    Hi,
    You hooked up to the analog inputs on your device correctly. Thermocouples measure the difference in temperature between the DAQ and the location where the wires are welded together. They need to be insulated thermally and electrically in-between. Thermocouples have very low response compared to the normal 10 volt DAQ range. Type T is only 43 uV/C (thats 0.000043V compared to 10 volts). To see if the thermocouple is working, you need to heat up the welded end. They measure 0 V when the welded end is at room temperature. Type T only goes up to a few hundred C, so be careful, but you can probably wave a lighter under it to see if it's working. You might try the audio in on your device. You don't need a high sampling rate and it may have a better amplifier and dynamic range.
    To get absolute temperature you need to offset the thermocouple reading from the DAQ temperature (room temp usually). You could do this by measuring it with your IR thermometer. Check into the NI 9211 and simliar which are much better suited to thermocouple measurements.
    Good luck!

  • Error starting WebLogic Server from Workshop

    I get the following error when trying to start WebLogic server
    from within Workshop. Any ideas? Also, it looks like the sample
    code that came with the first beta is no longer there - is that
    supposed to be the case?
    Build # 2002.0423.3
    Values from Workshop.properties:
    #Thu Jun 13 14:34:08 MDT 2002
    paths.domain=workshop
    paths.serverRoot=localhost
    paths.startCmd=startWebLogic
    defaultJndiDataSource=cgSampleDataSource
    paths.browser=C\:\\Program Files\\Internet Explorer\\IExplore.exe
    paths.httpRoot=http\://localhost\:7001
    paths.rootDirectory=C\:\\bea7.0beta2\\weblogic700\\samples
    paths.stopCmd=stopWebLogic
    recent.lastProject=C\:\\bea7.0beta2\\weblogic700\\samples\\workshop\\applications\\samples
    paths.classPath=C\:\\bea7.0beta2\\jdk131_02\\jre\\lib\\rt.jar;C\:\\bea7.0beta2\\weblogic700\\workshop\\stdlib.jar;C\:\\bea7.0beta2\\weblogic700\\server\\lib\\weblogic.jar
    recent.lastFiles=C\:\\bea7.0beta2\\weblogic700\\samples\\workshop\\applications\\samples\\HelloWorld.jws
    controls.applicationView.enabled=0
    paths.port=7001

    I get the following error when trying to start WebLogic server
    from within Workshop. Any ideas? Also, it looks like the sample
    code that came with the first beta is no longer there - is that
    supposed to be the case?
    Build # 2002.0423.3
    Values from Workshop.properties:
    #Thu Jun 13 14:34:08 MDT 2002
    paths.domain=workshop
    paths.serverRoot=localhost
    paths.startCmd=startWebLogic
    defaultJndiDataSource=cgSampleDataSource
    paths.browser=C\:\\Program Files\\Internet Explorer\\IExplore.exe
    paths.httpRoot=http\://localhost\:7001
    paths.rootDirectory=C\:\\bea7.0beta2\\weblogic700\\samples
    paths.stopCmd=stopWebLogic
    recent.lastProject=C\:\\bea7.0beta2\\weblogic700\\samples\\workshop\\applications\\samples
    paths.classPath=C\:\\bea7.0beta2\\jdk131_02\\jre\\lib\\rt.jar;C\:\\bea7.0beta2\\weblogic700\\workshop\\stdlib.jar;C\:\\bea7.0beta2\\weblogic700\\server\\lib\\weblogic.jar
    recent.lastFiles=C\:\\bea7.0beta2\\weblogic700\\samples\\workshop\\applications\\samples\\HelloWorld.jws
    controls.applicationView.enabled=0
    paths.port=7001

  • Sitting Solo Trumpet or Trumpet Section in the Orchestra

    Hi,
    This is a multi-setup question. Anyone with Logic Pro can set things up
    exactly as I have them, for this question.
    The first part of the set-up is to locate the Apple Solo Trumpet and
    assign it to an audio instrument. So, after bringing up the EXS24,
    select Factory > O5 Horns & Woodwinds > Trumpet.
    Now, obtain two free solo trumpets (which will be a part of this question)
    by going to
    http://www.westgatestudios.com/free_stuff.htm
    and doesnload at least these two:
    trumpet_sus.rar
    trumpetvib_susrar
    then "un-rar" these, and make these two sample instruments
    available to EXS24. Then, load each of them into their on
    audio instrument.
    Set things up so that when you press a key on your keyboard,
    you hear with two trumpets acting as a section (preferably
    Eastgate's two trumpets for this test), or, with a bit of fiddling,
    you press a key and hear all three trumpets playing in unison.
    Also, for the Apple trumpet, go into EXS24 and edit it,
    deleting both the group "Trumpet f slu" and its associated
    zones, then changing group "trumpet f ln" so that it responds
    to Select Range of 0 thru 127. Then save as a new sample
    instrument (I used the title "Apple Better Trumpet".
    At this stage, every one has the same, three instruments that
    will be a part of this question.
    Now, take the outputs from these three audio instruments and connect
    their lines to a bus. Then, send the bus output to output 1-2.
    Thanks,
    Sys6

    Hi,
    The reason I ask the above question, is that, in general, it would be
    ideal if I could take solo trumpet samples, such as in this example,
    and also use them to construct two trumpets playing in unison,
    or three trumpets playing in unison. And, make it sound as close
    to "professional" as possible.
    In this way, similar techniques can be used for the French Horns and
    the trombones.
    The upshot being that I would not need to use settings which say,
    "Trumpets" or "Horns" or "Trombones", because at this stage,
    given my limited resources, I do not necessarily know how many
    trumpets are actually playing a given line (for instance, I have
    SAM free trumpets and I have Pro Sessions Brass, and they do not
    specify how many instruments are playing a given note, and sometimes
    it appears that the number of instruments playing gets quite large
    when the dynamic for the SAM free trumpets is increased).
    And, I do want to know exactly how many brass instruments are playing
    and control this, so that when I form chords using a mixture of
    brass instruments, with some brass instruments doubling the same
    note, that the effect mimics reality as far as chord balance goes. In this,
    tool, Logic Pro, and a sufficient set of solo brass samples, could
    be used as a neat learning tool (such as making sure that in forte,
    two French Horns double a note when the other notes are taken singly
    by Trombones and Trumpets, and the like). Although, there are other
    concerns with forming brass chords, so Logic Pro potentially becomes
    a neat test bed for more unusual set-ups and configurations of complex
    brass chords.
    Also, of course, I'd like a solo brass instrument to sound more realistic
    and "not in your face".
    Thanks,
    Sys6

  • SCOM 2012 R2 System Performance Report issue

    Dear All,
    We have SCOM 2012 R2 with SQL Server 2012.
    For last few days we are stucked with SCOM System Performance Report. We are trying to achieve following:
    Generate a report of last 15 days of all the following components in a single report.
    Get Memory Utilization of a Particular Server in Line Chart form with Horizontal counter showing 0 to 100% Utilization and vertical couter showing Time line. Also showing total Memory of the server.
    Get Processor Utilization report of a Particular Server in Line Chart form with Horizontal counter showing 0 to 100% Utilization and vertical couter showing Time line. Also showing process installed on the server.
    Get Disk Time report with (I/O) MB / Sec in Line Chart form.
    I have tried creating a sample with photo editor to provide you better understanding of my requirement.
    We can go for customizing reports with Report builder or any other tool which can help us achieve this task. Need your suggestion for the above.
    Thanks
    VN

    1) open the url http://reportserver/reports where reportserver is your report server
    2) navigate the folder Microsoft.systemCenter.Datawarehouse.Report.library
    3) click the arrow of report Microsoft.SystemCenter.Datawarehouse.Report.Performance and select download
    4) repeat setp 3) for Microsoft.SystemCenter.Datawarehouse.Report.Performance.rpdl
    5) rename its file name and upload its into the folder Microsoft.systemCenter.Datawarehouse.Report.library
    6) click the arrow of report which you upload on step 5) and select manage
    7) update its DataWarehousMain --> A shared data source as /Data Warehouse Main
    8) update Custom data source as Credentials are not required and click Apply
    9) click the arrow of report which you upload on step 5) and select Edit in Report Builder
    10) right click the unwanted part and delete
    Roger

  • How can I store the previous data elements in labview

    Hello,
        I am
    using PXI1042Q chassis with 8106 microcontroller and PXI 6289 DAQ
    cards. I am implementing a real time system where we acquire data
    point-by-point.  I would like to know if there is any way that I
    can store previous 500 sample points. I know that shift registers can
    be used to store values from previous cycles. It seems impractical to
    insert 500 shift registers in to system. Is there any way to store the
    previous 500 samples?
    Thanks,
    kartik 

    altenbach wrote:
    For better memory performance, you would use a fixed size=500 array and replace the oldest element with the newest at each iteration. Keep track of the current element index with another shift regsiter.
    Here is an old example tha keeps the last 10 values in a size=10 shift register and calculates the mean.
    Modify as needed.
    Information about action engines can be found here.
    There is also the "collector express VI". Since it uses dynamic data, it's probably more demanding on resources.
    LabVIEW Champion . Do more with less code and in less time .

  • Using Resultsets in Oracle without being Proprietary

    Suns tutorial path for returning resultsets from stored procedures indicates that the following should work...
    CallableStatement cs = con.prepareCall("{call SHOW_SUPPLIERS}");
    ResultSet rs = cs.executeQuery();
    Thats if you build your stored procedure something like this ...
    String createProcedure = "create procedure SHOW_SUPPLIERS " + "as " + "select SUPPLIERS.SUP_NAME, COFFEES.COF_NAME " + "from SUPPLIERS, COFFEES " + "where SUPPLIERS.SUP_ID = COFFEES.SUP_ID " + "order by SUP_NAME";
    We are using oracle 8.1.6. However I've been told that with oracle procedures when you return a result set from a called procedure you return a p_cursor variable. Somthing like this
    (p_cursor in out SHOW_SUPPLIERS.SHOCurTyp)
    is
    begin
    open p_cursor for
    select * from suppliers
    In which case the above mentioned sun code doesn't work.
    We want to use jdbc to call a stored procedure that returns a resultset that does not require us to import any proprietary oracle objects...
    Is there another way to write these stored procedures, rather than using this cursor construct? Are we missing something in the way we invoke them?
    null

    Note the following remarks that prefix the sample code you quote from JavaSoft:
    As previously stated, the syntax for defining a stored procedure is different for each DBMS. For example, some use begin . . . end or other keywords to indicate the beginning and ending of the procedure definition. In some DBMSs, the following SQL statement creates a stored procedure: [sample code]
    In the future a good bet for writing stored procedures in a portable way will be to use ANSI SQLJ part 1 specification. (Unfortunately, at this point in time Oracle supports only the functionality of SQLJ part 1 but not yet the syntax.)
    In the meantime, you may want to apply good old encapsulation to abstract away each vendors' specific SQL syntax and JDBC usage.
    One more note: putting queries into stored procedures and returning them as ref cursors (rather than executing them at the top level) will decrease your query performance.

Maybe you are looking for