Hwo to run test program composed with GPIB commands directly?

When we write test program, we usually use the function libraries which are provided by instrument vendors. But sometimes, we need to use GPIB commands directly. For example, if the instrument vendor doesn't provide library for some GPIB commands, or if I get such a program from somewhere else.
The question is that I don't know how to edit, compile and run such programs. The attached is such a program, and please tell me how to run such a program if you knows.
Thank you very much.
Attachments:
MER.txt ‏9 KB

The file that you attached looks like an HP-BASIC or Rocky Mountain Basic program. If you're trying to take an existing program like that and compile it in Visual Studio, that is not going to work. If you're trying to figure out how to write an equivalent program in Visual Studio, our example programs for Measurement Studio would be a great place to start. For the C++ API, you can look at the example program in C:\Program Files\MeasurementStudioVS2003\VCNET\Examples\4882, or . The exact location of Measurement Studio might be different on your system depending on where it's installed, or you might have an older version of Measurement Studio, like 7.0. Note that we also have support for GPIB in .NET languages like VB and C#. You can find examples in C:\Program Files\MeasurementStudioVS2003\DotNET\Examples\GPIB for both languages.

Similar Messages

  • XDC error while running test program FP_CHECK_DESTINATION_SERVICE

    Hi, all.
    We are on ECC 6.0 backend single stack and EP6 on NW04 SP17. I have installed the ADS on the java stack on EP6. However, I could not get the XDC working. Note that I am just using http for the ADS, not https.
    When I run the test programs like FP_TEST_00, FP_CHECK_DESTINATION_SERVICE and FP_CHECK_HTTP_DATA_TRANSFER on the ABAP side, it keeps giving me error:
    #1.5#000802104262006000000015000005F0000453556EDC6093#1217526304263#com.adobe.AdobeDocumentServices#com.adobe/AdobeDocumentServices#com.adobe.AdobeDocumentServices#ADSUser#226#SAP J2EE Engine JTA Transaction : [045ffffffc4ffffffbe0006]###67a637e05f2811dda73c000802104262#SAPEngine_Application_Thread[impl:3]_6##0#0#Error#1#/System/Server#Plain###Processing exception during a "Render" operation.
    Request start time: Thu Jul 31 13:45:03 EDT 2008
    com.adobe.ProcessingError: No <Render><Output><XDC> specified
    However, other checks like http://<server>:<port>/AdobeDocumentServices/Config, FP_PDF_TEST_00 and http://<server>:<port>/sap/bc/fp/form/layout/fp_test_00.xdp, are successful.
    I noticed that the AdobeDocumentServices is missing on the ECC6 since it is single stack. But the folder exists on the EP6 server. From my readings, the XDC is called via RFC against the  FP_ICF_DATA_<SID> destination which I have already setup in EP6.
    So I am really out of idea. Can you please help?
    Thanks,
    Jonathan.

    Well, I am pretty familiar with the ADS config guide now.
    The RFC connection used by Adobe is ADS on sm59. I can run connection test without a problem.
    By the way, the AdobeDocumentServices directory under SYS\global has the following sub-dir:
    DataManagerService
    DestProtoService
    FontManagerService
    lib
    LicenseSupportService
    PDFManipulation
    RenderErrorlog
    ServicesNatives2
    TrustManagerService
    XMLFormService
    I have to create the RenderErrorlog manually. Also, the folders DataManagerService and DestProtoService, RenderErrorlog are empty. Can you check your server and see if you have files underneath these folders?
    I am suspecting something is corrupted on the system because I took over the system from someone.
    Thanks,
    Jonathan.

  • Any problems running a program compiled with SDK 1.4.2_14 with JRE 1.4.2_08

    Hi,
    Would there ever be a problem running a program compiled in Java 1.4.2_13 with JRE 1.4.2_08?
    Why or why not? No guesses please.
    Thanks

    No such hope. The alternative to testing is to review changes made to each version leading up to 14. This is spelled out in each version's Release Document. There are a lot of changes. Most will not affect your program. Each change is relatively well described, but your problem will be to decide if your program will be affected by the change.
    Or, do nothing, hope like hell that nothing breaks, and have an up-to-date copy of your resume.
    If someone came to me saying a program couldn't be tested, I'd have serious concerns for that person's future.

  • Windows 7 is Error reporting when running a program generated with in Labview LV 7.1!

    Dear Labviewer's
    Once back in the yaers I'd generated a program with  - Labview 7.1.
    Now I'm informed that the version LV 7.1 is not supported by Windows 7.
    Now when i try to run the Program generated by Labview 7.1.  in windows 7 , I get communication error by the serial port. 
    Is there somehow somthing I can do to get this work. Is there any Runtime engines From NI for Windows 7.?
    Please Feed back if anyone got info for help.
    4 Stars ...
    HFZ
    Solved!
    Go to Solution.

    Have you installed a newer version of the NI-VISA runtime engine that will work with Windows 7?
    The most recent on the NI website appears to be version 5.0.3.
    http://joule.ni.com/nidu/cds/view/p/id/2257/lang/en

  • Running a Program in JDeveloper using Command Prompt

    Hi,
    I downoladed Oracle JDeveloper 10g. I had written a simple java class called Echo. java. I want to run the file using command prompt. My JDK has the following path:
    F:\Sowmya
    My java file has the following path:
    F:\Sowmya\jdev\mywork\1\1\src\pkg1
    So, in order to compile the file, I gave the following command:
    F:\Sowmya\jdk\bin>javac F:\Sowmya\jdev\mywork\1\1\src\pkg1\Echo.java
    It worked and the Echo.class file was created.
    But, when I tried to run the file using the following command,
    F:\Sowmya\jdk\bin>java F:\Sowmya\jdev\mywork\1\1\src\pkg1\Echo
    Iam getting the following error:
    Exception in thread "main" java.lang.NOClassDefFoundError: F:\Sowmya\jdev\mywork\1\1\src\pkg1\Echo
    This didnt work either:
    F:\Sowmya\jdk\bin>java F:\Sowmya\jdev\mywork\1\1\classes\pkg1\Echo
    Iam getting the same error.
    Can any one please help me regarding this.
    Thank you,
    Sowmya.

    Yes, my class contains a main. It runs if I click run in JDeveloper. But, there is no output displayed. The following is the code:
    public class Echo {
    public static void main (String[] args) {
    for (String s: args) {
    System.out.println(s);
    }

  • Running Java program created with Eclipse plugin fails to open report

    I created a CR 2008 report and using the Eclipse plug-in I created a Java program to drive data through the report and export the resulting reports as pdf files.
    This process works just fine if I run the Java program in Eclipse. I copied the code to a server to run the application remote.
    The program fails at the point of opening the Crystal Report. This is the error.
    D:\src>java EDIInvoice
    Current date : 2009928-
    Report output name is : D:\src\report\Invoice2009928-45462829.pdf
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: com/ibm/icu/util/Ca
    lendar---- Error code:-2147467259 Error code name:failed
            at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(Unknown Source)
    This is the code
    public class EDIInvoice {
         private static final String REPORT_NAME = "D:
    src
    CR8Invoice.rpt";
         public static void launchApplication() {
         try
            FileInputStream in = new FileInputStream("D:
    src
    ghxInv.txt");
            BufferedReader br = new BufferedReader(new InputStreamReader(in));
            String strLine;
            Calendar cal = new GregorianCalendar();
            int month = cal.get(Calendar.MONTH);
            int year = cal.get(Calendar.YEAR);
            int day = cal.get(Calendar.DAY_OF_MONTH);
            String today = (year + "" + (month + 1) + "" + day + "-");
            System.out.println("Current date : " + today);
    // Read the file one line at a time
            while ((strLine = br.readLine()) != null)  
                String patternStr = ",";
                String[] fields = strLine.split(patternStr);
                String EXPORT_FILE = "D:
    src
    report
    Invoice" + today + fields[1] + ".pdf";
                String Company  = fields[0];
                String Invoice = fields[1];
                String PO_number  = fields[2];
                       System.out.println("Report output name is : " + EXPORT_FILE);
         try {
    //Open report.
         ReportClientDocument reportClientDoc = new ReportClientDocument();
         reportClientDoc.open(REPORT_NAME, 0);
         System.out.println("Opened the report");
    As you can see the first 2 println statements worked fine, but the 3rd one failed. The program was not able to open the report.
    Is there a reason the code can not run without Eclipse?

    did you copy all the jar files? especially the jrcadapter.jar? please download the following sample and modify it accordingly:
    [http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/f087d31f-3e11-2c10-2cba-fcb5855f79ef]

  • Every icons and programs are with Adobe icon, I can´t run it normaly, except obviously PDF documents

    I was, by error, try run an program incompatible with Adobe Reader, now every icons and programs images appear with its icon, the only solution i can fin is uninstall program,
    but to reinstall I have the same problem

    Are you talking about this? Application, file icons change to Acrobat/Reader icon

  • How to Run std program with a specific variant for specific user?

    Hi guys
    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how?
    one options we thought about was to create a transaction in SE93 and define the program to run with a predefined varaint and assign the new custom tcode to the user profile. But we have many different users and we will end up with creating many transactions which we would like to avoid. Is there any other option to control the std program such that each user can run the program only with a pre-defined varaint and the one which only the user is suppoed to run. thanks in advance.

    We have a std program which will be run by different users in the company. Now the requirement is to make sure that each user runs the report with a specific varaint. Can we control this if yes how
    you can do this..
    You can create a Custom table
    userid     keyfield
    program  keyfield
    variant    keyfield
    programdesc
    Make the table Maintaintable(usnig table maintenance )
    Now create another Program
    It takes input of the Program name( using selection screen)
    LOGIC
    in side that place a logic ,
    Based on the user name  and program name Get the variant name from above table
    Now Submit the program with the variant you have selected above.
    Use Variant Addition when you use SUBMIT
    So now program executed based on user variant.
    Now you create a Transaction for this program.
    When use Runs the Transaction , user needs to input the Program name which he wants to execute.
    and Output will be shown based on the variants
    Regards
    Vijay Babu Dudla

  • DUMP while running the program RSAR_RSISOSMAP_REPAIR

    Hi Experts,
    I am facing the dump while executing the DTP. the dump is ITAB_DUPLICATE_KEY.to fix the error  ITAB_DUPLICATE_KEY I am referring to the below link :
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a04c82eb-ec7c-2c10-7fae-ca6e764c483a&overridelayout=true
    i have run the program RSAR_RSISOSMAP_REPAIR with the repair indicator set.
    the issue is its not executing successfully.kinldy help me in this.
    the abap errror i m getting while execution of program RSAR_RSISOSMAP_REPAIR is as :
    TSPREFIX for TCD500-1 not found.
    Kindly help me in resolving the above error TSPREFIX for TCD500-1 not found, where TCD500-1 is my development R/3 system .
    Kindly advise.
    thanks & regards ,
    M.S
    Edited by: M.S on Dec 9, 2009 6:41 AM

    Hi,
    1) TCD for testing transactions, especially those that do not use controls
    2)TCD has the following advantages
    3)It has a built in screen simulation for standard screen element
    4) No GUI is required for playback
    5)  It is suitable for load testing
    6) The TCD command has the same limitations as the CATT function of the same name. The flow of data to and from controls, as well as screen input values, are recorded. When the test script runs, the controls are deactivated and the user's actions are simulated by reading the recorded data flows
    For more info on TCD go through the below link
    http://help.sap.com/saphelp_sm32/helpdata/en/83/77cd3b4261706fe10000000a11402f/content.htm
    Regards,
    Marasa.

  • ATS-1 GPIB command

    Hi All,
    I am attempting to set the ATS-1 to GEN-TRACK when in the SINAD mode.  I  have managed tofind and send the SINAD comamnd but I am unable to find in the ATS-1 programming manual  the GPIB command to set to GEN-TRACK when in the SINAD mode.
    Anyhelp with fining this GPIB command will be great.
    Thanks
    C

    This appears to be a continuation of this thread.

  • Running fscript commands directly from Tool code

    Does any one know how to run fscript commands directly from Tool code.
    Better still how to run a script file containing fscript commands
    directly from Tool code
    regards,
    Manish shirke.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Try that :
    RunCommand('fscript < MyScript.fsc');
    Hope this help you,
    At 12:29 02/10/98 -0400, Shirke, Manish wrote:
    Does any one know how to run fscript commands directly from Tool code.
    Better still how to run a script file containing fscript commands
    directly from Tool code
    regards,
    Manish shirke.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    Jean-Baptiste BRIAUD software engineer
    SEMA GROUP france
    16 rue barbes
    92120 montrouge
    mailto:[email protected]
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • I have an Apple MacBook on which Lion 10.7, plus all updates, are successfully installed.  Can you tell me if TechTool Deluxe, normally supplied with Apple here has been now tested and found to run successfully?  I have run the program to check a problem

    I have an Apple MacBook on which Lion 10.7, plus all updates, are successfully installed.
    Can you tell me if TechTool Deluxe, normally supplied with Apple here has been now tested and found to run successfully?
    I have run the program to check a problem that I'm having. The particularly with video, and also volume structure. TEchTool Delux reports a failure for both of these components.
    I am wondering if this is realistic or not, given the start-up screen for TechTool Delux mentions on start-up that it has yet to be tested fully with Lion?
    With thanks, Ron.

    Yes, I understand, however, he Macbook is out of its Applecare, but the TechTool it still on the machine. Does that entitle me to an upgrade in TechTool?
    I suspect not, hoever, seeing I am running Lion, I am not sure at all? If you can answer this question it will help as then Imight be able to solve the problem I'm having.
    Best regards, Ron

  • New to instrument control: attempting control of E5062A with GPIB cable and C program

    Hey everyone!
    I'm lost as where to start controlling an instrument we have in the lab.
    I'll give you my setup:
    It is a VNA, agilent/keysight E5062A.
    Controller is a desktop server running RHEL 5.
    I have a GPIB Cable.
    Program needs to be written into C so that it can be incorporated into the test program we are using.
    I have the programmers manual but it doesn't tell me much on how to start. It does tell me how to set the instrument(E5062A) gpib address. 
    I've also gathered that i will need some sort of I/O library, VISA or SCPI?
    Thank you for taking the time to read this!
    programmers manual link, take a look at chapter two
    http://anlage.umd.edu/Microwave%20Measurements%20for%20Personal%20Web%20Site/E5062A_Programmers_Guid...

    Do you also have a GPIB controller such as NI's USB-GPIB? Acable by itself its worthless. A better choice would probably have been the instrument with a USB or Ethernet connection, but no matter, the communication is the same.
    With the NI controller, you first install the NI-488.2 driver and then NI-VISA. VISA is an api that abstracts the actual physical connection. Code for a GPIB connection will run unmodified of you change to USB or Ethernet. When you install the drivers you are also given the option to install example code that should help you get started.
    An instrument driver for it is available at http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=FE17565E9D861AB5E0340003BA7CCD...
    Read about what an instrument driver is and how to use one at http://www.ni.com/downloads/instrument-drivers/
    Keysight might also have a driver. Check there as well.
    P.S. SCPI is the instrument's programming language. It's built-in as the manual makes clear.

  • Problem with running a program under Labview 8.6

    Hello,
    I am writing you this to ask for your technical support to fix the problem I am facing at our Lab at University of California, Irvine.
    Ms. Vanessa Trujillo has kindly come to our lab a couple of times and tried different things to resolve the issue, but unfortunately the issue is not resolved yet. Here is a summary of the problem:
    We used to use Labview 6.1 for our fatigue testing and data acquisition.
    Our
    program worked just fine under the 6.1 version We recently upgraded our software to Labview 8.6. We have also purchased a new computer that has higher capacity than what your website requires for Labview 8.6. The new computer has Windows Vista We transferred our old program/subprograms from the old computer under Labview
    6.1 to the new computer with labview 8.6. However our program that worked fine with the 6.1 version is not working with the updated version (ver 8.6).
    There
    are 6 errors in the error list. It appears there are six files of my program missing under the new version, even though we transferred all files.
    The software searches for those files but can't find them.
            For example one the box pops up indicates:
            loading:
                        <vlib>:\Daq\lvdaq.dll
            searching:
                        C:\Program Files\National Instrument\LabVIEW 8.6\instr.lib\Agilent34401\public\utility
            I get several message like this. I have to cancel/ignore them all to be able to open the program.
    When we go to VI's under Measurement I/O there is nothing (empty).
    We use a PCI-MIO-16XE-50 for our data acquisition During Labview installation on the new computer, I was asked if I wanted to install the device drivers. I had two options, "Now" or "Later", I picked Now but I didn't have the DVD's/CD's for the device drivers. Therefore I had to select later to complete my software installation Later after Labview 8.6 installation, we installed the device drivers (traditional Ni DAQ and Ni DAQmx) from the two old CD's we had in our lab from a couple of years ago (the CD's were Ni DAQ 7). after installation, the PCI board on the computer was recognized by the device driver. However we still could not run our program under the new version of Labview (same situation and the same messages) I called 1-866-275-6964 on 9/2/08 and talked to Grant (service number:
    1228841). He recommended that I download and install the updated version of device drivers.
    Since I didn't have the DVD/CD for updated device drivers, I contacted Vanessa Trujillo. She gave me the DVD for the updated Ni DAQ (Traditional and mx).
    But
    when I tried to install the updated device drivers I got a message something like "some unsupported filed have been detected,..." so the updated device
    drivers were not installed. It should be noted that up to here we still had the Ni DAQ (traditional and mx) installed on the computer from our old CD's (Ni DAQ 7).
    Vanessa and I talked to Tom at the technical support department. He recommended that we download and install the Beta xx version for Ni DAQ since we were using Windows Vista. Mike put the Beta software on the Ni website/outgoing so I could download and install it. He asked me to uninstall the traditional Ni DAQ that we had on our computer from the older CD's. He
    asked me not to un-install the Ni DAQmx (that we had installed from the old
    CD). I was able to download the Beta software, however I could not install it since I got a similar message that some unsupported files were detected.
    Right now we don't have any version of traditional Ni DAQ installed on the
    computer but the NI DAQmx (from old Ni DAQ 7) is still installed on the computer. Vanessa let me borrow her new Ni DAQ DVD but as I explained I am not able to install the device drivers.
    Vanessa - Did I miss anything?
    Please advise. My cell number is 619-778-2033. I will be at our lab at UC,
    Irvine at 2:00pm (CA/Pacific time). Please call if you have any questions.
    Thank you

    To me, it looks like you are missing some of the drivers and subVI's used in your program.
    Whatever device you are using to measure fatigue or any other device probably came with a driver.
    You need all of these drivers installed on this new computer.
    Also, any subVI's and libraries you use in the program must also be installed on the new computer.
    Whenever you get a message that says you are missing some component (the ones that you said you press 'ignore'),
    see if you can find that library or subVI on the older computer. If so, save it to something so you can transfer them to the new computer. 
    Cory K

  • How to program VC++ with AT-GPIB-TNT

    I am a student in Taiwan and a beginner user in GPIB.
    I am writing a control program in Visual C++(console) on Win98 (by N.I. GPIB-TNT
    board).
    I need to control two devices one is Laser interferometer for measurement,
    another is PZT(piezo actuator).
    When I execute a simple read and write program,
    it always shows " can not read ".
    I am so confused.
    Can you help me to overcome this problem
    and show me a new simple program?!
    Thank you very much.....
    I am so appreciate for your help.
    best regards
    Andrew

    Andrew,
    From the bottom of http://www.ni.com/support/trouble/gpib/max/ibic.htm, there is
    a link to "Solutions to Common Errors." If you follow that link, the next page will
    have an entry for the EABO error code (and several other error codes). These tips
    are the suggestions that our support staff would make to you if you were to speak
    with them. I suggest checking that link out. I have posted this message to the
    newsgroup for the benefit of all readers.
    Regards,
    Rich
    NI
    Thanks for your help.
    After receiving your mail, I try to follow the step.
    But when I use "ibrd", it has the error code as follow
    iberr = EABO
    EABO indicates that an I/O operation has been canceled, usually due to a
    timeout condition after a GPIB read.
    Before reading from the instrument, verify that the GPIB command you are
    sending is understood by your device
    and instructs it to place data in its output buffer.
    device data as follow
    Board: GPIB0 AT-GPIB/TNT
    Device: Name Type
    Value Description
    instrument0 Instrument is not 488.2 compatible pad=2 GPIB
    instrument
    instrument1 Zygo, VMEbus control board pad=3 GPIB
    instrument
    My goal just want to read the measuring data from laser device by
    AT-GBIP/TNT board.
    Need your help again thanks.
    Andrew
    > Andrew,
    >
    > What you may want to do, instead of starting off with straight
    coding, is
    > to see if you can establish communication with the instrument using
    "IBIC," our
    > interactive diagnostic tool for instrument control. This program comes
    > installed with your 488.2 driver.
    >
    > To find out more about this, visit
    > http://www.ni.com/support/trouble/gpib/max/ibic.htm . If you can achieve
    > communication with your instruments with this program, you're well on your
    way.
    > If you cannot, the website has solutions to common errors that one can see
    while
    > using this tool.
    > ps. "threads" refer to the number of processes running at once. For
    example,
    > if you can do two separate math operations simultaneously in your program,
    > that's a multithreaded application.
    > "andrew" on 04/24/2000 03:51:13 AM
    > I am a student in Taiwan and a beginner user in GPIB.
    > I got your e-mail address from your post on N.I. user newsgroups.
    > I am writing a control program in Visual C++(console) on Win98 (by N.I.
    GPIB-TNT
    > board).
    > I need to control two devices one is Laser interferometer for measurement,
    > another is PZT(piezo actuator).
    > When I execute a simple read and write program,
    > it always shows " can not read ".
    > I am so confused.
    > Can you help me to overcome this problem?
    > And show me a new simple program!
    > Thank you very much.....
    >
    > I am so appreciate for your help.
    >
    > best regards
    > Andrew
    >
    > Ps.what is singlethreaded and multithreaded?

Maybe you are looking for

  • Performance with MAX clause

    I have performance issue with this query. the table is huge it has 10M rows. can we achive the same result below by rewriting in some other way? the column px_date, px_type and px_active are indexed ,, composite index SELECT MAX(GP.PX_DATE) PX_DATE,

  • Portal Runtime error when modifying: com.sap.portal.runtime.logon.par

    Hello, We need some help because we get 'Portal Runtime error: iView: N/A Component Name:N/A' error when trying to access portal logon screen. This is what we've done: We've modified com.sap.portal.runtime.logon.par file and we've uploaded it but it

  • Query - Performance - in operator

    Hi All, I apologize for a lengthy posting. I have a problem in performance of a Query. When I use static value in a in-list as given in Query1, it is faster and the Logical I/O is very less. But the values in the list are dynamic, So I tried two Meth

  • Invalid content type for SOAP

    Hi all, We have configured a proxy to soap scenario, where the sender is SAP system and our receiver system is a third party tool. We are testet the webservice and getting success response from SOAP UI. Also the mapping seems to be ok. But if we test

  • Wrap-up time configuration per agent basis (in UCCX)

    There are two agents (X & Y) who are part of the same CSQ, however both agents want to have different Inbound wrap-up time. What I understand in UCCX is, that we configure wrap-up time in CSQ (unlike agent desk settings in UCCE). If its a CSQ based,