How to Write\Read NI-9516 module in FPGA Project?

Hi,
I use NI-9149 RIO and NI-9516 module.
I want to write to the 9516 throw the FPGA. 
My project look like this:
How can I do It?
Thanks for advance,
Aviad
P.S: I read this paper, but don't know how to work throw it...

Hi aviadCielo,
I would use the cRIO in hybrid mode. We have a helpful KB on using 951x modules in hybrid mode (http://digital.ni.com/public.nsf/allkb/12287236ED86B789862576630059572C). From there you can create a virtual axis and program in SoftMotion. This will save you from having to do FPGA programming with the 9516.
Let me know if this works or if you still have the issue.
Michael Bilyk
Applications Engineer
National Instruments
 

Similar Messages

  • How to write read dataset statement in unicode

    Hi All,
    I am writing the program using open dataset concept .
    i am using follwing code.
        PERFORM FILE_OPEN_INPUT USING P_P_IFIL.
        READ DATASET P_P_IFIL INTO V_WA.
        IF SY-SUBRC <> 0.
          V_ABORT = C_X.
          WRITE: / TEXT-108.
          PERFORM CLOSE_FILE USING P_P_IFIL.
        ELSE.
          V_HEADER_CT = V_HEADER_CT + 1.
        ENDIF.
    Read dataset will work for normal code.
    when it comes to unicode it is going to dump.
    Please can u tell the solution how to write read dataset in unicode.
    Very urget.
    Regards
    Venu

    Hi Venu,
    This example deals with the opening and closing of files.
    Before Unicode conversion
    data:
      begin of STRUC,
        F1 type c,
        F2 type p,
      end of STRUC,
      DSN(30) type c value 'TEMPFILE'.
    STRUC-F1 = 'X'.
    STRUC-F2 = 42.
    Write data to file
    open dataset DSN in text mode. ß Unicode error
    transfer STRUC to DSN.
    close dataset DSN.
    Read data from file
    clear STRUC.
    open dataset DSN in text mode. ß Unicode error
    read dataset DSN into STRUC.
    close dataset DSN.
    write: / STRUC-F1, STRUC-F2.
    This example program cannot be executed in Unicode for two reasons. Firstly, in Unicode programs, the file format must be specified more precisely for OPEN DATASET and, secondly, only purely character-type structures can still be written to text files.
    Depending on whether the old file format still has to be read or whether it is possible to store the data in a new format, there are various possible conversion variants, two of which are introduced here.
    After Unicode conversion
    Case 1: New textual storage in UTF-8 format
    data:
      begin of STRUC2,
        F1 type c,
        F2(20) type c,
      end of STRUC2.
    Put data into text format
    move-corresponding STRUC to STRUC2.
    Write data to file
    open dataset DSN in text mode for output encoding utf-8.
    transfer STRUC2 to DSN.
    close dataset DSN.
    Read data from file
    clear STRUC.
    open dataset DSN in text mode for input encoding utf-8.
    read dataset DSN into STRUC2.
    close dataset DSN.
    move-corresponding STRUC2 to STRUC.
    write: / STRUC-F1, STRUC-F2.
    The textual storage in UTF-8 format ensures that the created files are platform-independent.
    After Unicode conversion
    Case 2: Old non-Unicode format must be retained
    Write data to file
    open dataset DSN in legacy text mode for output.
    transfer STRUC to DSN.
    close dataset DSN.
    read from file
    clear STRUC.
    open dataset DSN in legacy text mode for input.
    read dataset DSN into STRUC.
    close dataset DSN.
    write: / STRUC-F1, STRUC-F2.
    Using the LEGACY TEXT MODE ensures that the data is stored and read in the old non-Unicode format. In this mode, it is also possible to read or write non-character-type structures. However, be aware that data loss and conversion errors can occur in Unicode systems if there are characters in the structure that cannot be represented in the non-Unicode codepage.
    Reward pts if found usefull :)
    Regards
    Sathish

  • How to Write/Read to files from Forms 6.0

    I would like to write some data to a file from Developer 2000.
    I should also be able to change the Font, color and size of the data written to the file.
    Mail Id : [email protected]
    Need a reply at the earliest.
    Thanking you, in advance
    null

    Dear Vinayak prabhu,
    I cannot make use of the stored procedure (using the util_package) or the Text_io package (from forms). This is because, only normal operations (like put_line,get_line...)are possible using the above procedure calls.
    Since I would like to change the "size" and "font" of the text written to the file, i would be requiring a procedure (package) wherein the above properties can be set for each line or para or page ..etc.
    Can you suggest me a suitable solution ?
    Ramnath Balasubramanian
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by vinayak prabhu ([email protected]):
    Hi Ramnath
    In forms you can use text_io package to read or write to a ASCII file or else write a stored procedure and use util_file which also does the reading and writing to a ASCII file.This stored procedure can be called from a form.
    Vinny.
    <HR></BLOCKQUOTE>
    null

  • How to write the custom Function Module to trigger the Alert.

    Hi all,
    I have developed a custom alert category in Tx - alrtcatdef. Now i want to trigger it from my custom function module. what should i do or what is the procedure to trigger the alert from my custom function module.
    Arul Jothi

    hi arul,
    try this program.
    RSALERTTEST.
    check out this link...
    <a href="/people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts:///people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts
    regs,
    jaga

  • How do I detect a NI9862 module under FPGA

    Hello,
    I am trying to add NI9862 module under the FPGA target of NI9144 chassis. But I am unable to do so. Please see the attached image.
    I read some of the earlier posts on the forum and I understand that some of these CAN modules need to be added in Offline mode, which is what I am trying to do. However, the list of C series modules doesn't have NI9862.
    Help appreciated.
    Thanks,
    Rohan
    Attachments:
    2011sp1 ni9862 ni9144.png ‏343 KB

    Hello Rohan, 
    I see the CAN module 9862 listed here as being incompatible in scan mode with the 9144 chassis. Is this the documentation you were referring to?
    Andy C.
    Applications Engineering
    National Instruments 

  • How to write the exceptions in function module

    dear all,
         how to write the exceptions in function modules with example.
    thanq
    jyothi

    Hi,
    Raising Exceptions
    There are two ABAP statements for raising exceptions. They can only be used in function modules:
    RAISE except.
    und
    MESSAGE.....RAISING except.
    The effect of these statements depends on whether the calling program handles the exception or not. The calling program handles an exception If the name of the except exception or OTHERS is specified after the EXCEPTION option of the CALL FUNCTION statement.
    If the calling program does not handle the exception
    · The RAISEstatement terminates the program and switches to debugging mode.
    · The MESSAGE..... RAISING statement displays the specified message. Processing is continued in relation to the message type.
    If the calling program handles the exception, both statements return control to the program. No values are transferred. The MESSAGE..... RAISING statement does not display a message. Instead, it fills the system fields sy-msgid, sy-msgty, sy-msgno , and SY-MSGV1 to SY-MSGV4.
    Source Code of READ_SPFLI_INTO_TABLE
    The entire source code of READ_SPFLI_INTO_TABLE looks like this:
    FUNCTION read_spfli_into_table.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
    *" EXPORTING
    *" VALUE(ITAB) TYPE SPFLI_TAB
    *" EXCEPTIONS
    *" NOT_FOUND
    SELECT * FROM spfli INTO TABLE itab WHERE carrid = id.
    IF sy-subrc NE 0.
    MESSAGE e007(at) RAISING not_found.
    ENDIF.
    ENDFUNCTION.
    The function module reads all of the data from the database table SPFLI where the key field CARRID is equal to the import parameter ID and places the entries that it finds into the internal table spfli_tab. If it cannot find any entries, the exception NOT_FOUND is triggered with MESSAGE ... RAISING. Otherwise, the table is passed to the caller as an exporting parameter.
    Calling READ_SPFLI_INTO_TABLE
    The following program calls the function module READ_SPFLI_INTO_TABLE:
    REPORT demo_mod_tech_fb_read_spfli.
    PARAMETERS carrier TYPE s_carr_id.
    DATA: jtab TYPE spfli_tab,
    wa LIKE LINE OF jtab.
    CALL FUNCTION 'READ_SPFLI_INTO_TABLE'
    EXPORTING
    id = carrier
    IMPORTING
    itab = jtab
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CASE sy-subrc.
    WHEN 1.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno.
    WHEN 2.
    MESSAGE e702(at).
    ENDCASE.
    LOOP AT jtab INTO wa.
    WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDLOOP.
    The actual parameters carrier and jtab have the same data types as their corresponding interface parameters in the function module. The exception NOT_FOUND is handled in the program. It displays the same message that the function module would have displayed had it handled the error.
    Or
    just have to decide what exceptions u want and under what conditions.
    then declarethese exeptions under the exceptions tab.
    in the source code of ur function module.
    if
    like this u can code .
    now when u call the function module in tme mainprogram.
    if some error occurs and u have declared a exception for this then it will set sy-subrc = value u give inthe call of this fm.
    in the fm u can program these sy-subrc values and trigger the code for ur exception.
    Please reward if useful
    Regards,
    Ravi
    Edited by: Ravikanth Alapati on Mar 27, 2008 9:36 AM

  • HOW TO WRITE AND READ FROM A TEXT FILE???

    How can I read from a text file and then display the contents in a JTextArea??????
    Also how can I write the contents of a JTextArea to a text file.
    Extra Question::::::: Is it possible to write records to a text file. If you have not idea what I am talking about then ignore it.
    Manny thanks,
    your help is much appreciated though you don't know it!

    Do 3 things.
    -- Look through the API at the java.io package.
    -- Search previous posts for "read write from text file"
    -- Search java.sun.com for information on the java.io package.
    That should clear just about everything up. If you have more specific problems, feel free to come back and post them.

  • How to write select statement before the loop and how to use read statemnt

    Hi,
    Recently our system has changed from 4.6 to ECC6.
    As its migrated its showing lots of errors like in between loop and endloop there should be no select statemnt........
    Can any one please tell how to write that coding in ECC6 , how can i change the code......
    In between loop and endloop i am having lots of select statemnts.....ple tell thye coding how can i select before the loop starts and
    how to read that internal table in loop.

    Hi Deepthi,
    You can do as per below:
    1) Select the required entries from the tables you need (VBAK, VBAP, KNA1, etc)
    SELECT VBELN ERDAT KUNNR
        into table it_vbak
        from VBAK
    where VBELN = S_VBELN. "Selection criteria
    If sy-subrc = 0.
    SELECT VBELN POSNR MATNR
        into table it_vbap
        from VBAP
    for all entries in it_vbak
    where VBELN = it_vbak-vbeln
    SELECT KUNNR NAME1
        into table it_vbak
        from VBAK
    where VBELN = it_vbak-vbeln.
    endif.
    2) Loop at the entries, and read internal table it-kna1 for customer info.
    Loop at it_vbak into wa_vbak.
    read table it_kna1 into wa_kna1 with key kunnr = wa_vbak-kunnr.
    if sy-subrc = 0.
    endif.
    loop at it_vbap into wa_vbap where vbeln = wa_vbak-vbeln.
    endloop.
    endloop.
    This is the basic idea and short example of how to extract entries and read internal table.
    Hope this helps.
    Regards,
    Patrick

  • How to change the permission of a folder of a website hosted on Microsoft Azure. I would like to know how to enable read write permission for this folder

    How to change the permission of a folder of a website hosted on Microsoft Azure. I would like to know how to enable read write permission for this folder
    Regards,
    John

    Hi,
    Please try to setting Folder Permissions on Web Publish, and then deploy it with Web Deploy, as far as I know, if we do that, Web Deploy will use the SetAcl operation to change permissions. Please have a look at the article below.
    #http://sedodream.com/2011/11/08/settingfolderpermissionsonwebpublish.aspx
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to write a module pool (M) program for the DEMO_DYNPRO_TABSTRIP_server

    Hi,
    How does someone write a module pool program (type m ) like the one which is given as an example for tabstrip control (paging through the app.server which is a report program). Please check the code given in the abap tutorial by sap below.
    REPORT DEMO_DYNPRO_TABSTRIP_server.
    CONTROLS MYTABSTRIP TYPE TABSTRIP.
    DATA: OK_CODE TYPE SY-UCOMM,
    SAVE_OK TYPE SY-UCOMM.
    DATA NUMBER TYPE SY-DYNNR.
    MYTABSTRIP-ACTIVETAB = 'PUSH2'.
    NUMBER = '0120'.
    CALL SCREEN 100.
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE CANCEL INPUT.
    LEAVE PROGRAM.
    ENDMODULE.
    MODULE USER_COMMAND INPUT.
    SAVE_OK = OK_CODE.
    CLEAR OK_CODE.
    IF SAVE_OK = 'OK'.
    MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='
    MYTABSTRIP-ACTIVETAB.
    ELSE.
    MYTABSTRIP-ACTIVETAB = SAVE_OK.
    CASE SAVE_OK.
    WHEN 'PUSH1'.
    NUMBER = '0110'.
    WHEN 'PUSH2'.
    NUMBER = '0120'.
    WHEN 'PUSH3'.
    NUMBER = '0130'.
    ENDCASE.
    ENDIF.
    ENDMODULE.
    I am finding the problem with the below statements .
    MYTABSTRIP-ACTIVETAB = 'PUSH2'.
    NUMBER = '0120'.
    CALL SCREEN 100.
    how do I write them in a module and how I can ensure that the functionality is not changed?
    Thanks in advance,
    Ajith c

    Hi
    All Tabstribs use the same subarea SUB (see the dynpro 100), in PBO it needs to indicate the program and subscreen number have to be loaded in that subarea.
    In PBO of screen 100 you can see the line:
    CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
    The variable NUMBER is managed in the USER_COMMAND:
      save_ok = ok_code.
      CLEAR ok_code.
      IF save_ok = 'OK'.
        MESSAGE i888(sabapdocu) WITH 'MYTABSTRIP-ACTIVETAB ='
                                      mytabstrip-activetab.
      ELSE.
        mytabstrip-activetab = save_ok.
        CASE save_ok.
          WHEN 'PUSH1'.
            number = '0110'.
          WHEN 'PUSH2'.
            number = '0120'.
          WHEN 'PUSH3'.
            number = '0130'.
        ENDCASE.
      ENDIF.
    But this module is triggered as soon as you press a button on screen 100 (you have to considere the label of tabstrip is a pushbutton),
    so it needs to initialize the variable NUMBER for the first time screen 100 is called, that mean it needs to indicate which is the first tab has to be shown at the beginning, so you have the code:
    mytabstrip-activetab = 'PUSH2'.  
    number = '0120'.
    CALL SCREEN 100.
    The same code can be included in the PBO in the following way:
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      MODULE INIT_TABSTRIP. "<--- New Module
      CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
    PROCESS AFTER INPUT.
      MODULE CANCEL AT EXIT-COMMAND.
      CALL SUBSCREEN SUB.
      MODULE USER_COMMAND.
    MODULE INIT_TABSTRIP.
      IF NUMBER IS INITIAL.
        mytabstrip-activetab = 'PUSH2'.  
        number = '0120'.
      ENDIF.
    ENDMODULE.
    The line:
    mytabstrip-activetab = 'PUSH2'. 
    is to indicate which tabstrip has to be placed in foreground (remember every tabstrip is a pushbutton, so every tabstrip has an own ok_code)
    Max

  • How can I read and write text in rings that are inside an array?

    Hello All!!!
    How can I read and write text in rings that are inside an array?
    Regards and thanks in advance.

    Use a Property Node linked to the Ring inside the array.
    Of course, all elements in the array will have the same text values.
    B-)
    Message Edited by LabViewGuruWannabe on 12-13-2007 09:47 AM
    Message Edited by LabViewGuruWannabe on 12-13-2007 09:48 AM
    Message Edited by LabViewGuruWannabe on 12-13-2007 09:49 AM
    Attachments:
    Strings-BD.PNG ‏17 KB
    Strings-FP1.PNG ‏23 KB

  • Sample of how to write data to NI 9802 SD Card C-Module

    I have basic knowledge of LabVIEW but now I want to go into Real-Time and FPGA. I want to learn how to write a data read from an analog input to a SD card using NI 9802.  For the purpose of learning data rate does not matter, as long as I can write something to the memory card.  I read some documents online but I have not found an example so I can understand how to do it.  I will much appreciate if there is any help.
    My settings:
    - cRIO 9073
    - Slot 0: NI 9229 (reading only AIO)
    - Sot  1: NI 9802 (Memory card is inserted to slot 0) - must be used in FPGA mode only.

    Hi,
    To getstarted with, you can first attempt to mount and unmount the NI 9802 using the invoke methods "Mount SD Card" and "Unmount SD Card" in the RT vi. For this you only need to open an FPGA reference to the FPGA vi. After Mounting, you can obtain the drive letter and use it to create the file and write data.
    Best Regards,
    Gogineni
    Kudos are welcome

  • How to enable read and write to thumb drive,how to enable read n write on thumb drive

    How to enable read n write to my thumb drive

    Format it for apple or Fat32 or exFat.
    Check the write protect switch on the thumb drive.

  • How to create/read/write textfiles in a jar archive?

    Hi!
    I would like to know how to create, read and write text file in a jar file?
    //Marcus

    You want to update "files" that are inside a jar archive? You can't. At least not very easily; to modify a file you need to create a new version of the jar, copy over everything else, and add the new version of that file. Look for a different design that doesn't require updating a jar.
    PC&#178;

  • How do I read inches instead of pixels, in the develop module

    How do I read inches instead of pixels, in the develop module. I am not discussing resolution. When I crop, I need to see the numbers in inches, not pixels.
    I am not exporting to anything. From the develop module I go on to the print module. However I want to see inches, not pixels, in the develop module.
    I am not cropping to an aspect ratio. I am cropping to a given size, in inches, just as if I was in PS CS 3.
    LR 2.0
    Mac OS 10.4.11, G5, dual 2.3; MBP OS 10.5.4,; Epson Pro9600 c ultrachrome matte black.
    Thanks in advance.
    Nancy

    >Instead of the image in pixels, why can't I read it in inches? Physical size in pixels is staring at me, why can't inches be there instead?
    Because it is not there. The size in inches ONLY becomes real at print or at export time and can and will change depending on what you do there. Before that you are looking at a number of pixels in a computer.
    >I need to set these values in the develop module, just as if I was setting them in PS CS 3.
    That does not make any sense. There is no need to set this in develop at all. Lightroom will scale to your final size at export/Print/web/slideshow. Not in develop. There you are working with the RAW data at its native size.

Maybe you are looking for

  • Multiple iCloud accounts to hold 55 GB of data?

    This issue has been covered but no answer is clear. I have a 64 GB iPhone, (and I know there are 128 GB iPads) and I presume the iPhone 6 will have 128 GB when it is released 362 days from now.... However, iCloud is limited to 55 GB.  What is the bes

  • Request for advice: TM/TC fails on one Macbook Pro, but not the other?

    Dear All- looking for some advice. Background: I installed a 1TB TC about 3 months ago to improve the wireless connectivity around the home/small business and to act as 1 stop backup- primarily for 2 main Macbook Pro’s. Everything seems to work fine,

  • ABAP to Web Dynpro

    hi every one, My case is that, I already have ABAP report with selection screen. Need to run same report in Web dynpro but with Web dynpro layout. Now i have created Selection Screen in WD, want to pass entered data to ABAP report and run its logic.

  • MS CRM 2011 session time out with our CBA

    Hi CRM Gurus, can we have CRM website, session time out, with out implementing the CBA? by default the ideal time out for the apppool is 20 minutes, still it does not have any impact. is there any way to achieve the timeout for the CRM website and an

  • Need method to disable checkbox

    Hi, My alv Grid report contains checkbox at end of each row, when ever user select the checkbox , I am taking the particular line  to internal Table by using below code. DATA cl_gui_alv_grid TYPE REF TO cl_gui_alv_grid.   CALL FUNCTION 'GET_GLOBALS_F