Hardware driver programming : Help !!!

Hello
I just bought a special X-ray sensor, which came with its ISA interface card
but without any driver. The documentation indicates which registers and
memory range to read and write, and I have to build the LabView driver
myself. I need to program only some basic tasks (such as impose gain and
exposure time, start an acquisition and get back the data), and I planned to
call some C routines with Code Interface Nodes.
I don't have any experience in hardware programming, and I don't know which
C functions I must use to access the memory and registers to dialog with
this card.
Any information (book reference, example program ...) would be very
helpfull.
Thank you in advance.
Eric Hervieu
========================
=====================
Commissariat a l'Energie Atomique - Grenoble
DTP/SETEX/LTDF
Tel : (33) 04 76 88 45 33
Fax : (33) 04 76 88 52 90
E.mail : [email protected]
==============================================

Helen,
Check out the KnowledgeBase article on accessing the parallel port from NT
(http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/c80752c53
094c296862565f3007ac765?OpenDocument). The llb and zip files at the bottom
of this article contain NT compatible In Port and Out Port vis. I'm using
them successfully on my NT.
Hope this helps.
Jim
Helen E. Kourous wrote in message
news:[email protected]...
> I too need to talk to an old Keithley DAS 20 (!) -- but inport/outport
does not work on WinNt
> due to memory protection! Any ideas?
>
> Martin Eis wrote:
>
> > Hello Eric,
> >
> > if you are using Windows 95 you can use the InPort/OutPort Functions of
Labview
> > (you can find them in the advanced\memory menu) to do register-level
programming.
> > I've devoloped an analog i/o-Driver for a Keithley DAS 1600 DAQ card in
> > that way. It works quite pretty. If you are interested, I can send you
an
> > example VI via e-Mail.
> >
> > Martin
> >
> > "Eric Hervieu" wrote:
> > >Hello>>I just bought a special X-ray sensor, which came with its ISA
interface
> > card>but without any driver. The documentation indicates which registers
> > and>memory range to read and write, and I have to build the LabView
driver>myself.
> > I need to program only some basic tasks (such as impose gain
and>exposure
> > time, start an acquisition and get back the data), and I planned to>call
> > some C routines with Code Interface Nodes.>>I don't have any experience
in
> > hardware programming, and I don't know which>C functions I must use to
access
> > the memory and registers to dialog with>this card.>>Any information
(book
> > reference, example program ...) would be very>helpfull.>>Thank you in
advance.>>Eric
> > Hervieu>>=============================================>Commissariat a
l'Energie
> > Atomique - Grenoble>DTP/SETEX/LTDF>Tel : (33) 04 76 88 45 33>Fax : (33)
04
> > 76 88 52 90>E.mail :
[email protected]>==============================================>>>
>
>
>

Similar Messages

  • Bounded int beed help making a test driver  program

    Bounded int here's my code i want to make a test drive program
    getLowerBound that returns the lower bound for the object
    getUpperBound that returns the upper bound for the object
    getValue that returns the current value for the object
    setValue that modifies the value for the object - if the value passed to the method is within the bounds then the value can be changed, however if the value is outside the legal range then the value should not be changed
    public class BoundedInt{
    private static final int intLowerBound = 3;
    private static final int intUpperBound = 10;
    private int value;
    public BoundedInt() {
    this.value = 3;
    public void setValue (int tempValue) {
    if(tempValue < intUpperBound && tempValue > intLowerBound) {
    this.value = tempValue;
    public int getValue () {
         return value;
    public int getLowerBound () {
         return intLowerBound;
    public int getUpperBound () {
         return intUpperBound;
    this is my test drive program (i dont know if i did it right) when i compile it it gives me this error am i doing some thing wrong or i may b missing some line of code ??
    import java.util.*;
    public class testdriver {
    public static void main(String[] args) {
    Scanner scan = new Scanner (System.in);
    BoundedInt b = new BoundedInt(2);
    System.out.println(b);
    out put : testdriver.java:30: cannot find symbol
    symbol : constructor BoundedInt(int)
    location: class BoundedInt
    BoundedInt b = new BoundedInt(2);

    1) When you post code, use the CODE button or [code] and [/code] tags to preserve formatting and make your code readable. Copy/paste from your original source in your editor, NOT from your post here, which has already lost all formatting. Most of us won't even bother reading your post otherwise.
    2) What is your question. Don't say, "How do I make a test driver?"

  • Printing Line Items in Script without using driver program

    How to print the line items of a internal table in sap script without using driver program? I am not supposed to edit anything in the driver program. Pls help me to solve this problem...

    Hi,
    You can try by creating a new driver program and a new FORM ENDFORM inside that for this purpose.
    Regards,
    Gaurav

  • Driver program name

    hi all
    is there any other way of determining the driver program name for a script/smart form apart from the table tnapr?
    regards
    niki

    Hi..
    1) goto NACE transaction.
    2) select the module of the form...i.e. PO/SD/etc
    3) select the output type option
    4) from the list ,select the name of ur form/script.
    5) check out the processing routine,that will give the driver program name
    Reward Pts if helpful.
    regards
    - Rishika Bawa

  • Driver program for ADOBE FORM

    Hi experts ,
             Can anyone guide me for writing a driver program for ADOBE forms ( created using SFP transaction) . I have created the form but dont know how to run it using a driver program since i m new to SFP.
           Plz help me.
    Message was edited by:
            suchita phulkar

    Suchita,
    You can check this code.. This is purley to run the ADOBE form, above one is to run a smart form.
    *&      Form  print_form
    *       Subroutine to print the form
    FORM print_form .
      DATA : l_fmname TYPE funcname,
             l_params TYPE sfpoutputparams,
             l_docparams TYPE sfpdocparams,
             l_formoutput TYPE fpformoutput.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name                    = 'Z_CERT_CONTINU_FORM'
       IMPORTING
         e_funcname                 = l_fmname
    *   E_INTERFACE_TYPE           =
    *  l_params-getpdf = 'X'.
      l_params-nodialog = ''.
      l_params-preview = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = l_params
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 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.
      l_docparams-langu = 'E'.
      CALL FUNCTION l_fmname
        EXPORTING
          /1bcdwb/docparams  = l_docparams
          g_regis            = g_regis
          g_date             = g_date
          g_frmname          = g_frmname
          g_comp             = g_comp
        IMPORTING
          /1bcdwb/formoutput = l_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " print_form
    Thanks,
    Sreekanth
    <i>*-- Please close the post and do not forget to reward if it helps you</i>

  • Driver program in SAP Script

    Dear all
           I want to make a driver program in sapscripts for Delivery note...since i am new to this topic then also i am done with the layout . please help me the program. i want the example code which is easy to read and understand.
    thanks in advance...
    Mohit

    Hi Mohit,
    Go through the following code.
    START-OF-SELECTION.
       PERFORM GET_DATA CHANGING WA_MARC
                                 I_MARC.
       PERFORM GET_DATA1 CHANGING I_MARC
                                  I_VBAP.
       CALL FUNCTION 'OPEN_FORM'
         EXPORTING
         APPLICATION                       = 'TX'
         ARCHIVE_INDEX                     =
         ARCHIVE_PARAMS                    =
         DEVICE                            = 'PRINTER'
         DIALOG                            = 'X'
           FORM                              = 'ZPAVSCRIPT1'
           LANGUAGE                          = SY-LANGU             .
       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 I_VBAP INTO WA_VBAP.
       CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT                        = 'MAIN'
          FUNCTION                       = 'APPEND'
          TYPE                           = 'BODY'
          WINDOW                         = 'MAIN’.
       IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'          .
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    In the script layout,create a MAIN window,in that create a Text element (i named it MAIN in my program).
    call these functions using button "Pattern" in toolbar.
    In the above forms Get_data & get_data1,write the required code.....
    This is the example code to b written in driver program...
    Dont forget to reward points if helpful....
    Pavan.

  • Driver Program for Smartform

    i want the name of the driver program & form name in smartform for Invoice .
    kindly help.tks

    Hi,
    Go to transaction NACE, select application V3 - Billing then click on output types.
    click on medium type.
    For ex: NEU for print output, then on left hand side select processing routines, then you can see smart form/ script & driver programs associated with that.
    Reward if it is useful
    Praneeth

  • Driver program for adobe form error no job started

    Hi
      Iwhen I execute driver program for adobe form the program generates error no job started.
    the print dialog box appears but when I pressed print preview button it generates this error no job started.
    I don't know why it's happening please help.

    Hi
      Iwhen I execute driver program for adobe form the program generates error no job started.
    the print dialog box appears but when I pressed print preview button it generates this error no job started.
    I don't know why it's happening please help.

  • Driver Program ------ Very Urgent

    How to find the Driver program for the smart forms ?

    Hi Manjunath,
    Hope it will give clear idea abt trigger of smartform thru driver program.
    Try this in IDES , you will get how the smartform will trigger for specific application thru message control.
    but if you want to pass application table data like VBRK, VBRP,.... you need to identify the exact location
    in PERFORM processing USING us_screen subroutine.
    Program name is RVADIN01
    Routine Name is ENTRY
    SmartForm Name  ZSF_RVADIN01 (Your Custom Form)
    step1 : copy your RVADIN01 to ZRVADIN01
    step2 : goto subroutine
         FORM entry USING return_code us_screen.
           *CLEAR retcode.
           *xscreen = us_screen.
           *PERFORM processing USING us_screen.
           *CASE retcode.
    WHEN 0.
      return_code = 0.
    WHEN 3.
      return_code = 3.
    WHEN OTHERS.
    return_code = 1.
           *ENDCASE.
            ---> Here call your SSF_FUNTION_MODULE_NAME.
         ENDFORM. 
      step3 : In NACE, Replace the Program name as ZRAVADIN01.
                and smartform name is ZF_RVADINO1.
      step4 : Run invoice transaction and check the output.
    Regards,
    Vishvesh
    if helpful, rewards it.

  • Driver program for PO SMART FORMS

    Hi.
    what is the driver program for the PO smartforms.
    /smb40/mmpo_l
    mmpo_a
    is it the same like for script(MEDRUCK)--SAPFM06P.
    OR DIFFERENT.
    Plz help me to find out.
    Thanks in advance,
    regards,
    eswar

    HI VENKAT,
    The print program name for 'MEDRUCK'  is  <b>SAPFM06P</b>,
    you can find out for smartforms
    by using transaction NACE.
    or table TNAPR.
    here is the way to find the print program for smartforms
    ifferent ways
    1) Check the table TNAPR.
    2) go to the Tcode -> NACE
    3) Go to the T-code 'SMARTFORMs'
    Give your form name
    go to the general attributes.
    Check the Package name.
    then go to T-Code-> SE80
    there check the program name for a package wise
    Mark the  points if u find it useful
    ~~Guduri

  • Driver program for the Dunning letter SAP Script

    Hello All,
    Can someone please tell me how to find the "Driver program for the Dunning letter SAP Script". I checked the Transaction OB96 but I dont find any Dunning scripts here i.e., the standard Dunning letter SAP Script F150_DUNN_01.
    Is there any Transaction like NACE of logistics for FI module to find the Driver programs. My requirement is to find the Driver program for the Dunning letter SAP Script and have a new Driver program instead of the standard SAP given driver program. Example is in transaction NACE we can change the driver program for Invoice like from RVADIN01 to ZRVADIN01.
    Thanks and Regards,
    SNK.

    Yes you can, using FIBF, change the FM associated with event 1720 like when SapScript is replaced with SmartForms. Look at [Define Dunning Forms (with SAP Smart Forms)|http://help.sap.com/saphelp_46c/helpdata/es/7d/c7a0a535e1d311ba4d0800060d888b/content.htm] for reference.
    But notice
    - PRINT_DUNNING_NOTICE call many FM of the same FG which share the same global data area.
    - During following upgrades of your system you will have to manage a copy of standard.
    Regards,
    Raymond

  • How to write driver programming in smartforms

    hi Floks
    <i>how to write driver programmig and how many types of driver programs available to trigger smartforms what are they . how to call the url in smartforms ?
    help me  out  .thanking you ,</i>
    with regards,
    suresh

    Hi
    Try to get the Function module name from the smart form
    how to find Driver program for a smartform
    and now goto SE38 and create a progarm for calling the smartform
    smartform driver program
    Regards
    Kathirve

  • Calling a driver program by submit in user exit for PGI

    Hi Gurus,
    I have a question regarding post goods issue (PGI) for transaction vl01n,vl02n and vl06g.
    earlier i have created a smartofrm and a driver program for sending the form output attachment in a mail after delivery posting manually.
    for this i have created a smartform and driver program in which all the logic to attach and mail send is written on delivery posting.
    but now customer want this fucntionality on Post goods issue (PGI), when user go to trasaction vl01n ,vl02n and vlo6g and pressing PGI button,
    then mail should be sent automatically with for output attachment.
    i have found a user exit which is being triggerd on PGI press MV50AFZ1 in which implemented the implecit enhancement in perform
    user_exit_save_document_prepeare with below code.
    ENHANCEMENT 1  ZPGI_MAIL_SEND.    "active version
    DATA c_zlf TYPE likp-lfart.
    IF sy-ucomm = 'WABU_T' and xlikp-lfart = c_zlf.
    SUBMIT ZSD_DECLARATION_CONFORMITY AND RETURN.
    ENDIF.
    ENDENHANCEMENT.
    After going to transaction vl02n i am putting unposted delivery number and clicking on PGI button.
    in debugging its going to condition check for ucomm for PGI buttion and delivery type.
    if condtion is fullfiled and curser going further on submit statement, but without executing the driver program ZSD_DECLARATION_CONFORMITY it coming out of enhancement.
    its not performing the task which is develped in the driver program.
    Please help me with the submit statement structure if i am missing any or other solution for my problem.
    Br,
    Surya

    Hi Team,
    I have used the perform.
    ENHANCEMENT 1  ZPGI_MAIL_SEND.    "active version
    DATA c_zlf TYPE likp-lfart.
    IF sy-ucomm = 'WABU_T' and xlikp-lfart = c_zlf.
    Perform entry( ZSD_DECLARATION_CONFORMITY )using return screen.
    ENDIF.
    ENDENHANCEMENT.
    Now i am able to communicate with my program.
    Thanks,
    surya

  • Should I do a clean install of Mountain Lion on a late 2009 iMac or will I find hardware/driver issues?

    I have a late 2009 iMac (2.93 Ghz Intel Core Duo, 4GB of ram, model id is 9.1) running Lion right now. I upgraded it all the way from Leopard using the standard keep-all-your-apps-and-settings way. After looking at the hardware requirements for Mountain Lion (and my success with running Lion) it seems that my good ol' iMac is still capable of running it fairly well. But I don't like the idea of "stacking" upgrade after upgrade (*coughs*, clean freak!). I like the idea of starting out clean this time because so many years of use has filled my mac with a lot of crap I no longer use.
    So I would like to know your sane advice, and if there's anything I should check out before attempting this. Especially I'm concerned about hardware/driver related issues like for example: the webcam or speakers no longer working. Also, if there's something I'm overlooking please point it out.
    Thank you in advance for any help you guys can give me. I'll be very grateful!

    If it wasn't a Mac computer that originally came with either Lion or Mt Lion Pre-Installed by Apple when new you would not be able to connect to the Online Internet Recovery system. It is a Feature of the Mac EFI Firmware system. And it will only install whichever version of the Download only version of OS X that originally came on that system.
    My MBP came with Lion Preinstalled. Even if I have Mt Lion installed on the hard drive the Online Internet Recovery system would always point my MBP to the Lion download as that was the original version of OS X that came on my Mac.
    No real authentication needed. Since your Mac came with Mt Lion no matter what newer versionof OS X you ever install the OIRS will always point you to Mt Lion and ONLY Mt Lion.
    It is something different, but not completely different, from the built in Recovery HD partition on the internal drive.
    No worries as during the install of MT Lion on your SSD the installer will Recreate the Mt Lion Recovery HD partition on your SSD.

  • Can we change the value of a variable in the driver program from sapscript?

    Hello Experts,
    I am currently developing a form wherein I need to change the value of a variable defined in the standard
    driver program through the sapscript form. Unfortunately, I cannot customize this standard program since this is used by many other
    subsidiaries. So, is there anyway that I can change a variable defined in the driver program via sapscript?
    I tried to use a PERFORM to change its value but it is not working.
    I hope you can help me guys. Thank you and take care!

    SAP SCRIPT:
    /: PERFORM GET_ATTNDEE_INFO IN PROGRAM ZHR_TRNG
    /: USING &PPVAR-EOBJD&
    /: CHANGING &ATTND&
    /: ENDPERFORM
    Executable Prog.:
    REPORT ZHR_TRNG.
    FORM GET_ATTNDEE_INFO TABLES IN_PAR STRUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA : LOC_CODE(8),
    WF_NAME LIKE PA0001-ENAME, "----Location Code
    WF_SOBID LIKE HRP1001-SOBID. "----Business Event Code
    DATA: BEGIN OF ITAB_ECODE OCCURS 0,
    ECODE(8),
    END OF ITAB_ECODE.
    DATA: NAME1 TYPE STRING.
    READ TABLE IN_PAR INDEX 1.
    LOC_CODE = IN_PAR-VALUE.
    SELECT SOBID FROM HRP1001 INTO WF_SOBID
    WHERE OBJID = LOC_CODE AND OTYPE ='E' AND PLVAR = '01' AND SCLAS = 'P'.
    APPEND WF_SOBID TO ITAB_ECODE .
    ENDSELECT.
    IF SY-SUBRC = 0.
    LOOP AT ITAB_ECODE.
    SELECT SINGLE ENAME FROM PA0001 INTO WF_NAME
    WHERE PERNR = ITAB_ECODE-ECODE ." AND ENDDA >= '31.12.9999' .
    CONCATENATE 'Mr ' WF_NAME ',' NAME1 INTO NAME1.
    IF SY-SUBRC = 0 .
    OUT_PAR-NAME = 'ATTND'.
    OUT_PAR-VALUE = NAME1.
    APPEND OUT_PAR.
    ENDIF.
    ENDLOOP.
    ENDIF.
    ENDFORM. "GET_USR_INFO

Maybe you are looking for

  • I would like to change my name on my developer account. It doesn't want to let me, any help please?

    i don't know how to change it properly.

  • Can't open .3DS files in CS6 extended

    Hi, I'm trying to open .3DS files in Photoshop CS6 extended, but it is giving me the error message: "could not complete your request because 3d functionality is currently disabled due OpenGL being disabled" At first it opened a few files and worked f

  • Yosemite slow on MacBook Pro mid 2012

    Hi Anyone My MacBook Pro, 13 inch mid 2010, 2.5GHz intel Core i5, 4GB 1600 MHz, Intel HD Graphics 4000 1024 MB Updated to os x Yosemite 10.10 (German Version) Problems:- Slow in loading Apps, e.g. Safari load very slow and if I want to type something

  • Adding a cdrw to a non-global zone

    Hi all, I am attempting to add a cdrw on a laptop running Solaris 10 to a non-global zone via the following (after browsing the archives of this list as well as related forums and documentation): "cdrw -l" when run in the global zone reports "/dev/rd

  • Problems viewing CNN videos

    Is it only me? With both Firefox and Safari, whenever I view a video on the CNN.com website, it is terrible. It just shutters and the audio is shaky. Even if I wait for the whole video to download before pressing play, I get the same problem. This ha