How to generate this type of signal?

While I am connected to the sensor, the analog signal looks like this:
http://warsztaty.samochodowka.internetdsl.pl/serwishdd/poradnik/elek_autom/czujniki/cz_pol14.jpg
The sensor is in the workshop and I need to work with this signal at home... 
It's a signal from inductive sensor which measures RPM of motor shaft. Each peak is synchronized with TDC of piston. I also need to control the frequence of emulated signal to simulate the speed changes.
Any ideas?

I would record the signal to file after acquiring with a DAQ card.
Then you could read this signal from the file and build it into a waveform.  To change the frequency, just modify the value for dT that you bundle into the waveform.

Similar Messages

  • How to add this type of effect in photoshop plugin

    How to add this type of effect in photoshop by plugin

    Well, if that's the best you can do in describing what you consider an "effect" in this image, it will take a mind reader or clairvoyant to figure it out. 
    All I see is a guy that looks a lot like the infamous sex-slave-and-women-trafficker Saban Baran, possibly wearing a rug on his usually bald shaven head.
    http://tinyurl.com/jw5lmzy
    If it's someone else and that is real hair, then someone may have selected the hair in Photoshop and applied a tiny bit of the Oil Filter on it.  The Oil Filter has been removed from the newest versions of Photoshop.

  • How to generate this output?URGENT

    how to generate using DOM or SAX to get this output?
    <project>
    <process name = " Process1 " >
    </project>
    i am stuck here ... may i know how to continued coding from here.. must add in wat ? can any one tell me thank....
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import org.w3c.dom.DOMException;
    import java.io.*;
    import java.util.*;
    public class TestVector
         private Vector m_vProcess;
         String strProjectName;
         public static void main(String[] args)
              TestVector pThis = new TestVector();
              pThis -> WriteToXML(m_vProcess);
         public void TestVector {
              strProjectName ="Project1";
              m_vProcess = new Vector();               
              m_vProcess.add("Process1");
              m_vProcess.add("Process2");
         public void WriteToXML(Vector vProcess)
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = facory.newDocumentBuilder();
              Document builder = builder.parse("Project.xml");
              Node rootNode = document.getDocumentElement();
              NodeList list = document.getElementsByTagName("Project");
    // Loop through the list.
              for (int i=0; i < list.getLength(); i++) {
              thisProjectNode = list.item(i);
              Node thisName1Node = thisProjectNode.getFirstChild();
              if (thisName1Node == null) continue;
              if (thisName1Node.getFirstChild() == null) continue;
              if (! thisName1Node.getFirstChild() instanceof
    org.w3c.dom.Text) continue;
              String data = thisName1Node.getFirstChild().getNodeValue();
              if (! data.equals("Process1")) continue;
    //We're at the Mocha Java node. Create and insert the new
    //element.
              Node newCoffeeNode = document.createElement("Project");
              Node newName1Node = document.createElement("Process");
              Text tnNode = document.createTextNode("Process1");
              newName1Node.appendChild(tnNode);
              Node newName2Node = document.createElement("Process");
              Text tpNode = document.createTextNode("Process2");
              newName2Node.appendChild(tpNode);
              newProjectNode.appendChild(newName1Node);
              newProjectNode.appendChild(newName2Node);
              rootNode.insertBefore(newProjectNode, thisProjectNode);
              break;

    i am not good in programming..wat ever i read b4 ,i wlll forget easily ..and y the output nv come out after i type these...
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import org.w3c.dom.DOMException;
    import java.io.*;
    import java.util.*;
    public class TestVector
         private Vector m_vProcess;
         String strProjectName;
         public static void main(String[] args)
              TestVector pThis = new TestVector();
              pThis -> WriteToXML(m_vProcess);
         public void TestVector {
              strProjectName ="Project1";
              m_vProcess = new Vector();               
              m_vProcess.add("Process1");
              m_vProcess.add("Process2");
         public void WriteToXML(Vector vProcess)
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = facory.newDocumentBuilder();
              Document builder = builder.parse("Project.xml");
              TransformerFactory tfac = TransformerFactory.newInstance();
              FileWriter fileWtr = new FileWriter("output.xml");
              StreamResult strResult = new StreamResult(fileWtr);
              Transformer trans = tfac.newTransformer();
              trans.transform(new DOMSource(document.getDocumentElement()),strResult);
              Node rootNode = document.getDocumentElement();
              NodeList list = document.getElementsByTagName("Project");
    // Loop through the list.
              for (int i=0; i < list.getLength(); i++) {
              thisProjectNode = list.item(i);
              Node thisName1Node = thisProjectNode.getFirstChild();
              if (thisName1Node == null) continue;
              if (thisName1Node.getFirstChild() == null) continue;
              if (! thisName1Node.getFirstChild() instanceof
    org.w3c.dom.Text) continue;
              String data = thisName1Node.getFirstChild().getNodeValue();
              if (! data.equals("Process1")) continue;
              Node newCoffeeNode = document.createElement("Project");
              Node newName1Node = document.createElement("Process");
              Text tnNode = document.createTextNode("Process1");
              newName1Node.appendChild(tnNode);
              Node newName2Node = document.createElement("Process");
              Text tpNode = document.createTextNode("Process2");
              newName2Node.appendChild(tpNode);
              newProjectNode.appendChild(newName1Node);
              newProjectNode.appendChild(newName2Node);
              rootNode.insertBefore(newProjectNode, thisProjectNode);
              break;

  • Need Help on How to Generate Pulse Width Modulation signals

    Hi,
    I am New in using NI board and programming using LabView. I have no idea on how to start to generate, use what function in order to create a PWM signals.
    My project needs:
    -PWM signals with 15kHz frequency.
    -Duty cycle varrying from 0%, 25%, 50%, 75%, 100%.
    -By using the generated PWM signals to control the half-bridge (MOSFETs) of boost converter and buck converter to varying the voltage of 24V battery to feed in my DC motor.
    The NI board that I use is (NI - sbRIO-9642).
    Can I have a clear view on what to use, how to generate, and by using what functions to generate the PWM signals.
    Sorry for the inconvienient, but I really desperate for help in this. Thanks a lot. I am appreaciate it.
    The attached is the circuit the half-bridge motor controller that I will used.
    Attachments:
    half bridge.jpg ‏13 KB

    Hi Ronald,
    in this thread a very similar question came up. You can use the same approach on your sbRIO.
    For the frequency you gave you should use the FPGA present on the sbRIO - as is shown/discussed in that other thread! I also suggest that other thread because of the "deadtime" feature used to prevent shortcut problems when switching your MOSFETS simultanuously...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to get this type of class?

    Hi. I'm trying to make a class like Math which i can run his methods without declaring an object.
    I want this:
    MyClass.method();
    not this:
    MyClass a = new MyClass();
    a.method();
    How can i do it? And what's the name of this type of classes?

    I have planed to use it with a class which read a text
    file like a database and return an object with the
    filled fields.
    Do you think i should create an instance or with
    static methods is right?Without more details, I can't say for sure, but it sounds like something I would do as an instance method, rather than a class (i.e., static) method. The reason to create instances is because they hold state. The satte of an instance of your class might be the file it's responsible for or how big a buffer it has or something. Even if there's no real clear-cut state associated with what you're trying to do, I'd still use instance methods, just to get you into good habits and get practice thinking in OO terms. Resist the temptation to make everything static for now unless you have pure function-like behavior, as the Math class does.

  • How to clear this type of run time error

    good eve,
    i am migrating sql server procedures to oracle procedures
    i am trying to execute char(39) function in plsql is the following way correct and if this way is correct i am getting
    run time error like
    create or replace
    procedure Sel_subgroup(key in varchar2,gradename in varchar2)
    as
    gid res_grades.grade_id%type;
    gn res_grades.gradename_en%type;
    stid sub_topics.subtopic_id%type;
    stn sub_topics.subtopicname_en%type;
    cc res_grades.countrycode%type;
    estid exsub_topics.exsub_topics_id%type;
    estn exsub_topics.exsubtopicname_en%type;
    d_stmt varchar2(500);
    type ref_cursor is ref cursor;
    rc ref_cursor;
    begin
    d_stmt :='SELECT RG.Grade_ID,RG.Gradename_'||key||',ST.SubTopic_ID,ST.SubTopicname_'||key||', RG.CountryCode,
    Est.ExSub_Topics_ID, Est.ExSubTopicname_'||key||' from
    Res_Grades RG INNER JOIN Sub_Topics ST ON RG.Grade_Id= ST.Grade_ID
    INNER JOIN ExSub_Topics Est ON ST.SubTopic_ID = Est.Sub_Topics_Id
    Where Gradename_'||key||' = '''||gradename||'''';
    open rc for d_stmt;
    loop
    fetch rc into gid,gn,stid,stn,cc,estid,estn;
    if rc%found then
    dbms_output.put_line(gid||gn||stid||stn||cc||estid||estn);
    else
    exit;
    end if;
    end loop;
    close rc;
    commit;
    end Sel_subgroup;the out screen result is:
    Connecting to the database rasool.
    Process exited.
    Disconnecting from the database rasool.can u please help me,
    thanking you,
    prakash

    to samb,
    It doesn't look like you are getting a runtime error. Is it possible your query is returning no rows?
    If you are sure your query should be returning rows, you probably need to check if DBMS_OUTPUT is enabled in SQL Developer (View menu I think).my query is returning a row
    where where 123=key and 'FUBAR'=gradename?
    If so, you want 3 single-quotes at the end of the string, not 4:
    You sure? I think 4 is correct.i am sure 4 is correct i have tried as per jeenesh said
    to jeenesh
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace
      2  procedure Sel_subgroup(key in varchar2,gradename in varchar2)
      3  as
      4   d_stmt varchar2(500);
      5  begin
      6  d_stmt :='SELECT RG.Grade_ID,RG.Gradename_'||key||',ST.SubTopic_ID,ST.SubTopicname_'||key||', RG.CountryCode,
      7  Est.ExSub_Topics_ID, Est.ExSubTopicname_'||key||' from
      8  Res_Grades RG INNER JOIN Sub_Topics ST ON RG.Grade_Id= ST.Grade_ID
      9  INNER JOIN ExSub_Topics Est ON ST.SubTopic_ID = Est.Sub_Topics_Id
    10  Where Gradename_'||key||' = '''||gradename||'''';
    11  dbms_output.put_line(d_stmt);
    12* end Sel_subgroup;
    SQL> /
    Procedure created.
    SQL> set serverout on
    SQL> exec Sel_subgroup('1','TEST');
    SELECT RG.Grade_ID,RG.Gradename_1,ST.SubTopic_ID,ST.SubTopicname_1,
    RG.CountryCode,
    Est.ExSub_Topics_ID, Est.ExSubTopicname_1 from
    Res_Grades RG
    INNER JOIN Sub_Topics ST ON RG.Grade_Id= ST.Grade_ID
    INNER JOIN ExSub_Topics
    Est ON ST.SubTopic_ID = Est.Sub_Topics_Id
    Where Gradename_1 = 'TEST'
    PL/SQL procedure successfully completed.i have also executed your code sir it is executing.in my coding,i found that the part of dbms_output.put_line in my ref cursor loop is not displaying me the print.
    to karthick arp
    Did enable serveroutput?yes i have enabled it with buffer size 200000
    to
    Billy Verreynne     & Frank Kulash
    as per you said sir i have done and got an error my code as follows
    SQL> var rc refcursor
    SQL> var key varchar2(2)
    SQL> var gradename varchar2(30)
    SQL> exec :key :='EN';
    PL/SQL procedure successfully completed.
    SQL> exec :gradename :='PRE-K';
    PL/SQL procedure successfully completed.
    SQL> begin sel_subgroup(key => :key, gradename => :gradename,rc => :rc); end;
      2  /
    PL/SQL procedure successfully completed.
    SQL> print rc
    ERROR:
    ORA-24338: statement handle not executed
    SP2-0625: Error printing variable "rc"how to handle this error sir

  • How to create this type of cursive font?

    Is this done with brushes?
    What would be the best way to create this type of handwritten look?
    thanks

    You could use an art brush to assign ink stroke like these to a line.
    Create a brush type shape that's in a straight horizontal line with the desired beginning, end and edges.
    Then Brushes > New Brush > Art Brush will create an art brush. (whilst the shape is selected)
    With just one brush you will be quite limited, but with a selection of brushes generated in this way you can create a selection of brushes to deal with the various requirements of building a brush font that has some integrity.
    You will find that despite automating the brush process to an extent, that to create lettering like you examples, you will have to make a lot of tweaks.

  • How to achieve this type of Writing

    I finally my Intuos tablet and I been trying to make this type of lettering, but I haven't had no luck. I been messing with the settings of the "Calligraphic" brushes and nothing. If someone out there knows how to achieve this and is willing to share the knowledge I'd be very helpful and I'd appreciate it it very much!
    http://img209.imageshack.us/img209/1186/typevl0.jpg
    Thanks!

    I'm afraid your expectations may be a bit unrealistic. That's not going to automatically happen by merely stroking away with a stylus using a Calligraphic Brush.
    Whether you're using a stylus or a mouse for your input device, that kind of text design is drawn deliberately and carefully with the Pen tool, creating paths along the edges of the glyphs.
    You
    might achieve a rough sketch as a starting point, but even then it would be better (and most probably easier) done by drawing centerline paths with the Pen and applying the Calligraphic Brush to those paths. Better still, start with a pencil sketch, scan it, and just start tracing that with the Pen. Tracing text is excellent practice for learning to use the Pen.
    JET

  • How to generate this xml file?

    Dear experts,
         Could you please tell me how to generate to below xml file? 
    <?xml version="1.0" encoding="utf-8" ?>
    - <faxmakerdata>
    - <RECIPIENTS>
    - <FAX>
    - <RECIPIENT>
      <FIRSTNAME>><![CDATA[]]></FIRSTNAME>
      <LASTNAME><![CDATA[]]></LASTNAME>
      <COMPANY><![CDATA[]]></COMPANY>
      <DEPARTMENT><![CDATA[]]></DEPARTMENT>
      <EMAILADDRESS><![CDATA[]]></EMAILADDRESS>
      <NUMBER><![CDATA[2937]]></NUMBER>
      <VOICENUMBER><![CDATA[]]></VOICENUMBER>
      </RECIPIENT>
      </FAX>
      </RECIPIENTS>
      </faxmakerdata>
    I have used  "SDIXML_DATA_TO_DOM  " but there will appear <Item>
    could you please tell me how to do?

    Hi,
        after SDIXML_DATA_TO_DOM  fm Use SDIXML_DOM_TO_XML to  convert DOM to XML
        then u can use any download file FM .
      DATA:
        TABLESTATS           LIKE MSSTABSIZEINFO,
        IVALUE               TYPE I,
        BEGIN OF VERSIONTAB OCCURS 0,
          VERSIONDAT         LIKE SY-DATUM,
        END OF VERSIONTAB,
        CMD(384)             TYPE C,
        XML_AS_STRING        TYPE     XSTRING,
        DOCUMENT             TYPE REF TO IF_IXML_DOCUMENT,
        DOM                  TYPE REF TO IF_IXML_ELEMENT,
        TABLENAME(128)       TYPE C,
        RC                   TYPE SY-SUBRC,
        L_EXISTS             LIKE DD02L-ACTFLAG.
    convert table to a DOM
      CALL FUNCTION 'SDIXML_DATA_TO_DOM'
        EXPORTING
          NAME        = 'spinfo'
          DATAOBJECT  = SPINFO[]
        IMPORTING
          DATA_AS_DOM = DOM
        CHANGING
          DOCUMENT    = DOCUMENT
        EXCEPTIONS
          OTHERS      = 01.
      IF SY-SUBRC = 0.
        CALL METHOD DOCUMENT->APPEND_CHILD
          EXPORTING
            NEW_CHILD = DOM
          RECEIVING
            RVAL      = RC.
        IF RC = 0.
        convert DOM to XML
          CALL FUNCTION 'SDIXML_DOM_TO_XML'
            EXPORTING
              DOCUMENT      = DOCUMENT
              PRETTY_PRINT  = 'X'
            IMPORTING
              XML_AS_STRING = XML_AS_STRING
              SIZE          = IVALUE
            TABLES
              XML_AS_TABLE  = XML_AS_TABLE
            EXCEPTIONS
              OTHERS        = 2.
          IF SY-SUBRC = 0.
            MOVE XML_AS_STRING TO XML_AS_STRING_OUT-XML_STRING.
            MOVE IVALUE TO XML_AS_STRING_OUT-LENGTH.
          ENDIF.
        ENDIF.
      ENDIF.
    Salil...

  • How to solve "this type of file is not supported, or the required codec is not installed"?

    Hi all,
    I've just started using a new computer with WIndows 8.1 within the last week and have loaded my Adobe Premiere Elements 11.0 software into it.
    In trying to view and edit a video I created on my old computer, I got "Media Pending" and "Media Offline" notices as soon as I began. The source files are located on an external drive with a permanent letter designation. I began the process of reconnecting my Project Assets files with the source files this morning, but have now encountered a new roadblock. Each time I try, I get the message "this type of file is not supported, or the required codec is not installed." It offers no information or options other than to click "OK," which is not very helpful.
    All the source files are located in one folder on my external drive. I have been able to reconnect the JPEGs and the mp3 source files but not the AVI video files.
    Here are three screenshots. The first is the "Media Offline" message, the second is the message I receive when I try to reconnect my Project Assets to the source files and the third is a screenshot of the codecs installed on the new computer.
    Here is my new computer information:
    Model: Del Inspiron 3847
    Intel Core i5-4460
    CPU @ 3.20 GHz  3.20 GHz
    RAM 8 GB
    System type: 64-bit, x64-based processor
    I hope someone can guide me. What do I need to do to solve this problem?
    Thank you.
    Message was edited by: Janie Christensen Ficara

    StreetSongs
    Thank your for the information supplied.
    But, what are the properties of this .avi file that you seek?
    Video Compression
    Audio Compression
    Frame Size
    Frame Rate
    Interlaced or Progressive
    Pixel Aspect Ratio
    Right now of prime interest is the video compression that is being wrapped by that AVI wrapper/container.
    AVCHD.avi
    MotionJPEG.avi
    XviD.avi
    DviX.avi
    other
    There are instances were a particular video compression or a particular container/wrapper format is each supported by Premiere Elements, but
    not a combo of those particular two. But, in this instance, I suspect this to be a MotionJPEG video codec issue, but your details will
    point us to the actual situation, and we will plan troubleshooting strategy from there.
    ATR

  • How to solve this type of stackoverflowerror...

    Hi all,
    I have a java program which runs repeatedly by calling to main functions in a loop based on a condition ..But after running for some time(say 30 minutes),it shows the follwing error and it terminate the program execution.But as per my requirement i want to run this program for several hours or time without showing any error and terminating the program.
    Exception in thread "main" java.lang.StackOverflowError
    at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(Unknown Source)
    at sun.nio.cs.StreamEncoder.write(Unknown Source)
    at java.io.OutputStreamWriter.write(Unknown Source)
    at java.io.BufferedWriter.flushBuffer(Unknown Source)
    at java.io.PrintStream.write(Unknown Source)
    at java.io.PrintStream.print(Unknown Source)
    at java.io.PrintStream.println(Unknown Source)
    at pitstop.automation1.main(automation1.java:18)
    at pitstop.automation1.main(automation1.java:298)
    at pitstop.automation1.main(automation1.java:298)
    at pitstop.automation1.main(automation1.java:298)
    Could anyone please tell me what is the exact reason for this and how to fix this error.
    The code for the same program is below:
    package pitstop;
    import java.io.*;
    import java.util.*;
    public class automation1 {  
    public static void main(String[] args) throws InterruptedException {    
    System.out.println("--");
    String str3=null;
    String fNameOne = "D:\\textfile\\";
    File myDir=new File(fNameOne);
    //System.out.println("myDir:" +myDir);  
    FilenameFilter select=new FileListFilter("","txt");
    File[] content=myDir.listFiles(select);
    String filepath=null;
    String fName=null;
    String fileName = null;
    String fileName1=null;
    File dir = new File(fNameOne);
    String[] chld = dir.list();
    // System.out.println("dir length:" +chld.length );  
    for(int i = 0; i < chld.length; i++){  
    fileName = chld;
    System.out.println("Filename:"+fileName);
    Thread t=new Thread();
    t.sleep(1000);
    //if(content!=null){  
    for(int i = 0; i < chld.length; i++){  
    ///some operations
    automation1.main(args);
    if(chld.length==0)
    automation1.main(args);
    Here i am calling the main function again and again using automation1.main(args) at line no 299 and 304.
    Please help me in this issue.
    Thanks,
    Sanat

    1. Use the tags when posting code.
    2. In the main method, you don't change the args array in no way, and then invoke main(args);, that is, do the same things, leave args as it is, and then re-invoke the method, and so on, without anything breaking this chain. of course, it will never end.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to handle this type of output?

    Hey everyone,
    I'm looking for a way handling this report for my own job.
    a table having the following attributes exists.
    Create table Test (
    Public_Date varchar2(10),
    City varchar2(10),
    cnt number(3))
    some records of this table are listed below:
    Pubdate City cnt
    2005      a     10
    2005     b      13
    2006     a     21
    2006     b      3
    2006     c     2
    2007     d     10
    2007     a     8
    2007     c     7
    2008     b     9
    2008     c     1
    Query with the following output could be readily produced using group by clause.
    Year Sum
    2005 23
    2006 36
    2007 15
    2008 10
    But the question is that How I can lead to the following output.
    (I want to merge some records into one record in the output, in this example
    sum of all years after 2005 is my interest not each year individually come before)
    Year(s) Sum
    2005 23
    2006 36
    "after 2006" 25
    Could everyone help me how to handle this?

    Year Sum
    2005 23
    2006 36
    2007 15
    2008 10Isnt' the above result wrong based on your input data?
    SQL> select public_date, sum(cnt) from test group by public_date;
    PUBLIC_DAT   SUM(CNT)
    2005               23
    2008               10
    2007               25
    2006               26
    SQL>Here's the one you are looking for.....
    SQL> select decode(public_date, 2005, public_date, 2006, public_date, 'Above 2006') pb_date,
      2         sum(cnt)
      3  from test
      4  group by decode(public_date, 2005, public_date, 2006, public_date, 'Above 2006') ;
    PB_DATE                            SUM(CNT)
    2005                                     23
    Above 2006                               35
    2006                                     26
    SQL>

  • How to generate two different analog signal in two different VIs

    I'm using a PCIe-6321 board and a SCB-68 connector block. As it has two analog output I would like to use one of these output in one Vi to generate a square waveform and the other output in another VI to generate a sine waveform. Each VI work perfectly separatly but if I run one then the other, the second one doesn't send any signal. Since I don't want to merge the two VIs (It's more convenient to operate them separatly), how can I figure out to make them work together (sometimes).
    Solved!
    Go to Solution.

    I assume you get error -50103 (resource is reserved) at either on vi.
    It's not possible to run two AO channels independetly from each other with different VIs since both Tasks are trying to request the same timing engine at the DAQ device.
    Christian

  • How can use this TYPE

    Hi all,
    I'm quite new to this, please see the code below.
    CREATE OR REPLACE TYPE "test" AS OBJECT
    "first" NUMBER(4),
    CONSTRUCTOR FUNCTION "test"(param varchar2(200)) RETURN SELF AS RESULT
    )NOT FINAL INSTANTIABLE;
    create or replace type body "test" is
    CONSTRUCTOR FUNCTION "test"(param varchar2(200)) RETURN SELF AS RESULT is
    begin
    select to_char(sysdate, 'YYYY')
    into self."first"
    from dual;
    return;
    end;
    end;
    how can i retrieve information from the type above in pl/sql?
    Thanks in advance

    Ok, so here we go:
    michaels>  create or replace type pl_tabobj as object (
       rn    number,
       val   varchar2 (10)
    Type created.
    michaels>  create or replace type pl_tabtype as table of pl_tabobj
    Type created.
    michaels>  create sequence pl_tabtype_seq
    Sequence created.
    michaels>  create or replace function f_array (p_list in varchar2)
       return pl_tabtype pipelined
    as
       v_str    varchar2 (1024) default p_list || ',';
       v_len    number;
       v_data   pl_tabtype := pl_tabtype(pl_tabobj(null,null));
    begin
       loop
          v_len := instr (v_str, ',');
          exit when (nvl (v_len, 0) = 0);
          select pl_tabobj(pl_tabtype_seq.nextval,trim (substr (v_str, 1, v_len - 1)))
            into  v_data(v_data.count)
            from dual;
          v_str := substr (v_str, v_len + 1);
          pipe row (v_data(v_data.count));
       end loop;
       return;
    end f_array;
    Function created.
    michaels>  select * from table (f_array ('11,15,16'))
            RN VAL      
             1 11       
             2 15       
             3 16       
    michaels>  select * from table (f_array ('11,15,16'))
            RN VAL      
             4 11       
             5 15       
             6 16       
    michaels>  select * from table (f_array ('11,15,16'))
            RN VAL      
             7 11       
             8 15       
             9 16       

  • How to perform this type of search in Pages

    I have a list of over a thousand words and need to do a search for general words that would fit in a particular space, i.e. a crossword puzzle and needs 8 letters.
    How do you search a list of words in Pages for all words that have the fifth letter as an E?
    or... how would you search for a word that has the following that you know...
    ???A??SE
    So you are looking of a specific list for a word, or in my case could be a name, that would be on that list that has an A as the fourth letter and ends in SE and is 8 letters long?
    I have to do search strings off this list and it has thousands of names and words.
    Thank you.
    Randal

    Thank you for that. Any suggestions on a program that can. Just tried Bean and no luck there either. Bummer. Sometimes I do miss Windows, but never enough to go back to it. So need a text editor that can GREP...

Maybe you are looking for

  • Not working sensor

    perfomance is very slow and sensor not working properly

  • Second optical drive problem

    New to macs after a 14 year hiatus. I recently installed a new pioneer BDR-205 blu-ray drive as a second lower drive in my mac pro 2009 running SL and fully updated. The original first upper drive is a model HL-DT-ST DVD-RW GH41N. Pioneer and OWC bot

  • HT204291 Airplay Won't Stream Video

    When I try to stream an iTunes movie rental from my iPad 3 to my AppleTV (2 gen), only the audio streams, not the video. That is, it behaves as if I'm streaming an iTunes music playlist - the movie poster appears on my TV along with a bar showing how

  • Can't install Updates for Cyberlink and SimplePass

    Can't install Updates for Cyberlink MediaSuite 10-desktop SP63340 v10.0.4.2928  ~OR~ Cyberlink LabelPrint SP63286 v2.5.4.6515  ~OR~ HP SimplePass Identity Protection Software SP63224 v6.0.100.276 Downloads fine just won't install. I have an HP ENVY m

  • Compiled libraries

    We are using a framework that consists of a set of project plans. These are bundled into a library distribution, distributed as compiled (Compaq Tru64 Unix and Windows NT) and are used by other developers who import them into their repositories. They