Generate a letter sequence (A, B, C, D.....Z)

Hello Evryone,
I have a requirement to generate a letter sequence A, B, C, D....till Z. How can I fill a field with next letter, each time in a loop?
Thanks for all your help in advance,
Rushi

Hello Rushi
If you have syst-abcde available on your SAP system you could do the following:
DATA: ld_offset  TYPE i.
DO 26 TIMES.
  ld_offset = syst-index - 1.
  ld_char = syst-abcde+ld_offset(1).
  APPEND ld_char TO lt_chars.
ENDDO.
Regards
   Uwe

Similar Messages

  • Generating a pulse sequence in NI5401 board

    Sirs,
    I?m sending this email massage because I have a doubt concerning NI 5401 Function Generator Board.
    I?m working with a PXI system together with a NI5401 board, and I want to generate a pulse sequence with this board.
    The propose of this is to synchronize my pulses with the acquisition of data by another board (PXI board from Goeppel ? Boundary Scan board which has 4 I/0 ports of 8 bits)
    I want for each pulse generated to acquire and transfer data in that board, thus I need to know how can I send a predetermined sequence of pulses, (N pulses and then stop). (attached I send a figure to illustrate my question)
    Please, I tried to understand the triggers but....
    If the triggers is the solution for my probl
    em please send me an example.
    Note: Now I'm generating a sequence of pulses using a simple pin I/O of the Goeppel Board but the problem is if I run many Labview applications sometimes the software is not fast enough to generate that pulses. Then I think if I use a hardware solution, like in the 5401 board,I could get faster a better responses for my pulses. Note that I'll need to now, in each instant, how is the level of each pulse.
    Note2:I'm using LabView6i software.
    Thanks very much.
    Attachments:
    PULSE.jpg ‏25 KB

    Hi
    The NI 5401 is a Function Generator; this is significant in that it is made to make periodic waveforms such as Sine, Square, and even a user defined periodic waveform that a user can download (the 16K buffer). The board can be triggered to start generation, and with a software call, abort generation. But there is no hardware that can specify how many cycles of a waveform has been generated to control the number of cycles at the output.
    Depending on the rate of the pulses you need, it may be possible to do something. A pulse train is essentially a square wave with a certain duty cycle. Set up the device for a certain frequency that matches the rate of your pulses, and program it to start with a Software trigger. The best output to use is the Sync output which w
    ill give you a TTL pulse.
    After the software trigger is called in your code, use the Wait VI to wait a certain amount of time that corresponds to the number of cycles/pulses for the signal that you need, and then after the wait, immediately call NI-FGEN Abort to stop the output generation.
    If you are unable to control the number of pulses through software, the NI 5401 really isn't made for this operation. The NI 5411 Arbitrary Waveform Generator is the device made to do this, create the pulse waveform you need, select how many times you want it to "loop", and then generate a waveform of zero volts. The NI 5411 has the hardware to count number of loops, and trigger, etc.
    I hope this helps.
    Jerry

  • Generating a different sequence for 32 different  warehouse....!!!!

    We have got around 32 different warehouse where various material are stored......
    I have to design a form in such a way that i generate a different sequence number for the materials stored in 32 different ware house
    ex
    name:suhail
    pwd:123
    warehouse: America
    Now after i login i want to generate a  sequene number only for america's ware house say 21001
    name:ANDREAS
    pwd:345
    warehouse:France
    for this user the sequence number generted  should be different  say some thing like 31001can any one help me out with this :)
    Edited by: Suhail Faraaz on Oct 2, 2010 10:37 PM

    Suhail,
    I'm not a big fan of using "Intelligent Numbers." What happens when you reach the maximum number for a given warehouse (France's value range = 31000 - 40999)? I have seen this methodology cause problems time and time again. The better option would be to use a generic sequence and a seperate warehouse identifier on the record. This offers the greater flexibility and doesn't force limitations on the number of items that can be assigned to a given warehouse. If you are not locked into this numbering method, I recommend you add a warehouse_ID column to your table and create a unique ID for each warehouse and record this unique_id in the warehouse_ID column. Then use a generic Sequence as Andreas suggested. In addition to greater flexibilty, this method also provides a unique ID that could be used to Partition your warehouse tables if the size of the tables become a performance issue later.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • How to generate a special sequence?

    Hi there,
    I need to generate a special sequence like this:
    A0A0A0
    A0A0A1
    A0A0A2
    A0A0A9 ---when add 1 to 9, it will be from A9 to B0
    A0A0B0
    A0A0Y9
    A0A0Z0
    A0A0Z9
    A0A1A0
    ...

    You are right.
    I was just about to edit my post... but unfortunately you replied :-)
    SQL> SELECT    CHR ( 65 + SUBSTR ( len, 1, 2 ))
      2         || SUBSTR ( len, 3, 1 )
      3         || CHR ( 65 + SUBSTR ( len, 4, 2 ))
      4         || SUBSTR ( len, 6, 1 )
      5         || CHR ( 65 + SUBSTR ( len, 7, 2 ))
      6         || SUBSTR ( len, 9, 1 ) sequence_value
      7    FROM ( SELECT len
      8            FROM ( SELECT    LPAD ( LEVEL - 1, 9, 0 ) len
      9                        FROM DUAL
    10                  CONNECT BY LEVEL <= 259259259 )
    11           WHERE SUBSTR ( len, 1, 3 ) <= 259
    12             AND SUBSTR ( len, 4, 3 ) <= 259
    13             AND SUBSTR ( len, 7, 3 ) <= 259 )
    14  /
    SEQUENCE_VALUE
    A0A0A0
    A0A0A1
    A0A0A2
    A0A0A3
    A0A0A4
    A0A0A5
    A0A0A6
    A0A0A7
    A0A0A8
    A0A0A9
    A0A0B0
    A0A0B1
    A0A0B2
    A0A0B3
    A0A0B4
    A0A0B5
    A0A0B6
    A0A0B7
    A0A0B8
    A0A0B9
    SEQUENCE_VALUE
    A0A0C0
    A0A0C1
    A0A0C2
    A0A0C3
    A0A0C4
    A0A0C5
    A0A0C6
    A0A0C7
    A0A0C8
    A0A0C9
    A0A0D0
    A0A0D1
    A0A0D2
    A0A0D3
    A0A0D4
    A0A0D5
    A0A0D6
    A0A0D7
    A0A0D8
    A0A0D9
    A0A0E0
    SEQUENCE_VALUE
    A0A0E1
    A0A0E2
    A0A0E3
    A0A0E4
    A0A0E5
    A0A0E6
    A0A0E7
    A0A0E8
    A0A0E9
    A0A0F0
    A0A0F1
    A0A0F2
    A0A0F3
    A0A0F4
    A0A0F5
    A0A0F6
    A0A0F7
    A0A0F8
    A0A0F9
    A0A0G0
    A0A0G1
    SEQUENCE_VALUE
    A0A0G2
    A0A0G3
    A0A0G4
    A0A0G5
    A0A0G6
    A0A0G7
    A0A0G8
    A0A0G9
    A0A0H0
    A0A0H1
    A0A0H2
    A0A0H3
    A0A0H4
    A0A0H5
    A0A0H6
    A0A0H7
    A0A0H8
    A0A0H9
    A0A0I0
    A0A0I1
    A0A0I2
    SEQUENCE_VALUE
    A0A0I3
    A0A0I4
    A0A0I5
    A0A0I6
    A0A0I7
    A0A0I8
    A0A0I9
    A0A0J0
    A0A0J1
    A0A0J2
    A0A0J3
    A0A0J4
    A0A0J5
    A0A0J6
    A0A0J7
    A0A0J8
    A0A0J9
    A0A0K0
    A0A0K1
    A0A0K2
    A0A0K3
    SEQUENCE_VALUE
    A0A0K4
    A0A0K5
    A0A0K6
    A0A0K7
    A0A0K8
    A0A0K9
    A0A0L0
    A0A0L1
    A0A0L2
    A0A0L3
    A0A0L4
    A0A0L5
    A0A0L6
    A0A0L7
    A0A0L8
    A0A0L9
    A0A0M0
    A0A0M1
    A0A0M2
    A0A0M3
    A0A0M4
    SEQUENCE_VALUE
    A0A0M5
    A0A0M6
    A0A0M7
    A0A0M8
    A0A0M9
    A0A0N0
    A0A0N1
    A0A0N2
    A0A0N3
    A0A0N4
    A0A0N5
    A0A0N6
    A0A0N7
    A0A0N8
    A0A0N9
    A0A0O0
    A0A0O1
    A0A0O2
    A0A0O3
    A0A0O4
    A0A0O5
    SEQUENCE_VALUE
    A0A0O6
    A0A0O7
    A0A0O8
    A0A0O9
    A0A0P0
    A0A0P1
    A0A0P2
    A0A0P3
    A0A0P4
    A0A0P5
    A0A0P6
    A0A0P7
    A0A0P8
    A0A0P9
    A0A0Q0
    A0A0Q1
    A0A0Q2
    A0A0Q3
    A0A0Q4
    A0A0Q5
    A0A0Q6
    SEQUENCE_VALUE
    A0A0Q7
    A0A0Q8
    A0A0Q9
    A0A0R0
    A0A0R1
    A0A0R2
    A0A0R3
    A0A0R4
    A0A0R5
    A0A0R6
    A0A0R7
    A0A0R8
    A0A0R9
    A0A0S0
    A0A0S1
    A0A0S2
    A0A0S3
    A0A0S4
    A0A0S5
    A0A0S6
    A0A0S7
    SEQUENCE_VALUE
    A0A0S8
    A0A0S9
    A0A0T0
    A0A0T1
    A0A0T2
    A0A0T3
    A0A0T4
    A0A0T5
    A0A0T6
    A0A0T7
    A0A0T8
    A0A0T9
    A0A0U0
    A0A0U1
    A0A0U2
    A0A0U3
    A0A0U4
    A0A0U5
    A0A0U6
    A0A0U7
    A0A0U8
    SEQUENCE_VALUE
    A0A0U9
    A0A0V0
    A0A0V1
    A0A0V2
    A0A0V3
    A0A0V4
    A0A0V5
    A0A0V6
    A0A0V7
    A0A0V8
    A0A0V9
    A0A0W0
    A0A0W1
    A0A0W2
    A0A0W3
    A0A0W4
    A0A0W5
    A0A0W6
    A0A0W7
    A0A0W8
    A0A0W9
    SEQUENCE_VALUE
    A0A0X0
    A0A0X1
    A0A0X2
    A0A0X3
    A0A0X4
    A0A0X5
    A0A0X6
    A0A0X7
    A0A0X8
    A0A0X9
    A0A0Y0
    A0A0Y1
    A0A0Y2
    A0A0Y3
    A0A0Y4
    A0A0Y5
    A0A0Y6
    A0A0Y7
    A0A0Y8
    A0A0Y9
    A0A0Z0
    SEQUENCE_VALUE
    A0A0Z1
    A0A0Z2
    A0A0Z3
    A0A0Z4
    A0A0Z5
    A0A0Z6
    A0A0Z7
    A0A0Z8
    A0A0Z9
    A0A1A0
    A0A1A1
    A0A1A2
    A0A1A3
    A0A1A4
    A0A1A5
    A0A1A6
    A0A1A7
    A0A1A8
    A0A1A9
    A0A1B0
    A0A1B1
    SEQUENCE_VALUE
    A0A1B2
    A0A1B3
    A0A1B4
    A0A1B5
    A0A1B6
    A0A1B7
    A0A1B8
    A0A1B9
    A0A1C0
    A0A1C1
    A0A1C2
    A0A1C3
    A0A1C4
    A0A1C5
    A0A1C6
    A0A1C7
    A0A1C8
    A0A1C9
    A0A1D0
    A0A1D1
    A0A1D2
    Z9Z9Z9
    Message was edited by:
    G.
    Dont need to_number either

  • How to generate a  number sequence for a column of a Z*table?

    Hi ,
    How to generate a  number sequence for a column of a Z*table?
    plz guide me.
    thanks
    Albert

    1) Use SNRO for defining a number range.
    2) Use FM NUMBER_GET_NEXT for getting the next number with object, sub object etc..
    See one example below.
          CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING
              nr_range_nr                   = c_01
              object                        = c_z_prd_code
    *           QUANTITY                      = '1'
             subobject                     = p_vkorg
    *           TOYEAR                        = '0000'
    *           IGNORE_BUFFER                 = ' '
           IMPORTING
             number                        = in_prd_code
    *           QUANTITY                      =
    *           RETURNCODE                    =
            EXCEPTIONS
                  interval_not_found            = 1
                  number_range_not_intern       = 2
                  object_not_found              = 3
                  quantity_is_0                 = 4
                  quantity_is_not_1             = 5
                  interval_overflow             = 6
                  buffer_overflow               = 7
                  OTHERS                        = 8
    3) You may write these code in main program of the table maintinence
    rgds,
    TM.

  • Generating a new sequence using another sequence

    Hi All,
    I wish to generate a new sequence file from some external text file/XML file/seq file itself.... can I possibly do it???

    I have created a TestStand sequence that creates another sequence and inserts and configures a Message popup step.  Its not complete, but it does run (as long as you dont have a sequence of similar name loaded).
    The sequence is saved as "C:\temp\Steves.seq"
    My sequence makes calls to the TestStand API from within TestStand using the Automation Adapter but you can make similar calls from all of the other enviroments listed in the Adapters drop down.
    Its really to give you a feel for the sort of things you need to do to create a sequence on the fly.  NI should be able to give you some quality examples.
    Regards
    Steve
    Message Edited by SercoSteve on 03-14-2006 08:50 AM
    There are 10 types of people in the world that understand binary, those that do and those that don't.
    Attachments:
    SequenceCreator.seq ‏28 KB

  • Generating Offer Letter & Data Transfer in Recruitment Module

    Dear Gurus,
    1) We are implementing Recruitment module and i am quite new to it. Could any one of you suggest what are the sequence of steps required to maintain to make sure that a Standard offer letter is generated and how to mail it to the applicant while you perform Offer Applicant Contract activity. Kindly suggest how to move further to fulfill this requirement.
    Kindly note this is pure Recruitment module and  e recruitment is totally out of scope.
    2) How do you transfer applicant data to Personnel Adminstration module when the Applicant action Prepare for Hiring is run.
    Kindly suggest the sequence of steps to be followed to make sure the data transfer happens from recruitment to personnel adminstration.
    Kindly also let me know what are the mandatory switches that have to be activiated in T77S0 table to set up an integration between PA & RC.
    3)When you hire a external applicant whose data is already there in PB10 and when you hire him for suitable vacancy and do the data transfer to PA. The next time when i try searching in the applicant pool will the Applicant group change from External applicant to internal applicant in case of hired applicant. If yes how to go about it.
    Kindly throw some light on this. Please note we would like to go about the standard functionalities of SAP Recruitment module.
    If there is any challenge in fulfilling the above requirements, kindly point out the same so i can address the same to my client...
    Regards,
    Kiran

    Hi Ravi,
    You can do the initial data entry of the applicant through Tcode PB40 or PB10.  Once you have maintained the data, then you can do the applicant actions like given below through Tcode PB40.
    Enter additional data
    Reject applicant
    Put applicant on hold
    Process applicant
    Offer applicant contract
    Applicant rejects offer
    Change of org. assignment
    Further application
    Invite applicant.
    It is not compulsory to do all these actions, but these actions are useful to keep a track of applicants.
    Then you have to do applicant action prepare for hiring through PB40.  After doing prepare for hiring action you can transfer the applicant data to Personnel administration through Tcode PBA7.  Once the data is transferred personnel number is generated for applicant.  Then you have to complete the activities throug Tcode PBA8.
    Few tables for configuration of recruitment :
    T750D - for creating media for recruitment
    V_T750C - Recruitment instruments
    T750K - Applicant group
    V_T750F - Applicant range
    V_T751E - Applicant action type
    V_T588D - Infogroup for Applicant action
    Shrikant

  • How to generate an Letter in PDF format.. (APEX  4.0)

    Hi All,
    I want to generate a report in Letter format .. the output format is PDF.
    For example consider EMP table .. from this im going to query and show the columns of
    EMP_NAME , ADDRESS, SALARY,DESIGNATION
    And in this report i ll be have an check box for each row... if i check it for 5 particular employee from the report .. i have to generate an letters for those employees which i have checked in PDF format.
    OUtPUT should be like::
                                                                    Date:
    EMPNAME:: employee1
    ADDRESS::xyz
    dear sir ,
      content .. xyz
    thanking you
                                                                    Date:
    EMPNAME:: employee2
    ADDRESS::xyz
    dear sir ,
      content .. xyz
    thanking you
                                                                    Date:
    EMPNAME:: employee3
    ADDRESS::xyz
    dear sir ,
      content .. xyz
    thanking you.
                                                                    Date:
    EMPNAME:: employee5
    ADDRESS::xyz
    dear sir ,
      content .. xyz
    thanking youTHANKS IN ADVANCE FOR YOUR HELP
    regards,
    Arumugam

    Hi ALL
    Habib
    Tyson Jouglet
    Tony Miller
    Andy
    Thanks for yours replies...
    I have worked in JASPER REPORTS for generating reports .... just wanted too know that anyother way is there to generate pdf report in APEX.
    With your replies i came too know about other reporting tools .. once again thanks for your help ..
    So the conclusion is we cant get the PFD directly from Apex without integrating anyone those tools rite.......
    regards,
    Arumugam

  • Help required to generate primary key sequence

    Hello All,
    I need your help in generating a sequence for primary key in my db table created using java dictionary project in my NWDS 7.3.
    The table column EMPL_ID is a primary and needs to be a sequence. The code in the JPA entity is as below. The underlying database is DB2 on Linux. Kindly help me resolve this issue.
    * The persistent class for the TMP_EMPL_DATA database table.
    @Entity
    @Table(name="TMP_EMPL_DATA")
    public class TmpEmplData implements Serializable {
         private static final long serialVersionUID = 1L;
         @Id
         @SequenceGenerator(name="EMPLID_GENERATOR", sequenceName="EMPID_SEQ", initialValue = 10000, allocationSize = 1)
         @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EMPLID_GENERATOR")
         @Column(name="EMPL_ID")
         private String _emplId_;
    My bean class contains a public method as follows.
    public TmpEmplData createEmployee(String employeeName, int age, String location)
             TmpEmplData emplData = new TmpEmplData();
             emplData.set_emplName_(employeeName);
             emplData.setAge(age);
             emplData.setLocation(location);
             entityManager.persist(emplData);
             entityManager.find(TmpEmplData.class, emplData.get_emplId_());
             return emplData;
    During execution, i am getting an error as below.
    Caused by: javax.persistence.PersistenceException: The generated SQL statement is not valid for the underlying database platform (platform no. 99). For more details see attached exception. SQL statement is SELECT NEXT VALUE FOR "EMPID_SEQ" FROM ( VALUES (1) )
    at com.sap.engine.services.orpersistence.sqlmapper.mapping.JPASQLMapperImpl.createSequenceIDGeneratorSelectText(JPASQLMapperImpl.java:1239)
    at com.sap.engine.services.orpersistence.entitymanager.CachedJPASQLMapper.createSequenceIDGeneratorSelectText(CachedJPASQLMapper.java:259)
    at com.sap.engine.services.orpersistence.generator.GeneratorFactory.<init>(GeneratorFactory.java:156)
    at com.sap.engine.services.orpersistence.entitymanager.EntityManagerFactoryImpl$MetaDataImpl.<init>(EntityManagerFactoryImpl.java:323)
    at com.sap.engine.services.orpersistence.entitymanager.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:137)
    at com.sap.engine.services.orpersistence.entitymanager.JtaEntityManagerFactoryImpl.<init>(JtaEntityManagerFactoryImpl.java:39)
    at com.sap.engine.services.orpersistence.provider.PersistenceProviderImpl.createJtaEntityManagerFactory(PersistenceProviderImpl.java:251)
    at com.sap.engine.services.orpersistence.provider.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:236)
    at com.sap.engine.services.orpersistence.container.EMFInstanceCreator.getEntityManagerFactory(EMFInstanceCreator.java:134)
    at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getEMF(ORPersistenceObjectFactory.java:300)
    at com.sap.engine.services.orpersistence.container.ORPersistenceObjectFactory.getObjectInstance(ORPersistenceObjectFactory.java:73)
    at com.sap.engine.lib.injection.ReferenceObjectFactory.getObject(ReferenceObjectFactory.java:96)
    at com.sap.engine.lib.injection.FieldInjector.inject(FieldInjector.java:113)
    ... 122 more
    Caused by: com.sap.engine.services.orpersistence.sqlmapper.generate.SQLMappingException: SQL statement is not valid for underlying database platform.
    at com.sap.engine.services.orpersistence.sqlmapper.common.CommonSQLMappingResult.getStatementString(CommonSQLMappingResult.java:237)
    at com.sap.engine.services.orpersistence.sqlmapper.mapping.JPASQLMapperImpl.createSequenceIDGeneratorSelectText(JPASQLMapperImpl.java:1237)
    ... 134 more
    Caused by: com.sap.sql.tree.StringRepresentationFailureException: Cannot represent next value expression as string.
    at com.sap.sql.tree.impl.OpenSqlTextExpert.nextValueExpressionToText(OpenSqlTextExpert.java:185)
    at com.sap.sql.tree.impl.NextValueExpressionBuilderImpl$NextValueExpressionImpl.toSqlTxt(NextValueExpressionBuilderImpl.java:140)
    at com.sap.sql.tree.impl.AbstractSqlTextExpert.selectSublistToText(AbstractSqlTextExpert.java:130)
    at com.sap.sql.tree.impl.SelectSublistImpl.toSqlTxt(SelectSublistImpl.java:150)
    at com.sap.sql.tree.impl.QuerySpecificationImpl.toSqlTxt(QuerySpecificationImpl.java:361)
    at com.sap.sql.tree.impl.SelectStatementImpl.toSqlTxt(SelectStatementImpl.java:139)
    at com.sap.sql.tree.impl.SQLStatementImpl.toSqlString(SQLStatementImpl.java:75)
    at com.sap.engine.services.orpersistence.sqlmapper.common.CommonSQLMappingResult.getStatementString(CommonSQLMappingResult.java:233)
    ... 135 more

    Hi,
    does the sequence exist? SAP JPA does not support creation of sequences, you have to create it manually.
    Maybe SAP JPA also does not support DB2 sequences with "Open SQL" correctly.
    - Tryp to set your data source to "native" or "vendor".
    - Try to turn on oracle compatibility:
    db2set DB2_COMPATIBILITY_VECTOR=ORA
    Regards
    Rolf

  • Why is the text generator corrupting my sequence?

    I'm trying to use the Text generator, but it's corrupting my sequence playback.
    I keep having to quit FCE and restart it, in order to get my uncorrupted sequence playback to return.
    Does anyone know why this is happening, or what I can "reset" from within FCE, without quitting and restarting, in order to restore correct sequence playback?
    Thanks!

    Try trashing the FCE preferences.
    Are you using the FCE text generator or Boris? (part of FCE)
    Boris is recommended.
    Al

  • ALE Change pointer idocs generated in wrong sequence

    We are using the serialization group to generate the MATMAS and CLFMAS idocs with the sequence MATMAS generated first and then CLFMAS.
    Normally,this seems to work fine with the idocs generated in the right sequence.
    However, during a period of every 24hours, I could see a couple of MATMAS and CLFMAS idocs being generated in the WRONG sequence with CLFMAS generated first and not MATMAS as maintained in the serialization group.
    What could be the reason?
    I checked in the BDCP and BDCPV tables, the timestamps for the wrong sequence idocs seem to be correct with MATMAS before CLFMAS. However the actual idoc creation time is not in correct sequence.

    Hi,
    Can you check your serialization group via tcode BD44 and check the sequence number for MATMAS and CLFMAS?
    Hope this will help.
    Regards,
    Ferry Lianto

  • Function module which generates number in sequence

    Hi All
    Is there any FM which generates number in a sequence. I am creating a bank file using DMEE. Now for detail records it should create a number say starting with 001, 002. 003....
    now every  time the bank file is created it should work in this way.
    Any help would be higly appreciated.
    C

    Hello
    1. Create interval: http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=50004015
    2. Use FM NUMBER_GET_NEXT: Re: how to create a number interval for a zprogram

  • Generating pseudorandom bit sequence

    Can you generate a digital PRBS signal e.g. PN9, and add different coding to it in Labview?
    Also can the signal data be converted to a known format so that is can be imported by another application? Ex. Matlab ASCII format.

    If you have the analysis toolkit than there is a VI for creating PRBS signals. The VI is called "MLS Sequence Waveform" and is located in the Waveform Generation palette. It creates for you based on a seed and polynomial order an analog waveform containing a PRBS signal of 0's and 1's.
    I guess you could then export that waveform to some ASCII file for use in another application via the File I/0 functions found in the waveform datatype palette. You could even just pull the 1d array out of the analog waveform and use the high level VIs found in the basic File I/O palette.
    Hope this helps. -Jared

  • Generating a Random sequence

    Hello All,
    I want some help writing a method which generates a set of 100 numbers with values 0 and 1, but the input should be percent of number of 1's and 0's...I mean if I give 20% for 0's and 80% for 1's then in the generated sequence I should get 20, 0's and 80, 1's...randomly.....hope Iam clear with my question.....please help me
    Thanks,
    Raghu.

    Here is a utility you can use.. you just need to make the call to get the proper random number of ones and pass the size you want.. it returns an array of strings of ones and zero's but you can convert it to whatever type you need.
    --John Putnam
    import java.util.*;
    * <p>Title: ShuffleBits</p>
    * <p>Description: example of creating a string of 1's and 0's and shuffling them</p>
    * <p>Copyright: Copyright (c) 2003</p>
    * @author John Putnam
    * May be use freely with inclusion of this copyright notice
    * @version 1
    public class ShuffleBits
          * method to create an array of strings of 1's and zeros then shuffle them
          * @param numberOfOnes exatly to include (the rest are zero's)
          * @param maxNumberOfBits total number of ones and zeros.
          * @return randomized list of ones and zeros
      public String[]  randBits(int numberOfOnes, int maxNumberOfBits)
           ArrayList bits  = new ArrayList(maxNumberOfBits);
           for(int i=0;i<numberOfOnes;i++) bits.add("1");
           for(int j=0;j<(maxNumberOfBits-numberOfOnes);j++) bits.add("0");
           Collections.shuffle(bits);  //--do the shuffling of order
           Iterator ib = bits.iterator();
           String[] bitsBack = new String[maxNumberOfBits];
              //--pull out the shuffled bits
           int rb = 0;
           while(ib.hasNext()) bitsBack[rb++] = (String)ib.next();
           return bitsBack;
       } //--end randBits
    //--------------------------------unit testing main--------------------------------
       public static void main(String[] args)
             ShuffleBits test = new ShuffleBits();
             int numOnes;
             int maxNumber;
             String[] bitsBack = null;
             numOnes = 5;
             maxNumber = 15;
             bitsBack = test.randBits(numOnes,maxNumber);
             System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
             for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack);
    numOnes = 12;
    maxNumber = 15;
    bitsBack = test.randBits(numOnes,maxNumber);
    System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
    for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack[i]);
    numOnes = 12;
    maxNumber = 15;
    bitsBack = test.randBits(numOnes,maxNumber);
    System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
    for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack[i]);
    numOnes = 12;
    maxNumber = 15;
    bitsBack = test.randBits(numOnes,maxNumber);
    System.out.println("\n--Test for #ones: " + numOnes + " max: " + maxNumber);
    for(int i=0;i<maxNumber;i++) System.out.println("--I: " + i + " bit: " + bitsBack[i]);
    } //--end main
    } //--end shuffle bits
    The output was.
    --Test for #ones: 5 max: 15
    --I: 0 bit: 0
    --I: 1 bit: 1
    --I: 2 bit: 0
    --I: 3 bit: 0
    --I: 4 bit: 1
    --I: 5 bit: 0
    --I: 6 bit: 0
    --I: 7 bit: 0
    --I: 8 bit: 0
    --I: 9 bit: 1
    --I: 10 bit: 0
    --I: 11 bit: 0
    --I: 12 bit: 1
    --I: 13 bit: 1
    --I: 14 bit: 0
    --Test for #ones: 12 max: 15
    --I: 0 bit: 1
    --I: 1 bit: 1
    --I: 2 bit: 0
    --I: 3 bit: 0
    --I: 4 bit: 1
    --I: 5 bit: 1
    --I: 6 bit: 0
    --I: 7 bit: 1
    --I: 8 bit: 1
    --I: 9 bit: 1
    --I: 10 bit: 1
    --I: 11 bit: 1
    --I: 12 bit: 1
    --I: 13 bit: 1
    --I: 14 bit: 1
    --Test for #ones: 12 max: 15
    --I: 0 bit: 1
    --I: 1 bit: 1
    --I: 2 bit: 0
    --I: 3 bit: 1
    --I: 4 bit: 1
    --I: 5 bit: 0
    --I: 6 bit: 1
    --I: 7 bit: 1
    --I: 8 bit: 0
    --I: 9 bit: 1
    --I: 10 bit: 1
    --I: 11 bit: 1
    --I: 12 bit: 1
    --I: 13 bit: 1
    --I: 14 bit: 1
    --Test for #ones: 12 max: 15
    --I: 0 bit: 1
    --I: 1 bit: 1
    --I: 2 bit: 1
    --I: 3 bit: 1
    --I: 4 bit: 1
    --I: 5 bit: 1
    --I: 6 bit: 1
    --I: 7 bit: 0
    --I: 8 bit: 0
    --I: 9 bit: 1
    --I: 10 bit: 1
    --I: 11 bit: 1
    --I: 12 bit: 1
    --I: 13 bit: 0
    --I: 14 bit: 1
    notice the last few are the same sizes but come out in different order.
    --John Putnam                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Displaying Value generated from a sequence

    I have a form that is used to create a new entry. The primary key is generated from an insert trigger and the user wants the page to be redisplayed with the new primary key that was generated by the trigger. The trigger works OK. How do I get the value that was generated by the trigger back to the page for display?
    Thanks.

    if it's just one record why don't you move the INSERT statement into a function?
    <br><br>
    CREATE TABLE t
      id NUMBER(15),
      name VARCHAR2(20)
    <br><br>
    CREATE SEQUENCE sq_id
      START WITH 1
      INCREMENT BY 1
      NOCACHE
      NOCYCLE;
    <br><br>
    CREATE OR REPLACE
    FUNCTION insert_into_t( p_name IN VARCHAR2) RETURN NUMBER
    IS
      l_id NUMBER(15);
    BEGIN
      INSERT INTO t
      VALUES ( sq_id.nextval, p_name )
      RETURNING id INTO l_id;
      RETURN l_id;
    END insert_into_t;
    show errors<br><br>
    chet

Maybe you are looking for

  • Problems when Booting my Mac/ Partitioning for Windows 7

    Hello Community, 3 months ago, i bought a MacBook Pro mid 2012-model. I was very satisfied until a really big problem occured. The first time I recognized a boot-problem was when I restarted my Mac, a screen with the "forbidden-symbol" came up, after

  • RAID support level for A75MA-G55 mainboard.

    Do you know if the A75MA-G55 mainboard supports RAID5?. If it doesn't, do you know if MSI is planning on adding that feature in the near future?. Thank you very much!.

  • How to update PHP, MySQL or Apache

    The Mac OS X 10.6.2 system does not include the latest versions of PHP, MySQL or Apache. What is the recommended update procedure for PHP, MySQL or Apache: a) automatically by Mac OS X system (is this possible?) or b) manually by the administrator (a

  • Harry Potter has taken over my iphone!

    I tried to download Harry Potter Spells today, not realizing it was 100 mb. It has been downloading and or/installing all day, using up my wifi allotment. I have tried hard resets, turning the phone on and off, disconnecting from the internet. I was

  • JTree in JDialog

    Hello, How can I display a binded JTree (or any other component like JCombo, JTable ) in a JDialog ? Thankx