Lirc no output from irw or mode2 [SOLVED]

Hello.
I'm new to Arch which I've been trying to setup for my htpc which was running Mythubuntu 10.04 but, I've ran into a problem with lirc.  I followed the arch wiki and googled and played with it for hours and I can't get it to work.
When I start it
/usr/sbin/lircd -n -d /dev/lirc0
lircd: lircd(default) ready, using /var/run/lirc/lircd
and try
irw
mode2 d- /dev/lirc0
cat /dev/lirc0
I press buttons and get nothing.  From what I've googled so far everyone was able to get some kind of output with those.  :(
What am I doing wrong?  I just have an mce remote (MediaGate GP-IR02BK) nothing special.  The red led on the receiver lights up when I press buttons and I made sure it still works by testing on a Windows 7 box.
Here is some more information:
cat /etc/lirc/lircd.conf
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"
lsmod
Module Size Used by
fuse 58669 3
ipv6 249260 16
snd_hda_codec_hdmi 20368 1
usbhid 31211 0
hid 63007 1 usbhid
rc_rc6_mce 1144 0
nvidia 10508189 30
snd_hda_intel 19261 0
snd_hda_codec 66793 2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 4919 1 snd_hda_codec
i2c_piix4 7124 0
snd_pcm 60311 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 15542 1 snd_pcm
ohci_hcd 19234 0
snd 43527 6 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,s nd_hwdep,snd_pcm,snd_timer
ehci_hcd 34847 0
ir_lirc_codec 3767 0
lirc_dev 7899 1 ir_lirc_codec
soundcore 5018 1 snd
evdev 7310 5
mceusb 9794 0
ir_sony_decoder 1847 0
agpgart 22160 1 nvidia
ir_jvc_decoder 1909 0
snd_page_alloc 5909 2 snd_hda_intel,snd_pcm
usbcore 119004 5 usbhid,ohci_hcd,ehci_hcd,mceusb
i2c_core 16665 2 nvidia,i2c_piix4
ir_rc6_decoder 2325 0
ir_rc5_decoder 1813 0
psmouse 55927 0
serio_raw 3430 0
ir_nec_decoder 2293 0
r8169 34923 0
sp5100_tco 3768 0
sg 21022 0
processor 21884 0
button 3654 0
pcspkr 1415 0
mii 3383 1 r8169
k10temp 2147 0
wmi 7367 0
rc_core 13136 9 rc_rc6_mce,ir_lirc_codec,mceusb,ir_sony_decoder, ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder
ext4 334626 3
mbcache 4321 1 ext4
jbd2 59098 1 ext4
crc16 1077 1 ext4
sr_mod 12956 0
cdrom 31341 1 sr_mod
sd_mod 25515 6
pata_acpi 2396 0
pata_atiixp 2928 0
ahci 18093 4
libahci 16581 1 ahci
libata 154349 4 pata_acpi,pata_atiixp,ahci,libahci
scsi_mod 110670 4 sg,sr_mod,sd_mod,libata
lsusb
Bus 006 Device 002: ID 1784:0008 TopSeed Technology Corp. eHome Infrared Transceiver
ls /dev |grep lirc
lirc0
lircd
I've notice I'll only seem to have the /dev/lircd if I start it with the rc script.
unplug and plugging the receiver
tail -20 /var/log/messages.log
Jun 26 21:25:08 localhost kernel: [ 31.241113] EXT4-fs (sda1): re-mounted. Opts: commit=0
Jun 26 21:25:09 localhost kernel: [ 32.116170] EXT4-fs (sda3): re-mounted. Opts: commit=0
Jun 26 21:25:09 localhost kernel: [ 32.120937] EXT4-fs (sdb1): re-mounted. Opts: commit=0
Jun 26 21:44:56 localhost -- MARK --
Jun 26 22:04:56 localhost -- MARK --
Jun 26 22:24:57 localhost -- MARK --
Jun 26 22:44:57 localhost -- MARK --
Jun 26 22:56:08 localhost kernel: [ 5491.812025] usb 6-1: USB disconnect, device number 2
Jun 26 22:56:12 localhost kernel: [ 5495.449490] usb 6-1: new full speed USB device number 4 using ohci_hcd
Jun 26 22:56:12 localhost kernel: [ 5495.606525] usb 6-1: config 1 interface 0 altsetting 0 endpoint 0x1 has an invalid bInterval 0, changing to 32
Jun 26 22:56:12 localhost kernel: [ 5495.606529] usb 6-1: config 1 interface 0 altsetting 0 endpoint 0x82 has an invalid bInterval 0, changing to 32
Jun 26 22:56:12 localhost mtp-probe: checking bus 6, device 4: "/sys/devices/pci0000:00/0000:00:13.1/usb6/6-1"
Jun 26 22:56:12 localhost kernel: [ 5495.620536] Registered IR keymap rc-rc6-mce
Jun 26 22:56:12 localhost kernel: [ 5495.620620] input: Media Center Ed. eHome Infrared Remote Transceiver (1784:0008) as /devices/pci0000:00/0000:00:13.1/usb6/6-1/6-1:1.0/rc/rc1/input6
Jun 26 22:56:12 localhost kernel: [ 5495.620676] rc1: Media Center Ed. eHome Infrared Remote Transceiver (1784:0008) as /devices/pci0000:00/0000:00:13.1/usb6/6-1/6-1:1.0/rc/rc1
Jun 26 22:56:12 localhost kernel: [ 5495.620753] rc rc1: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
Jun 26 22:56:12 localhost kernel: [ 5495.620763] mceusb 6-1:1.0: Registered Topseed Technology Corp. eHome Infrared Transceiver on usb6:4
Jun 26 22:56:13 localhost mtp-probe: bus: 6, device: 4 was not an MTP device
Jun 26 22:56:13 localhost mtp-probe: checking bus 6, device 4: "/sys/devices/pci0000:00/0000:00:13.1/usb6/6-1"
Jun 26 22:56:13 localhost mtp-probe: bus: 6, device: 4 was not an MTP device
uname -r && lircd -v
2.6.39-ARCH
lircd 0.9.0
Any help would be much appreciated.  I've exhausted all my ideas.
Last edited by Vortalex (2011-07-03 00:04:32)

Sorry for the late reply.  Thanks that did the trick.
[root@htpc ~]# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event3) with:
Driver mceusb, table rc-rc6-mce
Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
Enabled protocols: RC-6
Repeat delay = 500 ms, repeat period = 33 ms
[root@htpc ~]# ir-keytable -p LIRC
Protocols changed to LIRC
[root@htpc ~]# ir-keytable
Found /sys/class/rc/rc0/ (/dev/input/event3) with:
Driver mceusb, table rc-rc6-mce
Supported protocols: NEC RC-5 RC-6 JVC SONY LIRC
Enabled protocols: LIRC
Repeat delay = 500 ms, repeat period = 33 ms
I noticed it doesn't stay after a restart.  so I added that to rc.local
I realize now that I may have been close.
https://bbs.archlinux.org/viewtopic.php?id=116515
https://wiki.archlinux.org/index.php/LI … ed_working
With this module, the kernel will treat your remote as a keyboard by default, which causes lircd to fail to recognize remote input. An easy way to verify this is to run irw and see if it recognizes remote input.
but I didn't have output so I moved on.

Similar Messages

  • No output from Lirc at all since the kernel update

    I put this in a separate thread because I seem to have a different problem to the 'double press' issue and I'm pretty sure my remote isn't covered by mceusb. I've got a remote that until recently worked perfectly with the lirc_atiusb driver. However I get no output with irw or in boxee. I still get this in my dmesg output:
    lirc_atiusb: USB remote driver for LIRC $Revision: 1.88 $
    lirc_atiusb: Paul Miller <[email protected]>
    lirc_atiusb 3-1:1.0: lirc_dev: driver lirc_atiusb registered at minor = 0
    lirc_atiusb[2]: X10 WTI RF receiver on usb3:2
    usbcore: registered new interface driver lirc_atiusb
    Here is lircd.conf:
    # Please make this file available to others
    # by sending it to <[email protected]>
    # this config file was automatically generated
    # using lirc-0.8.2(default) on Sun Aug 12 02:13:30 2007
    # contributed by Ben Adler @ gmx dot net
    # brand: Medion / X10 (part of http://www.medion.de/md8824/)
    # remote control: RF Vista Remote Control (OR24V)
    # P/N: 2003 5335
    # devices being controlled by this remote: USB RF remote receiver (CM20E), P/N 2003 1776
    begin remote
    name Medion_X10
    bits 16
    eps 30
    aeps 100
    one 0 0
    zero 0 0
    pre_data_bits 8
    pre_data 0x14
    post_data_bits 16
    post_data 0x0
    gap 227978
    toggle_bit_mask 0x80800000
    begin codes
    red 0x87B2
    yellow 0x0934
    blue 0x8AB5
    green 0x0833
    power 0xD702
    text 0xEB16
    tvrecord 0x6D98
    disc 0xD904
    table 0x86B1
    tvplay 0xF11C
    back 0x75A0
    info 0x042F
    volume_up 0x5E89
    volume_down 0xDD08
    mute 0x5580
    channel_up 0xE00B
    channel_down 0x618C
    cursor_up 0xEF1A
    cursor_down 0x77A2
    cursor_left 0xF21D
    cursor_right 0x749F
    ok 0xF31E
    start 0x709B
    track_previous 0xF621
    track_next 0x78A3
    record 0xFC27
    pause 0x7EA9
    stop 0xFD28
    seek_backward 0x79A4
    play 0xFA25
    seek_forward 0x7BA6
    1 0xE20D
    2 0x638E
    3 0xE40F
    4 0x6590
    5 0xE611
    6 0x6792
    7 0xE813
    8 0x6994
    9 0xEA15
    0 0x6C97
    asterisk 0x0C37
    hash 0x8DB8
    clear 0x0530
    enter 0x8BB6
    end codes
    end remote
    And here is my current lsmod | grep lirc, although I've tried a bunch of different setups with and without the lirc package:
    lirc_atiusb 12179 0
    ir_lirc_codec 3135 0
    lirc_dev 7140 2 lirc_atiusb,ir_lirc_codec
    ir_core 12433 11 ir_lirc_codec,ir_sony_decoder,rc_hauppauge_new,ir_jvc_decoder,saa7134,budget_ci,ir_rc6_decoder,ir_rc5_decoder,ir_common,ir_nec_decoder
    usbcore 115802 5 lirc_atiusb,usbhid,ohci_hcd,ehci_hcd
    Thanks in advance, and sorry for the second thread.

    Perry3D wrote:
    Hi,
    i have the same problem with my X10 Remote.
    I wrote the lirc developers: http://old.nabble.com/lirc_atiusb-and-2 … 53763.html
    They recommend to use the ati_remote module. But for my remote control this modules doesn't work as i want.
    The current lirc_atiusb module is just a pre version. So i think this is an upstream bug.
    The current solution for me: i stay with 2.6.35 as long the bug is fixed.
    I'd have to roll back my graphics drivers amongst other things, and the new kernel fixed an issue with my network card I'll try the ati_remote module when I get home.
    Last edited by rocktorrentz (2010-11-29 13:12:32)

  • Changing the seeded rdf report output from text to PDF

    Hi All,
    I am trying to change the seeded report "Print Requisition Report" output from text to PDF. I changed the output format in the concurrent program definition from text to pdf. The report is now getting displayed in pdf format, but the alignment of the fields are changed. The output is not printing as it was printing while in the text output format. The output looks very sloppy, with uneven fonts and too much of text wrapping.
    I tried some formatting and fields are somehow getting displayed but doesnt look in proper format. I am not able to change the font style in the report builder 6i, even if i change it is printing in the same font style with uneven font size. I think reducing the font size might help, but i am unable to change.We are on 11.5.10.2. Please provide your valuable suggestions on how to go about.
    Thanks
    Sarvesh

    Hi Hussein,
    Thanks for the information. After the adjustments in the layout and the font change the report is now getting displayed without any clipping when clicked on view output. But when the same report is printed some characters on the left and and right side is getting clipped. Please help on how to solve this issue.
    Thanks,
    Sarvesh

  • Is any one else have issues with interactive PDF output from InDesign CC (2014)

    I am currently trying to produce a document with a level of interactivity I have achieved many times before.
    The interactivity is just a web style menu, show/hide the menu shows button set one, clicking on those shows a second set of buttons, and clicking in one of those goes to destination page and hides all menu buttons once more.
    When output from ID CC 2014 the result is loads of missing buttons and no working menu.
    Its not a corrupt ID file. I tried a brand new empty file, recreated basic structure with simple one state buttons and achieved similarly useless results.
    If I back save using IDML and open in CS5, export from there, it works beautifully, so problem is not as many have been recently, to do with Acrobat browsers.
    If I back save and open in InDesign CC (not 2014), export from there, it doesn't work, so problem is shared there!
    Anybody any suggestions? Experienced similar and found a cure?
    SOLVED BY A COLLEAGUE:
    You can (no longer) use full stops/decimal points in button naming. Menu was hierarchically labelled as 1, (1.1, 1.2), (1.1.1, 1.1.2) etc.
    Renamed 1_1, 1_1_2 etc and all functionality has returned. Why you could and now you can't, who knows!
    Hope this helps you if you stumble across here with the same issue.

    Thank you for reporting this.
    I would consider this a bug in InDesign CC v9.x and v10.x and would report it:
    Adobe - Feature Request/Bug Report Form
    (Cannot test it right now.)
    Uwe

  • Multiple Input and Output from a 6534

    Hello
    I am after some advice regarding my PCI 6543 digital I/O card and the best way to achieve my desired results. I am programming in Visual C++ with Ni-DAQ 7.
    I want to generate a pattern output from one of the ports, Port A, following a software command. This pattern consists of a 10uS pulse on DIOA0, that repeats 200 times with a period of 100uS. I want this DIOA0 output line to initiate an input on ports C and D, possibly through the REQ pin. Consequently the input should acquire 200 times for each call to the pattern output.
    I want this to repeat, so the pattern output goes again (as in a FOR loop), and the input occurs again for an as yet undetermined number of times.
    I have managed to get something worki
    ng for 1 iteration, and I can generate multiple pattern outputs, but the inputs only seem to acquire for the 1st iteration. However, if I step through the code in debug mode I can get the input to work correctly.
    Any ideas would be gratefully appreciated.
    I am still trying to get some earlier problems with this application solved.
    Kind Regards
    Jamie

    Hi Jamie,
    There are a couple different ways you can loop from a buffer. You can either use the onboard memory of the 6534 and loop from there or you can specify as a software configuration that the board loop through the PC memory buffer.
    For the onboard looping you need to specify the following:
    iStatus = Set_DAQ_Device_Info (1, ND_PATTERN_GENERATION_LOOP_ENABLE, ND_ON);
    For software, PC memory looping, the following function specifies this:
    iStatus = DIG_DB_Config (iDevice, iGroup, 1, 0, 1);
    I attached a couple programs that might be of use. Check this post:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008BA10000&USEARCHCONTEXT_CATEGORY_0=_31_%24_12_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_31_%24_1
    2_&UCATEGORY_S=0
    Hope that helps. Have a good day.
    Ron

  • Output from tables which I mention in select options of the screen as input

    Dear All,
    I want to fetch the data in the form of output from tables which I will mention in select options of the screen as input.
    In selection screen option if I write any table name then how can i select this table in select query of ABAP program ?.
    I may select any tables in select options of screen. But In select query I should get that table name automatically.. How ?
    e.g. If i put table name as an input i.e.  MARA  in select option .
    In program how to write select query to get records from that table ?
    SELECT MTART MATKL from MARA
    Every time I should not go to select query of program  & replace the tablename.
    How to solve this problem ?

    Hi,
    PARAMETERS p_table(30)." type string.
    "This is a Tested code Just Execute and Check
    START-OF-SELECTION.
      DATA: lt_tmp TYPE REF TO data.
      DATA : line TYPE REF TO data.
      FIELD-SYMBOLS: <lt_tmp> TYPE STANDARD TABLE, <wa>, <dyn_field>.
      CREATE DATA lt_tmp TYPE STANDARD TABLE OF (p_table).
      ASSIGN lt_tmp->* TO <lt_tmp> .
      CREATE DATA line LIKE LINE OF <lt_tmp>.
      ASSIGN line->* TO <wa>.
      SELECT * FROM (p_table) INTO TABLE <lt_tmp>.
      IF sy-subrc = 0.
        LOOP AT <lt_tmp> ASSIGNING <wa>.
          DO.
            ASSIGN COMPONENT  sy-index
               OF STRUCTURE <wa> TO <dyn_field>.
            IF sy-subrc NE 0.
              EXIT.
            ENDIF.
            IF sy-index = 1.
              WRITE:/ <dyn_field>.
            ELSE.
              WRITE: <dyn_field>.
            ENDIF.
          ENDDO.
        ENDLOOP.
      ENDIF.
    Cheerz
    Ram

  • Output from JDBC Adapter mapped to multiple message types

    Hi!
    I face to a problem with the message mapping.. I do select with the JDBC adapter. This statement selects one field of clob type and it already contains a message - XML document. Depending of the type of this message will be done the message mapping and also the target message type depends on this XML document type. But when u define message mapping, there must be always a target message type... But in the design time, I don't know the exact type! It is dynamic...
    And not just with the message, the same situation is also with the target interface...
    Any ideas how to solve this?
    Thanx, Peter
    Message was edited by: Peter Jarsunek

    Hi,
    I saw the weblog, but I think more important is the 'XI in action' mentioned in this one..
    /people/ravikumar.allampallam/blog/2005/06/22/sap-xi-in-action
    What I just can not understand from that blog is the step 2/4:
    Receive XML file of any format and route to interface specific BPM..
    How is it possible? On the output from the 1st BPM must be exact interface defined... How can different messages go out and than into the 2nd BPM?
    Can you please write me, how the individual steps could follow after each other to achieve this?
    Message was edited by: Peter Jarsunek

  • Multi page recordset output from ASP page on Spry Tabbed Panel Widget

    I am using a simple Spry Tabbed panel set on my asp page to show the output from different ASP pages, inside the tabbed panels. The tabbed panels on the page under consideration (destination page) display the output from different asp pages (source pages). The source asp pages generate multi page outputs which are paginated on the source page itself and pagination links are displayed on the source page itself.
    However, we dont want to display the source page outside of the tabbed panel, but instead the output content from the source asp pages should show inside the tabbeed panels only. The first page generated by the source asp page displays correctly inside the tabbed panel. However, when the user clicks on the links for the next page generated by the source asp page, but which is being displayed inside the destination page tabbed panel, they dont display the next page inside the tabbed panel. Instead the source asp page displays the output outside the tabbed panel destination  page.
    Please advise on how to ensure that the user can page through the recordset generated by the source asp page by clicking on the pagination links at the bottom of the records, while ensuring that the output displays within the tabbed panels on the destination asp page.
    I am enclosing the source code being used to generate the spry tabbed panel widget and also updating it with the output from the source asp page. In this case, the code given below is from the main page containing the widget and the source asp page is "sample.asp", which generates multi page output.
    Please note that I am not too keen on using xml data sets output from the source asp page, but would be more comfortable with directly using the asp pages to fill the tabbed panel content.
    Please help
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <script language="javascript" src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/xpath.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
          <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('two','sample.asp?page=' <%=i%>); Spry.Data.initRegions();" >Tab 1</li>
           <li class="TabbedPanelsTab" tabindex="0">Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=two class="TabbedPanelsContent">Content 1</div>
        <div class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>

    I fully agree that the problem does not lie with tthe tabbed panels.
    The solution would probably be first required to be tried using ajax on any div tab.
    Then the same code would have to be used on Sprytabbed panel. Hence, the following may be advised:
    1. Sample code for server side pagination and displaying inside any div tag and refreshing it using ajax. the update link would also lie inside the div tag which would show the next/ previous page without reloading the page.
    2. Then adapting the refresh technique using ajax in the Spry Tabbed panel using the inbuilt updatecontent method of the Spry Tabbed panels.
    In order to achieve the above, I am getting the recordset output in the tab content as expected. The recordset is also getting the pagination links from server side asp as required.
    However, it is also generating the following error.
    Webpage error details
    Message: Unterminated string constant
    Line: 9
    Char: 56
    Code: 0
    URI: http://localhost/test/test5.asp
    The sourcecode is as given below. If you can help with the error indicated above, my problem would probably get solved.
    <html><head>
    <title>Untitled Document</title>
    <link href="/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    <script src="/SpryAssets/SpryURLUtils.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <script src="/SpryAssets/SpryData.js" type="text/javascript"></script>
    <script src="/SpryAssets/xPath.js" type="text/javascript"></script>
    </head>
    <body>
    <div id="TabbedPanels1" class="TabbedPanels">
      <ul class="TabbedPanelsTabGroup">
        <li class="TabbedPanelsTab" tabindex="0" onclick="Spry.Utils.updateContent('one','untitled-5.asp');">Tab 1</li>
        <li class="TabbedPanelsTab" tabindex="0" >Tab 2</li>
      </ul>
      <div class="TabbedPanelsContentGroup">
        <div id=one class="TabbedPanelsContent">Content 1</div>
        <div id ="two" class="TabbedPanelsContent">Content 2</div>
      </div>
    </div>
    <script type="text/javascript">
    var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
    </script>
    </body>
    </html>

  • Xml output from smartforms

    Hi,
    I need to get xml (xsf?) output from I-SU Print Workbench/Smartforms document. Has anybody done this? I would apriciate some hints of how to solve this?
    regards,
    erki

    Hello Erki,
                      This is how i did it.
    data :  s_archive_index     TYPE toa_dara,
           s_archive_index_tab TYPE tsfdara,
           s_archive_params    TYPE arc_params,
           s_control_param     TYPE ssfctrlop,
           s_mail_appl_obj     TYPE swotobjid,
           s_mail_recipient    TYPE swotobjid,
           s_output_options    TYPE ssfcompop,
           s_mail_sender       TYPE swotobjid,
           s_doc_output_info   TYPE ssfcrespd,
           s_job_output_info   TYPE ssfcrescl,
           l_line(1024)        TYPE C,
           l_table             like table of l_line,
           xsf_line            like line of s_job_output_info-xsfdata.
    s_output_options-xsfcmode = 'X'.
         s_output_options-xsf      = 'X'.
         s_output_options-xsfoutmode  = 'A'.
         s_output_options-XSFFORMAT  = 'X'.
        CALL FUNCTION v_fm_name
         EXPORTING
           ARCHIVE_INDEX              = s_archive_index
           ARCHIVE_INDEX_TAB          = s_archive_index_tab
           ARCHIVE_PARAMETERS         = s_archive_params
           CONTROL_PARAMETERS         = s_control_param
           MAIL_APPL_OBJ              = s_mail_appl_obj
           MAIL_RECIPIENT             = s_mail_recipient
           MAIL_SENDER                = s_mail_sender
           OUTPUT_OPTIONS             = s_output_options
           USER_SETTINGS              = 'X'
           LV_SALES                   = p_sales
           LV_PADDR                   = v_address_num
           LV_ADRNR                   = v_adrnr
           LV_EQUNR                   = v_equnr
           LV_SERNR                   = v_sernr
         IMPORTING
           DOCUMENT_OUTPUT_INFO       =  s_doc_output_info
           JOB_OUTPUT_INFO            =  s_job_output_info
         EXCEPTIONS
           FORMATTING_ERROR           = 1
           INTERNAL_ERROR             = 2
           SEND_ERROR                 = 3
           USER_CANCELED              = 4
           OTHERS                     = 5              .
        IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    loop at s_job_output_info-xsfdata into xsf_line.
      l_line = xsf_line.
      append l_line to l_table.
    endloop.
    CALL FUNCTION 'GUI_DOWNLOAD'
       EXPORTING
         FILENAME                        = 'C:\temp\test.xml'
       TABLES
         DATA_TAB                        = l_table.

  • What is the best way to run two programs simulataneously using the output from one to run the other?

    I just kind of wanted to get an opinion from some people on here. I have two main VIs. The first is a DAQ system that reads 99 different sensors and feeds that data into an array. The second is a real-time processing system that is designed to take the array and do numerous calculations. Both VIs output data to the front panel that I want to see, so I don't want to just use one as a SubVI.
    Is there a simple way to run both VIs, using the output from the DAQ system to feed the processor so that you can easily see the front panels of both VIs? I had considered just copying the real-time processor code into the DAQ VI, but I'm worried the resultant VI will be very large and unsightly.
    On a side note, am I over thinking this? Excuse me if this is a rather dumb question, it's been a long week...aaaand it's Wednesday.
    Solved!
    Go to Solution.

    There are a number of ways that you can go about this, but having both front panels open isn't a problem (assuming there is screen space!). Both could be sub-vi's of another "calling" vi, with their front panels set to open when called. The data from the DAQ side can be sent to the other through a number of ways, "producer-consumer" (many threads about this topic, examples in the LabVIEW examples, etc.) is one of the more robust techniques. If created correctly it allows one to run at a different rate than the other, although if the producer is "producing" much faster than the consumer can "consume" it will end up with problems.
    I guess I type too slowly
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Calling Captivate HTML5 Output from an application

    I want to call Adobe HTML5 and Flash Captivate published output from an application.  There are several issues I'm currently experiencing duing this:
    1) Iframe. 
    Using an Iframe works for the most part, except that we are hosting many Captivate presentations and there's a bloated number of files when showing the presentation this way, since each one gets the full set of support files needed. 
    There's also a bug when hiding and reshowing the Captivate presentation (using jQuery.hide and jQuery.show respectively on the parent form): when reshowing the video player controls disappear. 
    To get around this I progammatically set the height of the iframe to zero, and then set it back to desired screen height when showing the presentation.
    2) view in app.
    I'm guessing this could work but there's such a mishmash of published files and resources, in our case over 200 in all.
    There are several issues we run into in general:
    1) jQuery in the published captivate is an old version of jQuery  2.0.0 is current.
    2. jQuery ui in  the published captivate is an old version of jQuery.  1.10.2 is current.
    3. [presentation_name].htm files do not capture javaScript events or open urls currently in the proesentation, only the index.html file does.
    -David

    The following Thread helped me to solve this issue...
    Switching applications without logging in again
    Thanks

  • Yesterday suddenly the sound output from my Headphone is not working

    Hi, I've Mac Book Pro 15" with Retina display. Yesterday suddenly the sound output from my Headphone is not working. When I tried to solve this, I've noticed in system preferences it's jumping from Internal speakers to Head phone and vice versa. Can anyone help me on this issue please? I am using the original Apple Headset only.
    Thanks
    Babu
    <Re-Titled By Host>

    Tell us:
    OS X version ?
    What may have changed prior to the onset of the issue of "... suddenly... not working..." and " ... preferences ... jumping from ..." ? Software added, upgraded, updated?
    what precidely do you mean by " ... preferences ... jumping from ..." ?
    ÇÇÇ
    EDITadded
    I see that your Question has languished for some period of time without response. You have posted your issue in Using Apple Support Communities whose topic is 'How to use this forum software's interface, features and/or how to find what you wish'. It is a relatively low traffic and inappropriate forum for your problem. I will ask our Hosts to move it to " MacBook Pro " where it may get a more rapid response from your fellow users.
    endEDIT

  • Get complete output from java.lang.Process

    How do I get the complete output from java.lang.Process?
    By the time I've started reading from Process.getInputStream() the process has already terminated...

    I solved the problem:
    private int exec(String pArguments[], OutputStream pOut, OutputStream pErr) throws IOException {
         class ProcessOutputPrinter implements Runnable {
              private InputStream ivIn;
              private OutputStream ivOut;
              public ProcessOutputPrinter(InputStream pIn, OutputStream pOut) {
                   ivIn = pIn;
                   ivOut = pOut;
              public void run() {
                   try {
                        for(int tByte; (tByte = ivIn.read()) != -1; ) {
                             ivOut.write(tByte);
                        ivOut.flush();
                   catch(IOException e) {
                        e.printStackTrace();
         // Start process
         Process tProcess = Runtime.getRuntime().exec(pArguments);
         // Create out printer
         Thread tOutPrinter = new Thread(new ProcessOutputPrinter(tProcess.getInputStream(), pOut), "NamingAdmin out-printer");
         tOutPrinter.start();
         // Create err printer
         Thread tErrPrinter = new Thread(new ProcessOutputPrinter(tProcess.getErrorStream(), pErr), "NamingAdmin err-printer");
         tErrPrinter.start();
         // Wait for process and printers to finish
         try {
              tProcess.waitFor();
              tOutPrinter.join();
              tErrPrinter.join();
         catch(InterruptedException e) {
         // return process exit value
         return tProcess.exitValue();

  • I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor

    I'm working on DC Motor control using DAQ. There is sufficient voltage output from DAQ but not current. What should i do so as to drive the motor. Could you suggest me appropriate driver IC using which this problem can be solved.
    Saravanan.T

    You really should use a DC motor controller to control a DC motor, look at the 754410 IC for a good example. You should be able to interface these to most DAQ devices.
    Alan

  • Reading output from a Solaris(UNIX) shell script

    Hello All, I have written some fairly large shell scripts. I have also written a simple java GUI that contains a button that will run the script. The script runs. The problem is that I cannot see the output from the script in the x-term that I used to run my java class file.
    I am developing in a windows environment, I have a silly little system.out that prints "Button Pressed", which works in windows just fine but on my ultra 10 running Solaris 8 the term just sits there no output to the srceen.
    Has anyone out there solved this problem or know of a way that I can? Thanks

    I don't know how to print out to the x-term. But you can add a JTextArea to the GUI and get the output there.
    String output = null;
    StringBuffer returnString = new StringBuffer();
    String command = /path/to/shell/script/script.sh
    process = Runtime.getRuntime().exec(command);
    InputStreamReader isr = new InputStreamReader (process.getInputStream());
    input = new BufferedReader(isr);
    while((output = input.readLine()) != null){
        returnString.append(output);
    }Wouldn't a System.out.println(returnString.toString()) print to the x-term console?
    hope this helps.

Maybe you are looking for

  • Parallel Processing - In conjuction with TWS scheduler.

    We have a .Bat file that uses upshell.exe to execute a custom script we've created. This custom script looks for files in the inbox and moves them to the relevant OpenBatches/OpenBatchesML folder. Once files have been moved it then runs a Parallel pr

  • Integration directory for rec soap

    Hello , A scenarion : Poxy to SOAP Proxy sends req and SOAP response back to it. So what we have to do in ID part

  • Search fild for Char

    QM Dimonds, What is the better solution differenciate  characteristics i have two set of  characteristics like Own & customer like if i have moisture  characteristic i will create own and  customer based on Characteristics search field  i maintained

  • Newbie question!  open URL

    How do I open a pdf url from my java servlet application? This is what I got but it aint working any other methods? URL yahoo = new URL("http://www.sourceforge.com"); BufferedReader in = new BufferedReader( new InputStreamReader( yahoo.openStream()))

  • Macbook Pro Retina 15' (early 2013) / Creaking noise and hinge loose

    Hi, After a couple of months of using my Macbook Pro Retina 15' (early 2013) started to creak when closing and opening. At first it wasn't loud but now, when im not using it for couple of hours and then try to open it creaks really bad. Also i've not