How do I send commands to my oscilloscope in NIMAX?

Hello all,
I am new to LabView and have purchased a digital oscilloscope & a digital signal generator. 
I have the Remote command list for each of them. 
The oscilloscope is USB, and the signal generator only has an RS232 port. 
I am able to send commands to the oscilloscope through the EasyScope software that came with the scope, such as *CAL?, which successfully calibrates my scope.
However, I cannot get my scope to respond in NIMAX.   Nor am I able to get the Signal Generator to work in either NIMAX or EasyScope.  
Could someone tell me what I need to do to activate my USB channel in NIMAX, and also my RS232 channel?  
Solved!
Go to Solution.

These are cheaper devices from ATTEN.   They also go under the name Siglent.   I have an ADS1102CAL+ scope, and a ATF20D+PA signal generator.  
I am running 64bit Windows 8.    I am able to get both the scope & COM1 serial port to show up in NIMax and they look good in Device manager. 
The Serial cable is a USB to RS232 adapter, since my PC has no serial ports.
The test panel returns a string for the scope serial number using *IDN?, but none of the other commands work. 
Here are 3 screenshots.  3rd shot is 2 commands (*IDN? & *CAL? for the USB Scope.  )
I have not been able to get the USB drivers to work or install from their website.
Attachments:
NIMax shot 1.jpg ‏139 KB
NIMax shot 2.jpg ‏107 KB
NIMAX shot 3.jpg ‏97 KB

Similar Messages

  • How can I send commands to a stepper motor to move in steps?

    How can I controll a stepper motor by using labview.7?
    what do I need?

    This will depend on what hardware you are using to send the commands to the stepper motor. NI offers motion controllers and drives that come with all the functions you will need to operate the motors. Depending on the size and number of motors, you will have different hardware requirements. Take a look at the motion products available here: http://sine.ni.com/apps/we/nioc.vp?cid=1506〈=US
    If you have more questions, you can always contact NI at www.ni.com/contact to help spec out the system.
    If you are using third party products, you will have to call their dll from LabVIEW using a Call Library Node function. This gives you access to all the functions in a dll.
    Hope this helps.
    Regards-
    Julie S.
    Applications Engineer
    National Instruments

  • How can I send commands and recive rs232 with this Dll

    / programmer commands
    INTERFACE char* (WINAPI DYNAMIC KeyCmd)( char const* cmd, char* rsp, int maxrsp);
    INTERFACE void (WINAPI DYNAMIC DoCmd)(char const*cmd, char *rsp, int maxrsp);
    Note: I see "char*", is this a pointer or a char String. I aspect to get Volt levels to plot a graph.

    louX2,
    char* is the same as LabVIEW's C String Pointer (CStr) data type. I would not worry about the const for the first character strings as this just means they will not be changed in the function.
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • How can I send multiple string commands into a VISA write?

    Hi Fellow LabVIEW users
    I am very new to LabVIEW (2.5 months) so please forgive me if my lingo is not up to par.
    How can I send multiple string commands to a VISA write. For example each string command looks like this
    1) 3A00 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0033 (Scenario 1)
    2) 3A01 0000 0000 FFFF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0034 (Scenario 2)
    3) 3A01 0000 0000 33FF FFFF FFFF 0000 0000 FF00 0000 0000 0000 0000 0067 (Scenario 3).
    and so on and so forth. And there are a number of scenarios.
    Each String scenario will give a different string output which will be interpreted differently in the front panel.
    Right now I have to manually change the string commands on the front panel to give me the desired output. How can I do this without manually changing the commands i.e. hard coding each scenario into the block diagram?
    Thanks, any feedback will help.
    mhaque

    Please stick to your original post.

  • How to send command to device via HTTP

    Hy everyone,
    i have installed olite on a number of wince device.
    If i try to send command to the device when connected with the desktop computer on wich the mobile server is installed everything goes well.
    My devices are connected by wifi to the lan of my company and i would like to send command via HTTP.
    I tried to change the settings on the mobile server setting the Network Protocol to HTTP and setting the ip of the device but it does not work.
    Does anyone know how to solve the problem?
    David.

    Hi Ravi,
    yes the command is queued but anything happens.
    I tried to wait for long time but the command never succeed to execute.
    If i try to send again the command from the Command History windows the command fails.
    David.

  • I get the following error and the old thread on this did not solve my problem. Does anyone have an idea how to fix it. The error is "an error occured sending command to application"

    When I open a link from Microsoft outlook I get the following error
    "An error occured sending command to application" The old thread on this does not help and it is closed.
    == This happened ==
    Every time Firefox opened

    Hello Anonymous.
    You will need to contact Microsoft for support on Outlook.

  • Mail: How do I send multiple contacts an email

    Used to be that you could click multiple contacts while holding down the Command key so they were all selected and appeared in the "TO" field of an email or Message. It seems that with Yosemite I have to select each recipient separately, then go back to the contacts list. I figure I'm doing something wrong (probably real obvious to all but me). I also want to know how I can send to a "GROUP" of recipients so that (a) all the cards in that group receive the email, and (b) none of the email addresses or recipients are visible (e.g., "Some Friends", or "Family" is all they see in the "To" field.  Thanks lots.

    Create a new group in your Contacts with those recipients.  In Mail type the name of the group into the BCC field and hit the Tab key.
    By using the BBC field the recipients will only see their name at the top and in the To field will be "Undisclosed recipients"  in the To field when they receive it.

  • Sending command apdu with a byte array as CDATA

    Hi,
    I am learning java card as part of my final year project. So far I think I can do most of the basic things but I have got stuck at one particular point.
    I know that there are different constructors for creating a command apdu object and a number of these constructors take an array of bytes as CDATA values.
    My problem is, how to access this array of data in the card side because apdu.getBuffer() returns an array of integers (bytes)? And what is actually on apdu.getBuffer()[ISO7816.OFFSET_CDATA)] location when you send command apdu object using such a constuctor?
    regards
    Edited by: 992194 on 06-Mar-2013 06:12

    992194 wrote:
    (..) I should have mentioned earlier that my card use jc 2.2.1 version, and i have read from different places that this version does not support ExtendedLength facility.Indeed.
    Also I understand the semantics of apdu.getBuffer()[ISO7816.OFFSET_CDATA] that is the first byte of the command data. My question is, this command data was initially supplied as an array of bytes. Something like this:
    +new CommandAPDU(CLA, INS, P1, P2, DATA_ARRAY, Le)+
    So when you call:
    byte [] buffer = apdu.getBuffer()
    So does this mean that the byte values inside DATA_ARRAY automatically occupy locations +buffer[ISO7816.OFFSET_CDATA]+ onwards inside the buffer?Yes. The length would be<tt> (short)(buffer[ISO7816.OFFSET_LC]&0xFF) </tt>. Notice the<tt> &0xFF </tt> is a must above 127 bytes.
    Or their is a mechanism of extracting the DATA_ARRAY array itself?No.
    In fact, in the interest of performance and portability in environments with little memory, the usual coding style is to pass<tt> buffer </tt>, an offset within that, and the length; rather than making an object, which would require a copy. Welcome to the real world of Java Card.

  • How can i send an error message at EXIT_SAPMM06E_013 ?

    Hi
    I'm making some validations to Vendor and Partner Functions (table control in 'Partners' Strip) in Creting/Changing Purchase Orders (ME21N/ME22N). 
    I know the suitable user exit is EXIT_SAPMM06E_012 for making validation before saving, but this exit does not has (receive) the table with Partner Functions so i could validate them.
    Then I use the Exit _013, wich executes when saving the PO, because this exit has the captured Partners table (XEKPA).
    But, when i make the validations and try to send a error mesage,  the system shows other message type info (window) like 'The requested object is locked by another transaction' and then another like 'System error (error in method PO_POST)'.
    I think this it's because the exit _013 is better suitable to make customer updates and not validations, that it's because just passing by MESSAGE Ennn(cc) command makes the methods catch my error and send other errors and close the transaction.
    Does somebody can help me ??
    How can i send error messages in exit _013 ??
    Or is this incorrect ??
    Or in wich User Exit can i validate the Partner Functions ??
    I really will aprettiate if somebody can help me, because i'm delayed with my development !!
    Regards

    Hi Frank,
    The eror message you are getting seems to be coming from somewgere else and may be due to the same PO being cahnged in another transaction or have you put some code in BADI ME_PROCESS_PO ( Method POST) .
    You can try by commenting out the code in EXIT 13 .
    If this does not work then use EXIT 12 only and below is the code you can use to access XEKPA in exit 12.
    DATA IT_EKPA LIKE EKPA OCCURS 0 WITH HEADER LINE.
    DATA NAME(50) VALUE '(SAPLMEPO)XEKPA[]'.
    DATA NAME1(50) VALUE '(SAPMM06E)XEKPA[]'.
    FIELD-SYMBOLS <F1> TYPE ANY .
    IF SY-TCODE+4(1) = 'N'.
    ASSIGN (NAME) TO <F1>.
    ELSE.
    ASSIGN (NAME1) TO <F1>.
    ENDIF.
    IT_EKPA[] = <F1>.
    ( Now you have the data in IT_EKPA table which you can use to validate )
    Cheers

  • Sending Command Line Arguments to Jar Executable

    Hi All
    I wish to send Command Line Arguments to Jar Executable.
    i.e. before I Jar'd my program, I would do the following
    public class CmdLnArgmntExp {
    public static void main(String[] args) {
    System.out.println("d");
    for (int i = 0; i < args.length; i++)
    System.out.println(args);
    Running the program in Console.
    Java CmdLnArgmntExp arg1 arg2 arg3 arg4Output:
    arg1
    arg2
    arg3
    arg4
    How would I do this to a Jar executable, hope that made sense
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    java -jar executable-jar-file-containing-class-CmdLnArgmntExp.jar arg1 arg2 arg3 arg4

  • How do I send photos as jpg icons not embedded in the email?

    Hi was wondering how I would send a photo as a jpg icon and have it show up as the same icon, not the actual photo embedded in the email?

    You can Command (right) - click  on the photo in the email and select View as Icon in the contextual menu.
    Set the format as plain text as select Always Send Windows-Friendly Attachments in the Edit ➙ Attachments menu.
    It will display as an icon in the outgoing email.  However, no matter you do it will depend on how the receiving email client is configured as to how the photo will be presented at that end.
    OT

  • How do I send my pages attachment so that it will open for those with Microsoft word?

    How do I send my pages attachment so that it will open for those with Microsoft Word?

    Hi Victoria,
    Pages does not run on Windows.
    Word cannot open a Pages file.
    If you want someone without pages to be able to open your attachment, you will have to send it in a format openable on the recipient's computer.
    If the recipient needs only to read the document, the most universal format is pdf. To send a pdf copy of your file, press command-P to open the Print dialogue, then click the PDF button and choose email PDF. This will open a new message in your default email client and attach the pdf file to that message.
    If the recipient needs to be able to edit/change your document, and has MS Word, then either Save a copy as a Word file or go File > Export and choose Word as the file format for the export.
    Be aware that MS Word does not support all features of Pages (and vice versa), and that formatting of the document may be affected by font substitution if you use fonts that are not available on the recipient's machine.
    Regards,
    Barry

  • How can I send purchase order through SAP mail ?

    How can I send purchase order through SAP mail ? Can any one explain whts the NACE settings?

    just  do it as  <b>Anji reddy</b> said to you   ...or else  ...  in the purchase  order trascation  ...print it  ... so that  it will generate the spool request  for that  purchase  order  ....
    so the   the belwo program is for sending <b>the Spool   Request  data   as  Email  to  any Email id  ...</b>
    The code below demonstrates how to retrieve a spool request and email it as a PDF document. Please note for the below program to process a spool request the program must be executed in background otherwise no spool request will be created. Once you have had a look at this there is an modified version of the program which works in both background and foreground. Also see transaction SCOT for SAPConnect administration.
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    * Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    * Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    * Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    *** Alternative way could be to submit another program and store spool
    *** id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
    *        to sap-spool
    *        spool parameters   %_print
    *        archive parameters %_print
    *        without spool dynpro
    *        and return.
    * Get spool id from program called above
    *  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
    *       FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
    *       FORM get_job_details                                          *
    FORM get_job_details.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
    *       FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
      CHECK sy-subrc = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    *       FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    *  perform send_email using p_email2.
    ENDFORM.
    *       FORM send_email                                               *
    *  -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    * Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    *  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    * If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    * Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *       FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    Girish

  • How to call system command in vc++?

    i wish to call the netsend command in the program but i dont know how to do it? can you please show me the actually of calling net send command in the way of mfc?

    Take a look at the Win32 CreateProcess, ShellExecute, and ShellExecuteEx functions.
    - Elton

  • How Do You Send the END KEY via Serial?

    Hello All,
    I'm trying to do something that would seem simple, but is not because almost no information about the END KEY on keyboards is posted online.  Essentially, I'm trying to activate a device that comes out of sleep when someone presses the END KEY through hyperterminal or some ascii based command window.  I'm trying to send that END KEY automatically using Labview, but I'm stuck. So here are my questions.
    Does the END KEY have a specific ASCII number?  I'm getting 2 different answers in my search for this one.
    If it doesn't, how do I send that command over the serial communications line?
    If it does, then what's the best way to convert it to something that labview understands as the END KEY, and not some combo of characters?
    Thanks a bunch.
    Matt

    You would have to find out the character that is mapped to the END key and simply send that out the serial port. You may want to try sending 0x4f". At least this is what I found for the mapping of the END key.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for