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?

Similar Messages

  • Bluescreen on Win NT with AT/GPIB TNT!

    I have a AT/GPIB TNT board and 488.2 version 1.60 software. The computer crashes randomly and the "blue screen" on NT always appears, with this line included: IRQL_NOT_LESS_OR_EQUAL ** -gpibclsd.sys
    and sometimes
    IRQL_NOT_LESS_OR_EQUAL ** -afd.sys
    I´ve tried several things but none work except for when I run it without network connection.
    Anyone have a good answer??
    /Sohrab, Ericsson Microwave Systems

    I have heard of this before but haven't been able to reproduce the error. If it works without a network connection/ you might want to try a different network interface card.
    Just so you have the latest updates...
    there's a patch for LabWindows/CVI 5.5, http://digital.ni.com/softlib.nsf/websearch/090082BECD7AC973862568EA005704EE?OpenDocument&node=132070_US
    The latest VISA version, 2.6 can be downloaded from, ni.com > Support > Product Reference > Drivers and Updates > Current Versions, and for the latest Instrument Drivers refer, http://zone.ni.com/idnet97.nsf/browse/

  • How to program Listener with arguments

    Hi, I want to program a generic Listener to respond to different calling programs. How do I pass an argument to the Listener?
    I have
    public class myNavigationBarListener implements NavigationBarButtonClickListener{}
    When I added
    public class myNavigationBarListener (int i)implements NavigationBarButtonClickListener{}
    it won't compile, thanks in advance.

    I have the following class that implements an action listener.
    public class ComboBoxDefaultEditor extends JComboBox implements TableCellEditor, ActionListener, JComboBox.KeySelectionManager {
    Then in the constructor:
    public ComboBoxDefaultEditor(RowSetInfo ComboRowSet, String FieldName) {
    Hope this helps!
    Linda
    null

  • How to program favorites with xr2 v3-p remote and HD adapter?

    I just connected a HD adapter to my Sony Bravia HD TV.  A xr2 v3-p remote was included, but the favorites button doesn't seem to work. 

    I don't believe Favorites are available on HD adapters. You'd need a full set top box. The Favorites are stored in the box, not in the remote. Can you post the box model number?

  • How to program with different device by NI-VISA?

    Dear NIer:
    firstly I will list my enviroment.
    SW:Labwindows/cvi 5.5/VISA/MAX.
    HW:HP pc/pci-gpib/GPIB-VXI/DD42916.
    QUESTION:
    1 MAX always think GPIB-VXI/C and DD42916 as a GPIB device.Why don't they think these devices listed above as a VXI device?
    2 Since MAX think DDC42916 as a GPIB device, and DDC42916 supports word serial communication, How can I program with this message-based device by NI-VISA?
    I searched for appropriate function in NI-VISA ref manual,but I failed.VXI WSPRotocal COMMand is not suitable here evidently.
    3 Then how can I program the other device like register-based device and memory-based device under this circumstance?
    4 if slot0 controller changed from GPIB/VXI to 1394/VXI
    ,then how to program?

    east-
    I see this question was answered (and then discussed again in depth) in the VISA forum. I'm posting these links in case anyone looks here for an answer.
    -Scot

  • AT-GPIB/TNT board driver with linux kernel 2.2.16

    I have installed AT-GPIB/TNT board to my linux computer. I downloaded the driver 0.5.1 from ni web site, installed with no problem.
    First I used Window98 OS to test my hardware setup. My GPIB board is connect HP E3632A DC Power supply. I can use window version's ibic to run ibfind, ibdev, ibwrt, ibrd. Then I booted to linux, load the drive. But when I run ibwrt, give "EBUS" error. I used small test program to verify that I would get the same error. But I couldn't get it from Windows.
    Where is my problem? inside the driver? or linux driver setup?
    Thank you in advance
    Allyson

    Version 0.6 of the BETA driver is available at:
    http://www.ni.com/linux
    See if this new release gives you better performance
    Ryan Mosley

  • Dual channel receiver works with NI-PC2/driver v2.6 but not NI-GPIB/TNT(PNP)/driver v2.7.2

    I posted a message earlier but didn't word it correctly. We have a Microdyne 2800 receiver that we would like to set up remotely via 488. The receiver works fine in DOS using an older NI-PC2 card with the v2.6 drivers that came with it. However, when we switch to the newer PC-GPIB/TNT(PNP) 488 card with the latest DOS drivers, v2.7.2, it doesn't respond. The receiver recognizes that it received something via the bus but does nothing (it has a little red light that turns on when in remote mode). What prompted us to test it in DOS was that the same thing was happening under WinNT 4.0 using the PNP card and the v1.60 drivers.
    In ibic, I'm using the exact same
    sequence of commands to setup the card (ibdev, ibclr, and then ibln) and then I use the ibwrt to write the setup string to it. Are there any differences in the cards and/or drivers that I should be aware of?
    Thanks for any help!

    Dear Sr.,
    This kind of troubleshooting can be extensive so I recommend you to call us in Technical Support to address your issue, you can find the information at:
    http://sine.ni.com/apps/we/niae_asc.main
    Some of the common questions I'd ask you about this will be:
    1. Has this board work before?
    2. Have you tried it in another computer?
    3. When installing the board, did you ran the configuration utility and did the query and scan for instruments? (Start > Programs > National Instruments > NI-488.2 > Explore GPIB.... click F5 to Refresh then Select your board from "Devices and Interfaces" and click "Scan for Instruments" then when it finds your instrument click "Communicate with Instrument" and then click "Query")
    4. Have you tried this IBIC procedure? http://www.ni.com/su
    pport/gpib/max/ibic.htm
    5. Take a look at this link, it may be of help: http://www.ni.com/support/gpib/dos/attntpnp/default.htm
    6. What type of termination character does your instrument uses?
    If after looking at this questions and links your board still is not working please give us a call, we may need to try different workarounds or need more information from your system. As far as the information you wrote your board should work fine. Also, I can assume from your info that you have a 488.2 compatible instrument, is this correct?
    Regards,
    Nestor Sanchez
    Applications Engineering
    National Instruments
    Nestor
    National Instruments

  • How to program a midi foot controller on Mainstage? Does anyone knows how to program the foot controller with exclusive solo channel in order not to dance "tip tap" while from clean guitar I go to crunch or solo? How to do this programming on Mainstage?

    How to program a midi foot controller on Mainstage? Does anyone knows how to program the foot controller with exclusive solo channel in order not to dance "tip tap" while from clean guitar I go to crunch or solo? How to do this programming on Mainstage?
    I basically managed to learn how to invert parameters which allows me to be as default in the clean guitar channel and if I switch the first button on the midi foot controller I switch to crunch, but at this point I tryied so hard to programm the second and third button to switch, only through a button in one step, to a third channel for distorsion or a 4th channel for solo guitar but I couldn't figured out how this work can be done!
    I would appreciate if anyone could help or share this experience with others who are experiencing the same problem.
    Cheers.
    F.

    I cannot seem to get mainstage to recognize my FCB either. I am using IFCB. Anyone figure this out?
    Thanks,
    Eric

  • I have LR 5.  When I'm in the book module and select the option to "Send Book to Blurb" i get an error message saying "The file does not have a program associated with it...."  How do I fix this?

    I have LR 5.  When I'm in the book module and select the option to "Send Book to Blurb" i get an error message saying "The file does not have a program associated with it for performing this action.  Please install a program, or if one is already installed, create an association in the Default Programs control panel."
    How do I fix this?

    Try the following user tip:
    "There is a problem with this Windows Installer package ..." error messages when installing iTunes for Windows

  • How to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and a novice in interfacing skill ..so plzzzzz explain me in a litle detail

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Sir
    We were able to solve that problem...but now could you advice as to which DC power supply we should use (preferably avalable in India) so that it can be controlled by Labview (through a gpib/rs232/any other port) to give a square wave of desired frequency/other parameters.
    Regards
    Shivam

  • How to use labview with gpib to connect with Agilent PNA E8362B ?

    how to use labview with gpib to connect with Agilent PNA E8362B ?i am newbie ..just started to work on labview about a fortnite bck and +i am a novice in interfacing(networking... jst know tidbits) skill ..so plzzzzz explain me in a litle detail

    Duplicate Post.

  • How to download a module pool program along with its screens ,includes etc

    Hello Experts,
    How can I  download a module pool program along with its screens ,includes etc to my presentatio0n server and then upload it back when needed.
    When  I searched , I got a program which is satisfying my partial requirement because it only downloads
    the module pool program first(ie.just the main program)  and then the include needs to be downloaded to the system separately.Screen and statuses wont be downloaded.
    Is there a way to download all the objects for the corresponding program store in some format and then upload it back when required.
    Please Help.

    Hello,
    Go to the layout of the modulepool to be uploaded or downloaded. choose the menu path utilities->upload/download.
    The same file which is downloaded can be used to upload
    1.the screen flow logic and
    2.layout
    Using this you can upload as well as download
    Cheers,
    Vasanth

  • Running two VI's at once, with shared GPIB Resource - How to...

    ...keep mouse pointer within the confines of one VI's front panel?
    Hello, a LV newbie here.  Here's my situation.
    I have a "Main" LV program that uses a GPIB-controlled DMM (Keithley 2700) to take a scan of current measurements.   However, before taking the current measurements, the source voltage must first be calibrated.  So I came-up with a quick program to continuously read the voltage while you're adjusting the potentiometer.  It uses the same DMM.  I have a Boolean indicator on the front panel of this small program that indicates that the DMM is busy, and the Main Program "Current Scan" should not be attemped.  It is impractical to stop either program -- they both run continuously and are open side-by-side.
    ***So I try to wait for my "Meter Busy" indicator to go out on the small program before pressing the "Current Scan" button on the main program.***
    But, being human, sometimes I jump-the-gun and press the "Current Scan" button on the main program before the voltage-read program has relinquished control.  The resulting conflict is not good.  
    Is there a way to keep the mouse pointer confined to within the bounds of the small program so long as the "Meter Busy" light is on?  I already have the right conditions and timing.   I just need to tie-into that Boolean wire somehow and eliminate human error.  That would completely solve my problem.
    Thanks in advance!

    Use more cheese...
    Why not make the calibration VI a subVI of the main program. It can run in parallel and have both panels open if you wish. Use semaphores to limit access to the shared resource.
    Or put both functions into one VI. Use a tab control to display the voltage calibration until it is valid then switch to the current measurements. If the user cannot see both, then he can't push the wrong button.
    Or make the calibration VI a pop-up subVI. If it is made modal you cannot get to the Main VI until you complete the pop-up.
    Use a single VI to do the actual communications with the instrument. Set it up so that once one VI has started an operation (such as the calibration), other VIs cannot use the instrument until the operation is complete. See Ben's posts on Action Engines for ideas about implementation.
    Lynn

  • Help.  I was trying to delete a trial copy of Adobe XI and I think it deleted everything.  Everytime I try to open a document in PDF it says there are no programs associated with it.  We have a yearly subscription, how to I get it to download again??

    Help. I was trying to delete a trial copy of Adobe XI and I think it deleted everything. Everytime I try to open a document in PDF it says there are no programs associated with it. We have a yearly subscription, how to I get it to download again??

    Hi Maria ecp,
    Since you have bought yearly subscription then please reinstall Acrobat and you would be able to open the pdfs again.
    Regards,
    Rave

  • How to view what are all programs maped with the event....

    I am new to this events concept - could you please say
    in SM64 we can give Event....
    <b>How to view what are all programs maped with the event..</b>
    Thanks in advance.

    Hi Sam,
    See these links:
    How-to trigger a process chain using ABAP?
    Re: scheduling process chain 3 specific times a day
    NOTE: If you want to trigger the process chain from R/3, there are many examples in this forum. However, since the search function is not working now, I suggest you look at OSS Note 135637. This will show you how to do it also.
    Hope this helps.
    concerning to sm64 ..
    Triggering events manually ...
    Events let you start background jobs when particular changes in the R/3 System take place. When an event occurs, the background processing system starts all jobs that were scheduled to wait for that event.
    example : JOB_OPEN to create a background job..
    When scheduling a background job, you can specify it to start "after event".
    If you do so, you'll have to create an event in SM62.
    If a job is scheduled after event event and you trigger the event with SM64, the job will start.
    Events can be raised by external systems in SAP by sending a command to a SAP application server. You can also raise event in any program using function mosule BP_EVENT_RAISE.
    Reward if helpful.
    Regards,
    Harini.S

Maybe you are looking for

  • Cover Flow Mix Up and Album Song Mix Up Question

    I just got an 80gb ipod and have all my songs on it now. i am just about finished with getting all of the album covers that i didnt have into my itunes now. i didnt get any of the album covers from itunes, i just did a search for all of em in google.

  • HP DesignJet 500 and OS 10.4.6

    A few weeks ago, I upgraded from Mac OS 10.3 to OS 10.4.6 on an iMac G4. Ever since my upgrade, I have not been able to print custom sizes to my HP DesignJet 500+HPGL2. (FWIW, the printer is connectd with a USB cable, and the size I'm trying to print

  • External Hard Drives & Online Storage for Photographers

    I would like to purchase new external hard drives and am also looking into online storage websites. I am wondering if some external hard drives are better than others when it comes to storing photos. And would also like recommendation for online stor

  • Validations for FB70, FB75 and FB60, MIRO without Tax Codes

    Hi, can u help on the below issue. I want to restrict the users while posting(FB70, FB75 and FB60, MIRO) without tax codes, please provide Validations for the same. Block AR/AP for postings without tax code - AR is FB70 and FB75 - AP is FB 60 and MIR

  • What is the Returns flow in SAP?

    I want to know the flow in SAP SD/MM modules in details as how the goods are returned from Store and how are received at DC and then how these are stored in DC (Storage Locations, Movement Types, Reason Codes etc). Does anyone have any information on