Queue size for XNET Write Signal Waveform

Hello,
I'm trying to use XNET librairy to play a predefined waveform on an output signal. I'm working with LabVIEW 2014 SP1, XNET 14.5 on a W7 Pro 32 bits operating system. I use a NI PCI-8512 card. It's my first application using xnet library.
In my test application, I give to user the possibility to define the waveform to play. The total time and the sample frequency are settable. The output CAN signal is cyclic, with a cycle time of 0.01s (10Hz). I chose to use same frequency for sample my waveform and the CAN writing.
I've difficulties to work with the queue size. In this example, that's good but I don't really why. I've tested different values of Queue size and 100000 seems to be good until 60sec. But for longer times (about 5 minutes), this method is not good...
What is the good way to work in this mode, and how to use efficiently the queue size property? The information and the example in the NI-XNET Hardware and Software Help are not very probant...
Thanks per advance!
Francis M | Voir mon profil
Certified LabVIEW Developer
Solved!
Go to Solution.

Sounds like you have the concept.  I've never done this with signals, only frames, but I assume there is a queued option.  You'll want to read the help, or just try it and see if it works.  Attached is an example that does not run which demonstrates something similar to what I've done in the past.  Basically fill the buffer, wait a little, then add more frames to fill it again.  Repeat until there are no more frames to add to the buffer.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
XNET Queued Buffer Example.vi ‏12 KB

Similar Messages

  • Can I get the queue size for ExecutorService

    Can I get the queue size for ExecutorService created by newSingleThreadExecutor.

    You would need to go to the implemented class or another interface. That interface does not define that method - read the JavaDoc on the API for more

  • XNET Resample fails, bug? (Signal Waveform)

    Hello,
    I'm using:
    XNET 1.7
    NI-DAQmx 9.7
    LabView 2011
    cDAQ-9178 and module 9862, also tried cDAQ-9171 and module 9862 with same results.
    I'm using the simple "CAN Signal Input Waveform.vi" to monitor some singnals from vehicle CAN bus (attached database).  When resampling at 100Hz the signal "Brake_pedal_SW" do not show any change (remains at 0 value) when the brake pedal is applied, instead "Brake_lights" signal changes normally, both signals shoud have the same value. Resampling at 1000Hz both signals remain to 0, and if I resample at 10Hz both signals seem to show the correct values. Similar behaviour happens with the other 2 channels.
    Due to this behaviour I decided to record some data using "CAN Signal Input XY.vi" and plot it, everithing works fine so I don't see a reason why Signal Waveform is returning wrong values other than it is not doing well the resample.
    As we have the original data from the "CAN Signal Input XY.vi" on the array control, how we can generate the same frame outputs, with the same timings to reproduce the problem?
    Can any one explain that behaviour or it's a bug from the resampling?
    Regards,
    Marc
    Attachments:
    Original Data Plot.vi ‏104 KB
    CAN Signal Input XY.vi ‏94 KB

    I'm sad and disappointed because one week after my post and support request to NI (Reference#9023-GRQ 747) no one answered or contacted me.
    After many tests I could reproduce the problem and the final conclusion is that "XNET Read (Signal Waveform).vi" doesn't work properly inside a timed loop. If you reproduce always the same data from one CAN port and read that data from another CAN port the read values are wrong and different every time. So data is not well resampled or whatever... is this a bug?
    To reproduce the problem:
    You need 2 NI 9862 modules, I used 2 different chassis, the cDAQ-9171 to reproduce/generate the CAN data and the cDAQ-9178 to read it.
    You need to connect them properly one to each other and power them.
    1. Open the vi attached call "CAN Signal Input Waveform_Timed.vi"
    2. Select your input interface, database "Database_red.xml" and the 4 signals: Brake_lights, Brake_pedal_SW, Gear and Retarder_position
    3. Run it to start the acquisition
    4. Open the vi attached call "CAN Signal Input Waveform_Timed.vi"
    5. Open the vi "Reproduce Output.vi"
    6. Select your output interface
    7. Run it to generate the otput
    8. When vi  "Reproduce Output.vi" finishes (arround 2 minutes) stop the vi  "CAN Signal Input Waveform_Timed.vi" using the stop button.
    Now you can compare the output graph with the one from my first post and see the diferences. Every time you reproduce the data the readins are diferent.
    Now if you repeat the proces but using the vi call "CAN Signal Input Waveform" no timed loop used, the readings seem to be good.
    Unfortunately I use timed loops in my application so it is a BIG problem !!!
    See below picture of a bad readings, Brake_lights and Brake_pedal_SW signals should be equal and are different.
    Hope someone can answer to this post, specially from NI to work around this.
    Regards,
    Marc.
    Attachments:
    XNET Bad Resample.zip ‏390 KB

  • How to reduce "Wait for Log Writer"

    Hi,
    in a production system using MaxDB 7.6.03.07 i checked follow acitivities about Log:
    Log Pages Written: 32.039
    Wait for Log Writer: 31.530
    the docs explains that "Wait for Log Writer", Indicates how often it was necessary to wait for a log entry to be written.
    then what steps i must follow to reduce this?
    thanks for any help
    Clóvis

    Hi,
    when the log Io queue is full all user tasks who want to insert entries into the log io queue have to wait until the log entries of the queue have been written to the log volume - they are wiating for LOG Writer
    First you should check the size of the LOG_IO_QUEUE Parameter.
    Think about increaseing the parameter value.
    Second will be to check the time for write I/O to the log -> use DB-Analyzer and activate time measurement via x_cons <DBNAME> time enable command.
    Then you will get time for write I/O on the log in the DB-Analyzer log files (expert)
    You will find more information about MaxDb Logging and Performance Analysis on maxdb.sap.com -> [training material|http://maxdb.sap.com/training] chapter logging and performance analysis.
    Regards, Christiane

  • Backing store queue size configuration

    I have a backing store for my cache and have set it up for write-behinds. However I do not see any documentation to set the write-behind queue size. The JMX value "Coherence > Cache > DistributedCache > MyCache > QueueSize" shows 0. What does 0 mean - is it unbounded or no buffering?
    Thanks,
    Ashwin.

    Hi Ashwin,
    this is what the documentation says about QueueSize (on CacheMBean):
    QueueSize      Integer      RO      The size of the write-behind queue size. Applicable only for WRITE-BEHIND persistence type.
    As you see, this is a read only value, and I believe it means that everything is flushed, and if positive, it means the number of unwritten entries.
    You can specify the number of entries to buffer (for retries) from those entries which have failed to be written.
    http://wiki.tangosol.com/display/COH34UG/read-write-backing-map-scheme
    Look at the write-requeue-threshold setting for that.
    I believe, not-yet-attempted writes are not discarded before the first attempt, the write-requeue-threshold does not apply to those.
    Best regards,
    Robert

  • Advice on sequence settings - frame size for VHS video in FCP

    Hello,
    I was hoping that I could get some advice on editing and output for video captured from VHS Tapes to ensure the best quality possible.
    My current workflow to digitize the VHS tapes is:
    VHS signal from JVC S7600u with TBC into ADVC 300 (no de-interlace or other filters set) into a Mac Pro via firewire.  Capture preset in FCP is DV NTSC 48khz.
    Once in FCP - the captured VHS video frame size is 720 X 480, Vid rate is 29.97, pixel aspect is NTSC-CCIR 601 and field dominance is lower (even)
    My questions are:
    If my final destination is for You Tube sharing , are these the best sequence/ frame size settings or should I convert the sequence frame size to 640 X 480, or should I leave at 720 X 480 while working in FCP and then output to Compressor and select the H264 you tube sharing video setting and change the frame size to 640 X 480? 
    Should I de- interlace for internet/youtube destination?
    Should I de-interlace for DVD/TV destination?
    If I want to burn the finished project to DVD and watch the video on a progressive montitor/ TV screen, what would be the best settings/frame size for that?
    If any of you out there have experience with editing vcr/analog video in FCP and have a good workflow to ensure best quality, I would really appreciate  any advice/suggestions.
    Thanks in advance.

    Digitize to 720X480 frame size in FCP. In compressor, your YouTube preset will automatically deinterlace and a square pixel aspect ratio.No deinterlacing for DVD.
    Russ

  • Network Stream Error -314340 due to buffer size on the writer endpoint

    Hello everyone,
    I just wanted to share a somewhat odd experience we had with the network stream VIs.  We found this problem in LV2014 but aren't aware if it is new or not.  I searched for a while on the network stream endpoint creation error -314340 and couldn't come up with any useful links to our problem.  The good news is that we have fixed our problem but I wanted to explain it a little more in case anyone else has a similar problem.
    The specific network stream error -314340 should seemingly occur if you are attempting to connect to a network stream endpoint that is already connected to another endpoint or in which the URL points to a different endpoint than the one trying to connect. 
    We ran into this issue on attempting to connect to a remote PXI chassis (PXIe-8135) running LabVIEW real-time from an HMI machine, both of which have three NICs and access different networks.  We have a class that wraps the network stream VIs and we have deployed this class across four machines (Windows and RT) to establish over 30 network streams between these machines.  The class can distinguish between messaging streams that handle clusters of control and status information and also data streams that contain a cluster with a timestamp and 24 I16s.  It was on the data network streams that we ran into the issue. 
    The symptoms of the problem were that we if would attempt to use the HMI computer with a reader endpoint specifying the URL of the writer endpoint on the real-time PXI, the reader endpoint would return with an error of -314340, indicating the writer endpoint was pointing to a third location.  Leaving the URL blank on the writer endpoint blank and running in real-time interactive or startup VI made no difference.   However, the writer endpoint would return without error and eventually catch a remote endpoint destroyed.  To make things more interesting, if you specified the URL on the writer endpoint instead of the reader endpoint, the connection would be made as expected. 
    Ultimately through experimenting with it, we found that the buffer size of the create writer endpoint  for the data stream was causing the problem and that we had fat fingered the constants for this buffer size.   Also, pre-allocating or allocating the buffer on the fly made no difference.  We imagine that it may be due to the fact we are using a complex data type with a cluster with an array inside of it and it can be difficult to allocate a buffer for this data type.  We guess that the issue may be that by the reader endpoint establishing the connection to a writer with a large buffer size specified, the writer endpoint ultimately times out somewhere in the handshaking routine that is hidden below the surface. 
    I just wanted to post this so others would have a reference if they run into a similar situation and again for reference we found this in LV2014 but are not aware if it is a problem in earlier versions.
    Thanks,
    Curtiss

    Hi Curtiss!
    Thank you for your post!  Would it be possible for you to add some steps that others can use to reproduce/resolve the issue?
    Regards,
    Kelly B.
    Applications Engineering
    National Instruments

  • SGA Size for 8.1.7.4 32 bit? , some Interview Questions

    Hi buddies,
    I got some interview questions, might be simple for geeks in DBA. I am in need of answers. Could anyone help me.
    Thanks,
    Raaj
    1) Does windows NT support direct I/O?
    Answer: Choose one of the answers that apply
    A: No, only AIO
    B: Yes, depending on hardware.
    C: Yes.
    D: No.
    2) Can you take a coldbackup from solaris and use it on windows NT?
    Answer: Choose one of the answers that apply
    A: Yes.
    B: Yes if RMAN backup performed from NT server.
    C: Yes, after running RMAN convert.
    D: No.
    3) All of the following will alter the number of checkpoints that occur in one hour on the database, except one. Which is it?
    Answer: Choose one of the answers that apply
    A: Decreasing tablespace size
    B: Decreasing size of redo log members
    C: Setting LOG_CHECKPOINT_INTERVAL greater than the size of the redo log file
    D: Setting LOG_CHECKPOINT_TIMEOUT to zero
    4) The DBA is attempting to back up the Oracle database control file. After
    issuing the ALTER DATABASE BACKUP CONTROLFILE TO TRACE command, where can the DBA find the backup control file creation materials Oracle created for him or her ?
    Answer: Choose one of the answers that apply
    A: USER_DUMP_DEST
    B: LOG_ARCHIVE_DEST
    C: CORE_DUMP_DEST
    D: BACKGROUND_DUMP_DEST
    5) What is the most important action a DBA must perform after changing the database from NOARCHIVELOG TO ARCHIVELOG?
    Answer: Choose one of the answers that apply
    A: Shutdown normal and restart the database
    B: Perform a full logical database backup
    C: Perform a full offline database backup
    D: Manually switch the log files
    6) Which of the following choices lists an ALTER USER option that can be executed by the user herself or himself?
    Answer: Choose one of the answers that apply
    A: DEFAULT TABLESPACE
    B: IDENTIFIED BY
    C: TEMPORARY TABLESPACE
    D: PROFILE
    7) You need to view the initialization parameter settings for your Oracle
    database. Which of the following choices does not identify a method
    you can use to obtain values set for your initialization parameters?
    Answer: Choose one of the answers that apply
    A: Issue SELECT * FROM DBA_PARAMETERS; from SQL*Plus
    B: Issue SELECT * FROM V$PARAMETER; from SQL*Plus
    C: Issue SHOW PARAMETERS from Server Manager
    D: Use OEM Instance Manager
    8) As a result of a media failure, the current online redo log group is corrupted, the database crashes, as the current online group is inaccessible. Which type of incomplete recovery are you most likely to perform ?
    Answer: Choose one of the answers that apply
    A: Change-based
    B: Time-based
    C: Recovery using a backup control file
    D: Cancel-based
    9) User SNOW executes the following statement: SELECT * FROM EMP. This
    statement executes successfully, and SNOW can see the output. Table
    EMP is owned by user REED. What object would be required in order for
    this scenario to happen ?
    Answer: Choose one of the answers that apply
    A: User SNOW would need the role to view table EMP.
    B: User SNOW would need the privileges to view table EMP.
    C: User SNOW would need a synonym for table EMP.
    D: User SNOW would need the password for table EMP.
    10) Which one of the following statements is true?
    Answer: Choose one of the answers that apply
    A: The request queue is common, and the response queue is different for all the dispatchers.
    B: The request queue and response queue are different for all the dispatchers.
    C: The request queue is different, and response queue is common for all the dispatchers.
    D: The request queue and response queue are common for all the dispatchers.
    11) What is the largest SGA size for 8.1.7.4 32 bit?
    Answer: Choose one of the answers that apply
    A: approximately 2GB
    B: approximately 3.5GB
    C: approximately 4GB
    D: approximately 8GB
    E: approximately 16GB
    12) The DBA is about to perform some administrative tasks. Specifying the
    OPTIMAL parameter has which of the following appropriate uses?
    Answer: Choose one of the answers that apply
    A: Limiting concurrent users
    B: Limiting concurrent transactions
    C: Limiting growth of rollback segments
    D: Limiting growth of tables
    13) If the DBA wants to find information about how often transactions are
    wrapping transaction information between multiple rollback segment
    extents, where would the DBA look to find that information?
    Answer: Choose one of the answers that apply
    A: DBA_ROLLBACK_SEGS
    B: V$ROLLSTAT
    C: V$ROLLNAME
    D: DBA_SEGMENTS
    14) You have 30 rollback segments in your database, for which
    TRANSACTIONS_PER_ ROLLBACK_SEGMENT is set to 49 and
    TRANSACTIONS is set to 1000. During periods of heavy usage, about how many rollback segments will be actively used by Oracle?
    Answer: Choose one of the answers that apply
    A: 50
    B: 60
    C: 20
    D: 30
    15) The DBA has a table created with the following statement:
    CREATE TABLE EMPL
    (EMPID NUMBER(10),
    LASTNAME VARCHAR2(40),
    RESUME LONG RAW);
    The DBA attempts to issue the following statement:
    ALTER TABLE EMPL
    ADD ( PERF_APPRAISE LONG);
    What happens?
    Answer: Choose one of the answers that apply
    A: The statement succeeds.
    B: The statement succeeds, but column is added as VARCHAR2.
    C: The statement fails.
    D: The statement adds a disabled constraint.
    16) The primary key of the EMP table has three columns, EMPID, LASTNAME,
    and FIRSTNAME. You issue the following SELECT statement:
    SELECT * FROM EMP WHERE LASTNAME = 'HARRIS' AND FIRSTNAME = 'BILLI'
    AND EMPID = '5069493';
    Where would you look to see if this query will use the index associated
    with the primary key?
    Answer: Choose one of the answers that apply
    A: DBA_IND_COLUMNS
    B: DBA_TAB_COLUMNS
    C: DBA_INDEXES
    D: DBA_CLU_COLUMNS
    17) You are configuring your index to be stored in a tablespace. Which of the
    following storage parameters are not appropriate for indexes?
    Answer: Choose one of the answers that apply
    A: OPTIMAL
    B: INITIAL
    C: PCTINCREASE
    D: NEXT
    18) You need to set up auditing in an order entry and product shipment
    application so that when the ORDER_STATUS column in the ORDERS
    table changes to ‘SHIPPED’, a record is placed in a special table associated
    with a part of the application that gives sales representatives a daily list
    of customers to call on a follow-up to make sure the customer is satisfied
    with the order. Which of the following choices represents the best way
    to perform this auditing?
    Answer: Choose one of the answers that apply
    A: Statement auditing
    B: Object auditing
    C: Audit by access
    D: Value-based auditing
    19) Information in the buffer cache is saved back to disk in each of the
    following situations except one. In which situation does this not occur?
    Answer: Choose one of the answers that apply
    A: When a time-out occurs
    B: When a log switch occurs
    C: When the shared pool is flushed
    D: When a checkpoint occurs
    20) In order to allow remote administration of users and tablespaces on an Oracle database, which of the following types of files must exist in the database?
    Answer: Choose one of the answers that apply
    A: Password file
    B: Initialization file
    C: Datafile
    D: Control file
    E: Nothing, SYSDBA privileges are not required for these actions.
    21) You are planning the storage requirements for your database. Which of the following is an effect of maintaining a high PCTFREE for a table?
    Answer: Choose one of the answers that apply
    A: Oracle will manage filling data blocks with new records more actively.
    B: Oracle will manage filling data blocks with new records less actively.
    C: Oracle will leave more space free in data blocks for existing records.
    D: Oracle will leave less space free in data blocks for existing records.
    22) You manage database access privileges with roles where possible.
    You have granted the SELECT_MY_TABLE role to another role, called
    EMP_DEVELOPER. To view information about other roles that may be
    granted to EMP_DEVELOPER, which of the following dictionary views
    are appropriate?
    Answer: Choose one of the answers that apply
    A: DBA_ROLE_PRIVS
    B: DBA_TAB_PRIVS
    C: USER_SYS_PRIVS
    D: ROLE_ROLE_PRIVS
    23) In order to set your SQL*Plus session so that your NLS_DATE_FORMAT
    information is altered in a specific way every time you log into Oracle,
    what method would be used?
    Answer: Choose one of the answers that apply
    A: Setting preferences in the appropriate menu option
    B: Creating an appropriate LOGIN.SQL file
    C: Issuing the ALTER USER statement
    D: Issuing the ALTER TABLE statement
    24) You create a sequence with the following statement:
    CREATE SEQUENCE MY_SEQ
    START WITH 394
    INCREMENT BY 12
    NOMINVALUE
    NOMAXVALUE
    NOCACHE
    NOCYCLE;
    Two users have already issued SQL statements to obtain NEXTVAL, and
    four more have issued SQL statements to obtain CURRVAL. If you issue a
    SQL statement to obtain the NEXTVAL, what will Oracle return?
    Answer: Choose one of the answers that apply
    A: 406
    B: 418
    C: 430
    D: 442

    1.-
    2.c
    3.a
    4.a
    5.c
    6.b
    7.a
    8.d
    9.b
    10.a -
    11.a
    12.c
    13.b
    14.d
    15.c
    16.a -
    17.a
    18.d
    19.c
    20.a
    21. -
    22.d
    23.b
    24.?
    hope it helps u.
    Thanks
    Kuljeet

  • How to set the size for height of iView tray?

    Hi,
    I have created a ABAP webdynpro component and integrated this comp with iView. Then i integrated iView into Page in portal. That is working fine.
    But the size of tray/window which is displayed in the page is very small.
    How to increase the height of that Tray/window/iView containing my component?

    Hi,
    By changing the maximum automatic height and Minimum automatic height property of the iview you can set the size for height of your iview.
    to do this follow the setps:
    goto content administrator -> portal content -> your folder where you created your iview or directly to your iview -> right click -> open -> object,
    and now in property category choose appearance-Size from the drop down menu and set the above properties to your required height.
    if you want the end user to modify this property set the property to read/write .
    *********please reward points if the information is helpful to you********************

  • Max Size for a message thru SAP PI 7.0 SPS13

    Hi,
         I have a problem with a very large message. The scenario is a JDBC -> SAP PI -> ABAP Proxy. I'm getting this error:
    ErrorTransmitting the message to endpoint http://<server>:8000/sap/xi/engine?type=entry
    using connection JDBC_http://sap.com/xi/XI/System failed, due to:
    com.sap.aii.af.ra.ms.api.RecoverableException: java.io.IOException: Error writing to server.
         We try to solves it changing the EO_MSG_SIZE_LIMIT parameter in SXMB_ADM but it doesn't help us at all.
         How can we set the max size for a message that going thru SAP PI.
         We have SAP PI 7.0 SPS 13.

    HI Luis
    Whats the message size and whats the value you have given in EO_MSG_SIZE_LIMIT. After saving this parameter did you verified at RWB ->RWB->Component Monitoring->Integration Engine->
    Settings->Tuning
    Add one more EO_INBOUND_TO_OUTBOUND this will allow data not to be placed on Outbound queue and bring to inbound queue. This is having advantage that to process high volume message you will get better performance but disadvantage is when there is no receiver inbound queue is blocked.
    It can be a issue related to connection. Please check with the RFC you have for proxy and IE RFC's
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Nov 22, 2008 11:44 PM

  • Maximum size for an HttpRequest? Set Content-Length?

    Hi, I'm managing to get small strings sent from my applet to my servlet, but when I try anything bigger, I get problems. Oddly enough, the larger object can get sent to my applet from my servlet without any issues.
    Can anyone tell me if there is a maximum size for sending responses?
    Or, if I have to set the content-length property in my applet before I send my data, how do I get the size of my object so I can set it?
    thanks for any advice any of you might have

    Thanks for the pointers.
    BalusC, at first I was trying to write my object without sending it through a byteStream first (hence the q) :), tried it that way too and wouldn't work.
    I finally figured out that it wasn't the code that was the problem, but it was an upload issue (server specific). Have changed the code to sending one line of data at a time since I was converting my object to an output file in the servlet anyway. Not the best solution but it works :)
    Thanks again

  • FBU Internal Job Queue Full for Synchronous Processing of Print Requests

    Hello All,
    We are getting a lot of errors in system log (SM21) with the
    Error : FBU Internal Job Queue Full for Synchronous Processing of Print Requests
    User :SAPSYS
    MNO:FBU
    =============================================================
    Documentation for system log message FB U :
    If a spool server is to process output requests in the order they were
    created using multiple work processes, the processing of requests for a
    particular device can only run on one work process. To do this an
    internal queue (limited size) is used.
    If too many requests are created for this device too quickly, the work
    process may get overloaded. This is recognized when, as in this case,
    the internal queue is exhausted.
    This can only be solved by reducing the print load or increasing
    processor performance or, if there is a connection problem to the host
    spooler, by improving the transfer of data to the host spooler.
    Increasing the number of spool work processes will not help, as
    requests for one device can only be processed by one work process. If
    processing in order of creation is not required, sequential request
    processing can be deactivated (second page of device configuration in
    Transaction SPAD). This allows several work processes to process
    requests from the same device thus alleviating the bottleneck.
    Enlarging the internal queue will only help if the overload is
    temporary. If the overload is constant, a larger queue will eventually
    also be overloaded.
    ===========================================================
    Can you please tell me how to proceed.
    Best Regards,
    Pratyusha

    Solution is here:
    412065 - Incorrect output sequence of output requests
    Reason and Prerequisites
    The following messages appear in the developer trace (dev_trc) of the SPO processes or in the syslog:
    S  *** ERROR => overflow of internal job queue [rspowunx.c   788]
    Syslog Message FBU:
    Internal job queue for synchronous request processing of output requests full
    The "request processing sequence compliance" on a spool server with several SPO processes only works provided the server-internal job queue (see Note 118057) does not overflow. The size of this request queue is prepared using the rspo/global_shm/job_list profile parameter. The default value is 50 requests. However, if more output requests arrive for the spool server than can be processed (and the internal request queue is full as a result), more SPO processes are used to process the requests (in parallel), and the output sequence of the requests is no longer guaranteed.
    Solution
    Increase the rspo/global_shm/job_list profile parameter to a much larger value. Unfortunately, the value actually required cannot be found by "trial and error" because this queue contains all the incoming output requests on a spool server, not just the "sequence compliant" requests. A practical lower limit for this value represents the maximum sequence-compliant output requests for the above generated output device. If, for example, 1000 documents that should be output in sequence are issued from an application program to an output device, the queue must be able to hold 1000 entries so that it does not overflow if the SPO process processes the requests at a maximum low-speed.

  • Queue size

    I am supposed to write a program in java where a single queue is shared by multiple java programs.
    I tried create a queue in super class and let sub classes access and update it.But when I run the program and check the size of queue in the sub classes it seems like the queue is initializing everytime the superclass is called in each sub class.
    The code is as follow:
    import java.util.*;
    class Que
    {public Que() {}
    LinkedList<String> queue=new LinkedList<String>();
    public void Qadd(String S){queue.addFirst(S);}
    public void Qremove(){queue.remove();}
    public ListIterator<String> QListiterator() {return queue.listIterator();}
    public int Qsize(){int y=queue.size();return y;}}
    class Que1 extends Que
    {public static void main(String args[]){
    Que q=new Que();q.Qadd("A");q.Qadd("B");q.Qadd("C"...
    q.Qadd("D");q.Qremove();int size=q.Qsize();
    System.out.println("size:"+size);}}
    class Que2 extends Que{
    public static void main(String args[])
    Que q=new Que();q.Qadd("D");
    int size=q.Qsize();
    System.out.println("size:"+size);}}
    Now the size output is 3 and then 0.But I need 3 and then 3.
    Can some1 direct me to the right direction in solving my problem??

    are you actually running these in separate java instances (you are running the java program multiple times?). if so, you have a lot more work ahead of you. java does not magically share data between different programs. if you need to share data across multiple programs, you need to start looking into remote protocols and distributed processing (or use JMS).
    is it possible you just want multiple threads in the same program instead of multiple programs? if so, then things get a lot simpler (not necessarily easy per-se, but much, much simpler).

  • Optimal Block Size for Xserve's RAID hosting Final Cut Server

    What would be the optimal block size for the software RAID on the machine that will be hosting Final Cut Server? The default is 36K. Since FCS is essentially a database, would be the optimal settings? Any glimpse what data size chunks FCS write to the disk?

    Actually I meant the block size for the internal startup volume where FCS is installed, not Xsan volumes. As to optimal settings for Xsan volumes it really depends on the type of the data you store on Xsan, and if it is primarily video, what format: SD, HD.

  • Stripe size for scatch disk array

    I am building a CS5/64 workstation running on Win 7/64 that will be used to edit 1-4Gb images. The scratch disks will consist of a RAID 0 array using 3-4 WD600Gb 10K drives shortstroked on an Areca card.
    What is the best stripe size for a 3-4 disk array for large images? Does Adobe publish how they R/W to the scratch disk, size of block,etc?
    Larry

    Right click on the root of your C: drive, and choose Properties.
    Click the Hardware tab, select the drive (array) you'd like to set advanced caching on, and click the [Properties] button.
    Click the Policies tab, and note the setting of the [ ] Turn off Windows write-cache buffer flushing on the device.  This may not be available, depending on the drivers.
    Note, specifically, that this feature can cause quite a lot of disk data to end up in your RAM for a while, if an application gets significantly ahead of the drive's ability to write data.  This is where the warning about having good battery backup comes in.  I'll add my own comment:  Your system should be very stable as well.  You don't want it crashing when a lot of writes are pending.
    -Noel

Maybe you are looking for