Reading simulated encoder with 6602

Hello!
I'm trying to read quadrature encoder (to be more specific this is an output of the pulse train generator that simulates the encoder).
In the attached picture you can see how the signal that i'm trying to read.
I need an advise about the correct filter settings.
Please also see the attached vi.
Usefull data:
Labview 8.2.1
Capturing device PXI-6602.
The Encoder is 16384 pulses. (If the reading is x4, i should get 2^16 - 65536 ticks).
The Encoder has differential outputs, but i've connected only A,B and Z.
The rotating speed is up to 5000 rpm. You can see in on the picture. (16384*(5000/60)=1,365,333MHz).
There is no problem to read the encoder with another devices, i have a motion analyzer from Control&Robotics solution and it works great.
Thank you.
Elman Izia.
001.jpg (78 kb)
Position capture.vi (171 kb)

Hi Elman,
The filter clock is used to make sure that your signal has
integrity and eliminates glitches.  In
order for signal to be counted, it must remain high for two consecutive periods
of your filter clock.  There are five
time bases (5us, 1us, 500ns, 100ns and programmed) that can be used as your
filter clock.  The programmed clock can
be created by another counter and this setting will let a signal be counted if
it is at least twice times the filter period.
This is a great method to help eliminate errors that can be
introduced by noise, crosstalk or transmission line effects.
The TimebaseSrc property is going to select a clock to be
used as the source.  In your example that
property is correct, you would want to use the 80MHz clock.  The TimebaseRate property is going to be used
to divide the clock down to specific frequency. 
It will divide the master clock down by an integer value and round it to
get a rate that is as close to the value entered.  I would recommend leaving this number as
80MHz. 
The MinPulseWidth property is going to determine the clock
of the filter clock.  This property is
going to use the TimebaseRate property to create the predefined filter clock
settings.  If your signal stays high for
two consecutive periods of the minimum pulse width, then it will be counted. 
You need to determine the minimum pulse width that is
acceptable for your application.  Since
your signal has a pulse width of about 360ns, you might want to use the
predefined filter clock of 100ns.
In short, you are creating a digital filter that will only allow
a signal to be recognized if it remains high for two consecutive pulses.
For further explanation, refer to the PCI/PXI–6602 User
Manual page 3-20.
http://www.ni.com/pdf/manuals/322137a.pdf
Respectfully,
Rob F
Test Engineer
Condition Measurements
National Instruments

Similar Messages

  • Reading an encoder with a USB 6008

    Hello DAQmx users,
    I have a USB 6008 and it doesn't work the way I want it to.  I have done no troubleshooting or research and I refuse to give you any more information.  You have 30 seconds to answer my question.   i kid, i kid...
    So here is my real question:
    I have a USB 6008 that we use to do simple analog output.  I'm looking for a way to use the USB 6008 to also get encoder information.  I know that the USB 6008 cannot read an encoder directly, but I was wondering if anyone knew of or had any ideas of external hardware that could be used inbetween the 6008 and the encoder.  I think it would be something like 1) the encoder generates pulses 2) external hardware takes encoder pulses, translates them into a digital value representing the angle and outputs this digital value 3) use the digital lines on the 6008 to read in the digital angle value from the external hardware 4) I don't lose my job.
    I realize that this isn't an easy, optimal, or preferred solution, but I want to look into it before being forced to replace the USB 6008 with another piece of hardware.
    Eric
    DE For Life!

    Oops..  Just realized that this got posted in the Motion Control Forums... Meant for it to go in the MIO forums.  Sorry!
    New thread is here, feel free to respond!
    Message Edited by e-Cash-Money on 03-17-2006 04:30 PM
    Eric
    DE For Life!

  • Reading quad encoder with 9870

    Hi there, my project involves using a quadrature encoder to sense the position and degrees of two encoders.
    I have successfully modified the example vi from http://zone.ni.com/devzone/cda/tut/p/id/3921 using NI 9411.
    However, I would like to know how I can read this data from the 9411 module into the NI 9870.
    I have read examples of DMA from http://zone.ni.com/devzone/cda/tut/p/id/4534 but I do not clearly understand how it works.
    How can I implement the FPGA file that I have achieved using NI 9411 to NI 9870 without serial connection.
    Thank you

    Hi Elman,
    The filter clock is used to make sure that your signal has
    integrity and eliminates glitches.  In
    order for signal to be counted, it must remain high for two consecutive periods
    of your filter clock.  There are five
    time bases (5us, 1us, 500ns, 100ns and programmed) that can be used as your
    filter clock.  The programmed clock can
    be created by another counter and this setting will let a signal be counted if
    it is at least twice times the filter period.
    This is a great method to help eliminate errors that can be
    introduced by noise, crosstalk or transmission line effects.
    The TimebaseSrc property is going to select a clock to be
    used as the source.  In your example that
    property is correct, you would want to use the 80MHz clock.  The TimebaseRate property is going to be used
    to divide the clock down to specific frequency. 
    It will divide the master clock down by an integer value and round it to
    get a rate that is as close to the value entered.  I would recommend leaving this number as
    80MHz. 
    The MinPulseWidth property is going to determine the clock
    of the filter clock.  This property is
    going to use the TimebaseRate property to create the predefined filter clock
    settings.  If your signal stays high for
    two consecutive periods of the minimum pulse width, then it will be counted. 
    You need to determine the minimum pulse width that is
    acceptable for your application.  Since
    your signal has a pulse width of about 360ns, you might want to use the
    predefined filter clock of 100ns.
    In short, you are creating a digital filter that will only allow
    a signal to be recognized if it remains high for two consecutive pulses.
    For further explanation, refer to the PCI/PXI–6602 User
    Manual page 3-20.
    http://www.ni.com/pdf/manuals/322137a.pdf
    Respectfully,
    Rob F
    Test Engineer
    Condition Measurements
    National Instruments

  • File encoded with x264 takes forever to load in Encore CS 5.5

    I use Encore mostly because it takes h.264 video encoded with the x264 compressor, which provides much higher quality than any other compressor. The problem is that these files take forever to load. For example, right now I'm trying to load a video that is about 1 hour and 20 minutes long, encoded at 38 Mbps, and the file is 20.9 GBytes. Now it's 3 PM and I imported this file along with the AC3 file over an hour ago. The Encore process shows as not responding, but when I open the Windows 7 Resource Monitor, in the disk tab it shows that it's reading the video file at a rate of about 45 MB/s, so I didn't kill the Encore process. I know eventually it's going to stop and load the file, but I don't understand why it takes so long. The encoding parameters that I used in x264 are these:
    x264 --level 4.1 --bluray-compat --preset slow --bitrate 38000 --keyint 30 --min-keyint 2 --open-gop --weightp 0 --slices 4 --vbv-bufsize 30000 --vbv-maxrate 40000 --rc-lookahead 40 --tff --output "output" "input"
    This comes from a family video that is 1080 59.94i. This time these two parameters appeared because I selected Blu-ray as the target:  --bluray-compat and --open-gop, which I don't normally use, but still, even when I don't use them, video encoded with x264 takes forever to load. Does anybody here know what could be the problem?

    What's weird is last year I encoded a file that was almost two hours long and Encore took it without trouble, although it was CS5, not 5.5. Since I had kept the avs and bat files, and also the x264.exe from that encode, I brought them into the current working folder and I just modified the file names in the avs and bat files to point to the new avi and encode to the new h264 file. So I encoded this file, I imported it into Encore, and it still hangs. Maybe it was a change from CS5 to 5.1 that introduced a problem. x264 has been certified to be Blu-ray compliant since over a year ago, and I already put this file to a Blu-ray with TSMuxer, since it was a family video and I didn't really need menus, and it plays perfectly fine in my Blu-ray player.
    But I'm sure there must be something, one or two parameters that would make it compatible. For example, after encoding the file again the last time, now I can import it into Encore, and it doesn't stay frozen forever, but it doesn't show me the video and as soon as I try to move the timeline cursor it freezes and doesn't let me do anything for several minutes. So still it's not usable. But it's a change from the first encode where the progress dialog would be there for several hours and do nothing at all.

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi
    i want to create a xml file with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
    <?xml version="1.0"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    BUT the document attribut(?) encoding="UTF-8"?> is missing!
    How can i add encoding with value UTF-8 to the document object?? it should look like:
    <?xml version="1.0" encoding="UTF-8"?>
    *here is my coding.
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    DATA: lo_ixml           TYPE REF TO if_ixml,
          lo_streamfactory  TYPE REF TO if_ixml_stream_factory,
          lo_document       TYPE REF TO if_ixml_document,
          lo_parent         TYPE REF TO if_ixml_element,
          lo_ostream        TYPE REF TO if_ixml_ostream,
          lo_renderer       TYPE REF TO if_ixml_renderer,
         lv_rc           TYPE i.
    lo_ixml = cl_ixml=>create( ).
    lo_streamfactory = lo_ixml->create_stream_factory( ).
    lo_document = lo_ixml->create_document( ).
    lo_parent = lo_document->create_simple_element( name   = 'OpenSearchDescription'  "root node
                                                    parent = lo_document ).
    lo_parent->set_attribute_ns( name   =  'xmlns'
                                 value  = 'http://....' ).
    *rausrendern in file
    lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
    lo_renderer = lo_ixml->create_renderer( ostream  = lo_ostream
                                            document = lo_document ).
    lv_rc = lo_renderer->render( ).
    Thanks for help
    Britta

    Use the following code:
    set an document encoding
      l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
                                            byte_order = if_ixml_encoding=>co_none ).
      l_success  = l_ostream->set_encoding( encoding = l_encoding ).
    create a xml renderer
      l_renderer = l_ixml->create_renderer( document = l_doc ostream  = l_ostream ).

  • F4v encoded with Adobe media encoder CS4 (longer than 71 minutes)

    Hi I don't know if this is the correct place for this post. So apologies me if this is the wrong place.
    Encoding with Adobe Media Encoder CS4 (4.2.0.006 and 4.0 too)
    Source: MOV (DVPAL) longer than 71 minutes
    Dest: F4V (H.264)
    Result: freezed frames and only plays audio at 01:11. Media Player goes crazy and starts showing some diferent parts freeze frames.
    In Quicktime crashes, in VLC the same of MediaPlayer. Sometimes the audio starts to downsampling and sounds like the pitch goes down.
    Totally agree with this other post: http://forums.adobe.com/thread/580391
    (extract)
    I recentlly encoded afew F4V using Adobe Media Encoder Cs4.  MOst of them are working properly but I don't know why, all of my video that are longer than 71 minutes seems to have trouble playing back.  They all Freeze when they reach 71 minutes or if I navigate pass this point.
    thanks and help us please!
    Kik

    Thanks for the interest.
    I'll try to explain all details:
    MacPro 1.1 (mid 2006) under Mac OS X 10.4.11 (Darwin 8.11.1 kernel)
    System files: journaled HFS+ and a unix based NAS (under samba connection)
    I have all material on the NAS and also I make the transcoding over it. Is a simple mov containing DV PAL WIDE interlaced 25fps with stereo audio. typical settings with nothing out of DV PAL standard.
    The version of MediaEncoder CS4: 4.2.0.006 (it happens with older versions too)
    The settings of MediaEncoder are:
    Audio: AAC stereo 44,1 kHz
    Video: F4V. MainConcept H.264, fps like source, profile high, level 4,1. CBR compression.
    The problem only appears with videos longer than 71 minuts. At 01:11 starts with crazy problems. It seems like the player have some read or problems.
    Tell me if you need some other kind of information.
    thks

  • Payload type of wav files encoded with gms codec

    Hello everybody,
    I have an application which receives and plays alaw formated wav files using JMF(with the help of some additional libraries) . I want to use lower bandwidth for my application. A quick google search indicated that i can do this by using gsm format.
    I have 2 questions:
    1-) what are the differences between .gsm files and .wav files which are encoded with gsm codecs? Which one's quality is better? which one's compression ratio is better?
    2-) which payload type should i use for wav files which are encoded with gsm codecs?
    In [Rtp Payload list|http://www.iana.org/assignments/rtp-parameters] page, there is a gsm entry whose payload is 3. I suppose that is for files with gsm extension. I tried it but it didn't work with my wav sample (as u can guess it was encoded with gsm 6.10 codec)
    Any suggestion is appreciated. If you have a comment about the main problem (which is using lower bandwidth for sending audio data) i would also like to hear it
    Thanks in advance
    btw i also tried this [gsm sample|http://www.nch.com.au/acm/sample.gsm] with payload 3.At first it worked but then strangely it played just static. In Sun's page it says gsm format is supported. I played both ulaw and alaw succesfully so i wonder what i am doing wrong. Do we need to tell the player that it is going to receive data in gsm format? I didnt do such a thing for u-law and a-law formats...
    Edited by: Bugra.Hasbek on Nov 10, 2008 1:18 AM

    Bugra.Hasbek wrote:
    Hello everybody,
    I have an application which receives and plays alaw formated wav files using JMF(with the help of some additional libraries) . I want to use lower bandwidth for my application. A quick google search indicated that i can do this by using gsm format.
    I have 2 questions:
    1-) what are the differences between .gsm files and .wav files which are encoded with gsm codecs? Which one's quality is better? which one's compression ratio is better?I would imagine they are the same...
    2-) which payload type should i use for wav files which are encoded with gsm codecs?I would imagine 3...
    In [Rtp Payload list|http://www.iana.org/assignments/rtp-parameters] page, there is a gsm entry whose payload is 3. I suppose that is for files with gsm extension. I tried it but it didn't work with my wav sample (as u can guess it was encoded with gsm 6.10 codec)
    Any suggestion is appreciated. If you have a comment about the main problem (which is using lower bandwidth for sending audio data) i would also like to hear itMy suggestion would be not to worry about so much stuff. JMF does all of this for you automaticlly.
    On the sender side, make your processor take in whatever kind of supported file you want. Set the processor to output your GSM mono, and then you can just use a Player to play it on the other side. It's really not very different than the examples...
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVTransmit.html]
    When you're programming the tracks, and you're calling "setFormat" on them, just set their format to be gsm.
    [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/AVReceive.html] should be able to play this out of the box...

  • Problem reading csv file with special character

    Hai all,
    i have the following problem reading a csv file.
    442050-Operations Tilburg algemeen     Huis in  t Veld, EAM (Lisette)     Gebruikersaccount     461041     Peildatum: 4-5-2010     AA461041                    1     85,92
    when reading this line with FM GUI_UPLOAD this line is split up in two lines in data_tab of the FM,
    it is split up at this character 
    Line 1
    442050-Operations Tilburg algemeen     Huis in
    Line 2
    t Veld, EAM (Lisette)     Gebruikersaccount     461041     Peildatum: 4-5-2010     AA461041                    1     85,92
    Anyone have a idea how to get this in one line in my interbal table??
    Greetz Richard

    Hi Greetz Richard
      Problably character  contains same binary code as line feed + carriage return.
      You can use statement below as workaround.
    OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING UNICODE
    In this case your system must support Unicode encoding
    Kind regards

  • BUG: ADF BC read-only VO with no Key attrs + af:table

    Hello all,
    I've got a bug to report - quite easily reproducable with the HR demo schema. To see it:
    1). Create a new application from the ADF BC + Faces template
    2). Create a read-only VO, use "SELECT employee_id, first_name from employees" and order by "employee_id" - take the defaults for everything - do not set any key attributes.
    3). Create an AM, add the VO to it's data model. Turn off AM pooling in the configuration.
    4). Create a JSPX page. Drag-drop the VO from the data control palette as an ADF read-only table - with selection
    5). Bind the actionlistener of the "submit" button to a backing bean method that just system.out.println's something.
    Now, run the app. Try selecting an employee from the first page (records 1-10) and clicking submit - it works. Now, scroll to the second set of records, select one and click submit - no message appears - the action listener is never called. No errors are thrown.
    Workaround: ensure the VO has employee_id selected as a key attribute.
    My code is at the bottom for reference.
    Cheers,
    John
    untitled1.jspx:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html>
          <afh:head title="untitled1">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <af:messages/>
            <h:form>
              <af:table value="#{bindings.emp1.collectionModel}" var="row"
                        rows="#{bindings.emp1.rangeSize}"
                        first="#{bindings.emp1.rangeStart}"
                        emptyText="#{bindings.emp1.viewable ? 'No rows yet.' : 'Access Denied.'}"
                        selectionState="#{bindings.emp1.collectionModel.selectedRow}"
                        selectionListener="#{bindings.emp1.collectionModel.makeCurrent}">
                <af:column sortProperty="EmployeeId" sortable="false"
                           headerText="#{bindings.emp1.labels.EmployeeId}">
                  <af:outputText value="#{row.EmployeeId}">
                    <f:convertNumber groupingUsed="false"
                                     pattern="#{bindings.emp1.formats.EmployeeId}"/>
                  </af:outputText>
                </af:column>
                <af:column sortProperty="FirstName" sortable="false"
                           headerText="#{bindings.emp1.labels.FirstName}">
                  <af:outputText value="#{row.FirstName}"/>
                </af:column>
                <f:facet name="selection">
                  <af:tableSelectOne text="Select and">
                    <af:commandButton text="Submit" actionListener="#{abc.click}"/>
                  </af:tableSelectOne>
                </f:facet>
              </af:table>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>abc.java:
    import javax.faces.event.ActionEvent;
    public class abc
      public abc()
      public void click(ActionEvent actionEvent)
        System.out.println("click");
    }emp.xml (View Object):
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <ViewObject
       Name="emp"
       OrderBy="employee_id"
       BindingStyle="OracleName"
       CustomQuery="true"
       ComponentClass="model.empImpl"
       UseGlueCode="false" >
       <SQLQuery><![CDATA[
    select employee_id, first_name
    from employees
       ]]></SQLQuery>
       <DesignTime>
          <Attr Name="_isExpertMode" Value="true" />
          <Attr Name="_version" Value="10.1.3.39.84" />
          <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess" />
       </DesignTime>
       <ViewAttribute
          Name="EmployeeId"
          IsUpdateable="false"
          IsPersistent="false"
          IsNotNull="true"
          Precision="6"
          Scale="0"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="EMPLOYEE_ID"
          Expression="EMPLOYEE_ID"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_DisplaySize" Value="22" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="FirstName"
          IsUpdateable="false"
          IsPersistent="false"
          Precision="20"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="FIRST_NAME"
          Expression="FIRST_NAME"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_DisplaySize" Value="20" />
          </DesignTime>
       </ViewAttribute>
    </ViewObject>appModule.xml:
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE AppModule SYSTEM "jbo_03_01.dtd">
    <AppModule
       Name="AppModule"
       ComponentClass="model.AppModuleImpl" >
       <DesignTime>
          <Attr Name="_isCodegen" Value="true" />
          <Attr Name="_version" Value="10.1.3.39.84" />
          <Attr Name="_deployType" Value="0" />
       </DesignTime>
       <ViewUsage
          Name="emp1"
          ViewObjectName="model.emp" >
       </ViewUsage>
    </AppModule>bc4j.xcfg:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
       <AppModuleConfigBag>
          <AppModuleConfig name="AppModuleLocal">
             <DeployPlatform>LOCAL</DeployPlatform>
             <JDBCName>local_hr</JDBCName>
             <jbo.ampool.doampooling>false</jbo.ampool.doampooling>
             <jbo.project>Model</jbo.project>
             <jbo.ampool.dynamicjdbccredentials>false</jbo.ampool.dynamicjdbccredentials>
             <AppModuleJndiName>model.AppModule</AppModuleJndiName>
             <ApplicationName>model.AppModule</ApplicationName>
          </AppModuleConfig>
       </AppModuleConfigBag>
       <ConnectionDefinition name="local_hr">
          <ENTRY name="JDBC_PORT" value="1521"/>
          <ENTRY name="ConnectionType" value="JDBC"/>
          <ENTRY name="HOSTNAME" value="localhost"/>
          <ENTRY name="DeployPassword" value="true"/>
          <ENTRY name="user" value="hr"/>
          <ENTRY name="ConnectionName" value="local_hr"/>
          <ENTRY name="SID" value="STGY"/>
          <ENTRY name="password">
             <![CDATA[{904}05DB46A9C39F51D1A4814423FFD9297C71]]>
          </ENTRY>
          <ENTRY name="JdbcDriver" value="oracle.jdbc.OracleDriver"/>
          <ENTRY name="ORACLE_JDBC_TYPE" value="thin"/>
          <ENTRY name="DeployPassword" value="true"/>
       </ConnectionDefinition>
    </BC4JConfig>

    Hi,
    reproduces for me. It appears that the parameter is not applied properly when executing the query.
    Frank

  • Jerky encoding with UscreenCapture

    I have Abobie Flash Encoder 2 and have jerky video on all
    encoding. I use UscreenCapture as a capture device. I can run up
    the stream to 1000kbps and still have jerks on pans. This renders
    all videos unusable.
    This may be a problem with UscreenCapture but I have smoth
    playback on the output window.
    I have changed settings to best framerate.
    MAchine Windows Xp 3.2 ghz with 1 gig ram nvidia 7300
    sample here www.whatsignal.com/flash/flvplayer.html
    I don't know how to fix it unless maybe I need a different
    screen capture utility.

    Well I find this filter is quite good in 'masking' block artifact that codec like xvid, or other low compression codec have. I only apply it if I find the block artifact is too much and I find this filter is less offending to my eyes than the block artifact.
    In manual it said that if you have noisy video and want to lower the size then you can use this filter. It also blur the video a bit. But I suspect it is more than blur as I try gaussian blur in time line and the result is not as good. You can see the result as well. There is the tab between source and target and you can compare the result by togling between source and target tab.
    BTW, anyone with 1 core, dual, or quad core, can you tried to encode with it? Just cancel it after few minutes as I want to see what is your processor utilization with this filter on. Also you can see how long does it take to process this video from the 'estimation time left'.

  • Reading simulation payroll

    Hello,
    How we can read simulation payroll is their any function module is available
    Regards
    Santhosh

    Hi,
    In Simulation payrol the result can be seen only from the log. Please note that in simulation run no cluster / RT record is generated.
    the path to see the simulated RT result run the simulated payroll with Display Log & follow the path as under:
    Expand Personnel No.>Else>Final Processing>Sort RT>click in Output to dipaly Results.
    Regards,
    Devojit

  • HTML encoding with JTextPane

    hello,
    I'm using JTexPane to edit rich text in my application.
    I set the editorkit with
    pane.setEditorKit(new HTMLEditorKit());
    and I create a new document for editing with
    pane.setDocument(pane.getEditorKit().createDefaultDocument());
    but when I enter text in the pane with accent like "j'ai mang� une pomme" , the method pane.getText() return my html document encoded with ISO-10646 aka Unicode where the "�" is &#233;
    I try to create the editorKit for the ContentType "text/html; charset=UTF-8" but it doesn't work.
    How can I change the encoding to UTF-8 ?
    Please help me ...

    hello,
    I know your problem (i'm french), but i don't know how to resolve it easily.
    you can get the HTML code by using
    pane.getText();and change manually characters...

  • Read Node Attribute with XML DOM.

    Hello, I have a XML File like this:
    <?xml version="1.0" encoding="ISO-8859-15"?>
    <Datenexport>
    <Codeliste Nr="1">
    <Entry>
    <Code>J</Code>
    <Decodierung_DE>JA</Decodierung_DE>
    <Decodierung_EN/>
    </Entry>
    <Entry>
    <Code>N</Code>
    <Decodierung_DE>NEIN</Decodierung_DE>
    <Decodierung_EN/>
    </Entry>
    </Codeliste>
    <Codeliste Nr="3">
    <Entry>
    <Code>??</Code>
    <Decodierung_DE>Code noch festzulegen</Decodierung_DE>
    <Decodierung_EN>Code to be defined</Decodierung_EN>
    </Entry>
    I read the File with DOM and it works fin.
    This is a sample of my code:
    begin
    INDOMDOC := DBMS_XMLDOM.NEWDOMDOCUMENT(xml_doc.GETclobVAL());
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),'/Datenexport','xmlns:xiz="http://www.bvl.bund.de/Schema/2010/xiz"');
    FOR cur IN 0 .. dbms_xmldom.getLength(l_nl) - 1
    LOOP
    l_n := dbms_xmldom.item(l_nl, cur);
    l_nl2 := dbms_xmldom.getchildnodes(l_n);
    lv_value := dbms_xmldom.getnodename(dbms_xmldom.getfirstchild(l_n));
              FOR cur2 IN 0 .. dbms_xmldom.getLength(l_nl2) - 1
              LOOP
              l_n2 := xmldom.ITEM(l_nl2, cur2);
              nodename_val := dbms_xmldom.getnodename(l_n2);
              dbms_output.put_line('NodenameAntrag: '||nodename_val);
              lv2_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_n2));
              dbms_output.put_line('NodeValue: '||lv2_value);
              IF nodename_val = 'Codeliste' THEN number_val := dbms_xmldom.????????????????;
    Now, i need to read the number of the "Codeliste" (<Codeliste Nr="1">).
    But i haven´t find the right function.
    Could anbody help me?

    Still not using XMLTable for this? ;)
    OK, using DOM, for example :
    SQL> set serveroutput on
    SQL>
    SQL> declare
      2    doc       xmltype;
      3    indomdoc  dbms_xmldom.domdocument;
      4    l_nl      dbms_xmldom.DOMNodeList;
      5    l_n       dbms_xmldom.DOMNode;
      6    lv_value  varchar2(30);
      7  begin
      8    doc := xmltype('<?xml version="1.0" encoding="ISO-8859-15"?>
      9  <Datenexport>
    10  <Codeliste Nr="1">
    11  <Entry>
    12  <Code>J</Code>
    13  <Decodierung_DE>JA</Decodierung_DE>
    14  <Decodierung_EN/>
    15  </Entry>
    16  <Entry>
    17  <Code>N</Code>
    18  <Decodierung_DE>NEIN</Decodierung_DE>
    19  <Decodierung_EN/>
    20  </Entry>
    21  </Codeliste>
    22  <Codeliste Nr="3">
    23  <Entry>
    24  <Code>??</Code>
    25  <Decodierung_DE>Code noch festzulegen</Decodierung_DE>
    26  <Decodierung_EN>Code to be defined</Decodierung_EN>
    27  </Entry>
    28  </Codeliste>
    29  </Datenexport>');
    30 
    31 
    32    indomdoc := dbms_xmldom.newdomdocument(doc);
    33 
    34    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(indomdoc),'/Datenexport/Codeliste');
    35 
    36    FOR cur IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    37       l_n := dbms_xmldom.item(l_nl, cur);
    38       --lv_value := dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(l_n));
    39       dbms_xslprocessor.valueOf(l_n, '@Nr', lv_value);
    40       dbms_output.put_line('Nr : '||lv_value);
    41    END LOOP;
    42 
    43    dbms_xmldom.freeDocument(indomdoc);
    44 
    45  end;
    46  /
    Nr : 1
    Nr : 3
    PL/SQL procedure successfully completed

  • No option to encode with Surcode 5.1 in h.264 codec?

    My Premiere and AME are both updated to 4.0.1. I'm trying to encode with multi-channel to an Apple TV compliant h.264 (non-bluray) file. The audio encoding allows multi-channel AAC (which I believe may be unrecognizable by my receiver), but not an option for the Surcode AC3 codec. Surcode is available under h.264 blu-ray and MPEG-2 DVD, but is not an option under the normal h.264. How can I encode a multi-channel audio track for an Apple TV? (The blu-ray option does not allow me to pick my required resolution of 960x540 29.97 fps). And is this $300 plug-in my only multi-channel option?

    i would just encode the files seperatly. Do an audio only encode for the Surcode, then export the Video H.264. Thats what I did and it worked great.
    My problem was that the ac3 file was still only 2 channels....

  • Can Adobe Live Media Encoder encode with Left audio only?

    Hi all,
    I have a live feed video that contain dual audio (left = Englisg, right = Chinese).
    Can i use Adobe Live Media Encoder to encode with English audio mono ONLY so that FMS can stream it to user with left&right = English audio?
    Thank you.

    Are you  talking about Adobe media Live encoder and "Adobe media Server"...Just can publish from "Adobe media Live encoder"  and publish to "Adobe media server"..
    This is a adobe media server forum...and your question it seems lies in the domain of encoders.

Maybe you are looking for

  • Random "Lightroom encountered an error when reading from its preview cache" message

    I am getting this error randomly.  When I restart LR everything is fine, until I get this error again.  This problem has recently started occurring frequently when I exit LR during the backup.  Sometimes it occurs when LR is just sitting there and I

  • ConcurrentModificationException while running the deployed application

    Hi, I am using JDeveloper 11.1.2.0.0 and WebLogic Server Version: 10.3.5.0 with production environment. My application is based on Customized Dynamic Tab Shell where each task flow is loaded with its own transaction and also it is defined not to shar

  • Tricky Reports Stuff...

    I'm having a technical issue with Reports. We run Forms 6.0 (not i) and Reports 6, and we are trying to dynamically insert conditional statements into the report. Conditional statements will be stored in a DB table. The client has mandated the condit

  • Spyware problem

    I got one of those "Your computer is infected with spyware" and inadvertantly clicked on it. Now there is a window permanently open that cannot be closed, saying "Warning, your computer is infected with Spyware". How do I get rid of this window pleas

  • ICloud does not synchronize Notes.app with Apple Wireless Keyboard in use

    I own an Apple Wireless Keyboard and an iPhone 4 with the newest software, iOS5.1 When using the build-in Notes application by Apple and the original Apple Wireless Keyboard, synchronizing fails. I guess this is because Notes.app never triggers the "