PCI-GPIB Card with Visual Basic gives blue screen and re-boots PC

The application makes the "ibsic" call then "ibln" to find devices on the bus. Running the VB program the first time is fine, but if you end the program and re-run a second time, you get a blue screen and the PC reboots when the program reaches the lines that make the first call to the NI-488 functions. If you close out of VB and then restart VB, everything is OK again.
What is wrong?

Hi,
Here's an article that describes the most common blue screen when using VB:
Why Does My Windows 2000 or XP System Crash When I Use Visual Basic to Program GPIB?
Hope this helps
DiegoF

Similar Messages

  • GPIB communication with GPIB (NI PCMCIA-GPIB)card in Visual Basic

    I have a old program in Visual Basic which works fine in windows 98 using the desktop, but using my laptop with windows 2000 on it and NI PCMCIA-GPIB card it fails to communicate and running the program does not recognize the sendIFC command. I am new to VB, so can someone tell me what am I missing here. thanks

    Hello,
    Is the PCMCIA card recognized by the NI-488.2 driver on your laptop? Are you able to communicate from Measurement and Automation with your instrument? What do you mean it does not recognize the sendIFC command? Does Visual Basic give you a runtime or a compile time error? Are you using the latest version of the driver? (Usually 2.1 unless you're on 95 or NT with your card)
    You can try out the Visual Basic language examples in the 488.2 directory under Languages as these will let you know whether or not the driver is installed correctly.
    Let me know if you need more assistance by replying here.
    Scott B.
    Applications Engineer
    National Instruments

  • How do I configure my PCI-GPIB cards so that one is a controller and the other is a device being controlled by the first card

    I have 2 PC's, both fitted with PCI-GPIB cards. One will be the system controller and the other will be a device on the GPIB bus. How do I configure both cards using LabWindows/CVI v7.0 to achieve this ? What commands are used to send and receive the data ?

    Hi Pete,
    For the controller board you don't really need to do anything. By default the GPIB interface is configured as controller.
    The non-controller can be configured in MAX. Right-click on the interface, uncheck the ono-controller box and change the primary address. It is usually a good idea to set these parameters programatically. Use ibpad to set the primary address and ibrsc to release system control.
    For the controller you can use a device descriptor (using ibdev) or a board descriptor (ibfind).
    You can only open a reference to the non-controller board using ibfind (ibfind("gpib0"), for example). This will open a board reference. You cannot use a device reference because that implies that the board is capable of addressing the bus. On
    ly the system controller can.
    Here are some links I found on the web on this subject:
    Passing GPIB Control -- System Controller vs. Controller In Charge
    Tutorial: Programmatic File Transfers over the GPIB
    Example: Using a C Program as a GPIB Non-Controller with LabVIEW as the GPIB Controller
    Example: Serial Polling Between Two Computers (Controller and Non-controller)
    Hope this helps.
    DiegoF
    National Instruments.

  • Examples of using SCXI-1160 Relay Card with Visual Basic 5.0.

    I am starting to develop some VB 5.0 code that interfaces with a PXI/SCXI Chassis. One of the cards that I have to work with is the SCXI-1160.

    At this point in time (5/14/01), I do not believe there are any pre-existing example programs developed in Visual Basic to control an SCXI-1160 switch module.
    However, the process is very easy to explain. You will need to add the NI-SWITCH instrument driver as a DLL reference to your VB program. The DLL file is called niswitch_32.dll and is located at C:\VXIpnp\WinXX\Bin (WinXX = Win95 or WINNT).
    Your program will begin with the niSwitch_init(...) function, and end with the niSwitch_close(...) function. The niSwitch_Connect(...) function can be used to actually make switch connections in your application.

  • How can i output a voltage on PCI-6229 port with visual basic 6 ?

    Hello,
    PCI-6229 card is using DAQmx, that not support VB 6 officially.
    However, members of this forum found out a way to write/read on digital port with vb6 and DAQmx.
    This was working well for me indeed.
    Then, i wanted to output a voltage on AO. I followed the same procedure they used for DI/DO but in vain.
    Apparently, the function DAQmxCreateAOVoltageChan()* causes trouble.
    Using the .exe of the program, i get this error :
    "error -200077 : Requested value is not a supported value for this property."
    Thank you for any ideas that can sort this out.
    * Public Declare Function DAQmxCreateAOVoltageChan Lib "nicaiu.dll" (ByVal TaskHandle As Long, ByVal lines As String, ByVal nameToAssignToLines As String, ByVal min As Single, ByVal max As Single, ByVal units As DAQmxUnits, ByVal customScaleName As String) As Long
    call : DAQmxErrChk DAQmxCreateAOVoltageChan(TaskAnalog, txtChanAnalog.Text, "", Min, Max, DAQmx_Val_Volts, 0)

    Hello,
    What is your buffer size ? The buffer should be 0 or greater than 2. You can get this error if your buffer size is equal to 1.
    Regards,
    Isabelle
    National Instruments France
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • Connecting a HP3497A with a NI PCI GPIB card.

    Hello, I would like to be able to connect the above mentioned HP product with a NI PCI GPIB card. As I have no prior experience with this equipment, I wanted to know what basic important steps I would have to take to achieve this?

    Mbugua,
    On the hardware end you'll need a GPIB cable to connect the card with your instrument. On the software side, you'll need the NI-488.2 driver. Please follow this link to download the proper driver version for your OS. I highly recommend that you use LabVIEW 7.0 to communicate with the instrument. If you prefer text-based programming LabWindows/CVI 7.0 would be a great choice. You can check out www.ni.com/idnet to download a library of functions to even further ease communication with t
    he HP3497A (currently there is a download designed for CVI).
    There are a great deal of manuals available online. Please navigate to www.ni.com and choose "support" to search through them as well as our Knowledge Base.
    Please follow the following procedure of installation:
    1) Install LabVIEW or LabWindows/CVI (or both)
    2) Install NI-488.2 (hardware driver for the PCI-GPIB)
    3) Insert the PCI-GPIB into your computer
    Regards,
    Alan
    Applications Engineer
    National Instruments

  • I have problems with pci-gpib card under windows me, What I need to know what to do in order to fix this problems?

    Hi, I have installed a pci-gpib card in my computer, I have a problem with
    installation, the message of troubleshooting wizard is as follow:
    "One or more missing GPIB interfaces.
    There are several reasons why you might encounter this problem:
    Reason: Your GPIB interface is incorrectly installed.
    Solution: Please verify that your GPIB interface is correctly installed
    and rerun the NI-488.2 Troubleshooting Wizard.
    Reason: You are using a non-Plug-and-Play interface (e.g., AT-GPIB/TNT,
    GPIB-PCII/IIA, GPIB-ENET) and you did not use the Add New Hardware Wizard
    to add the interface to your system properly.
    Solution: Click th
    e Add Hardware button and the Add GPIB Hardware wizard
    will guide you through the process of adding GPIB hardware.
    Reason: For the GPIB-USB and GPIB-1394, the host controller (USB or 1394)
    must be working properly in order to use the GPIB interface.
    Solution: Click on the System Details button for details about the USB and
    1394 host controllers.
    Reason: For the PCMCIA-GPIB and PCMCIA-GPIB+, the PCMCIA host controller
    must be working properly in order to use the GPIB interface.
    Solution: Use the Windows Device Manager to verify that your PCMCIA host
    controller is functioning correctly. Start the control panel by selecting
    "Start>>Settings>>Control Panel", open the System icon and select the
    Device Manager page. If you select "View devices by type", you can look at
    the PCMCIA socket properties to ensure it is correctly enabled."
    And on system details the message is the next:
    "USB Driver type: USB universal host controller"
    "This version of windows does not su
    pport IEEE 1394."
    I am using Windows Me, so i want to know what i need to do to fix this
    problems.
    Best regards.

    If you have a PCI-GPIB card, you needn't worry about the USB port or whether or not Windows ME supports 1394. All you need in NI-488.2 version 1.70 from National Instruments. Install this driver and then insert your card. Windows should detect the card and find the proper driver.
    If this did not happen in the proper sequence, look in the device manager and see if the card was installed as an "other device". If this happens, remove the card in the device manager and have windows redetect it. If this is not a solution, you may consider the ask an engineer page at www.ni.com/ask. Provide as many details as possible.

  • Computer won't boot with PCI-GPIB card installed

    I'm running a windows XP system with Labview 7.1 installed. I have installed the GPIB drivers, but when I insert my PCI-GPIB card, the computer will not boot(it freezes before the POST). I'm running a Shuttle "MK40VN" KM400 Chipset Motherboard.

    Well, nevermind, I just verified that the card is in fact fried.

  • Can you tell me how to measure audio signal frequency in measurement studio with visual basic 6.0?

    I'd like to measure two differential input signal(I.e. A+ and A-),below is two test projects,
    1.connect A+/A- to PCI 6052E card's ACH0/ACH8 ,and refer to GND for testing
    2.connect respectively A+/A- to PCI 6052E card's ACH0/ACH8 for testing
    Could you tell me the details of the second project?and give me a illustration in measurement studio with visual basic 6. 0 about the second?
    In addition,I would like to measure the audio signal frequency,could you give me a illustration in measurement studio with visual basic 6.0?
    Wait for your reply!

    Dear kelven,
    Thank you for contacting National Instruments.
    To address your question, there are Analog Input shipping examples that demonstrate how to measure an analog input differentially, as you specify in (2).
    As for measuring the audio signal frequency, you may want to check out the following KnowledgeBase. The link is:
    http://digital.ni.com/public.nsf/websearch/4b08380530d72d3b86256340004c3005
    Let me know if you have any further questions or if this does not resolve your issue.
    Thanks again and have a great day!
    Chad AE
    Applications Engineer - National Instruments

  • PC-GPIB card with 0.8.2 drivers in Linux

    I have a PCI-GPIB card and I am trying to install it in a computer with Suse 8.0. I run the INSTALL script and the driver compiles but it doesn't detect the card and when it is called it gives the following errors:
    Loading module directly with 'insmod /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o'...
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol request_dma_Rsmp_43435480
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol free_irq_Rsmp_f20dabd8
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol __request_region_Rsmp_1a1a4f09
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol add_timer_Rsmp_a19eacf8
    /lib/modules/2.4.18-4GB/kerne
    l/drivers/char/nigpib.o: unresolved symbol del_timer_Rsmp_fc62f16d
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol iounmap_Rsmp_5fb196d4
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol __generic_copy_to_user_Rsmp_d523fdd3
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol pci_read_config_word_Rsmp_013f4ee4
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol pci_set_master_Rsmp_87a01918
    /lib/modules/2.4.18-4GB/kernel/drivers/char/nigpib.o: unresolved symbol unregister_chrdev_Rsmp_c192d491
    ....+ more lines like this.
    Any suggestions?
    Juan

    Hello-
    These actually look like linking errors. It appears that the compiler is not linking in the proper libraries when linking the program to create the driver. google.com or SUSE could probably give more help about how to overcome these errors. Try doing a search for +pci_read_config_word +"unresolved symbol" on google.com. There is probably a library that the compiler should be linking, but it is not configured properly.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Difference between PCI GPIB card 778-032 and 777158-04

    Hi,
    A supplier is proposing me a software with a PCI GPIB card 777158-04.
    As I already have a PCI GPIB card (reference 778-032), I'd like to know if this one would be suitable. The supplier can't give any guarantee as he hadn't tested this card.
    Would could help me finding the difference between these 2 GPIB cards?
    Thanks,
    Sylvain

    I'm not seeing anything for 778-032.  Is it an NI card?
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Strange axbridge issue with Visual Basic

    I started having a very strange problem with my axbridge wrapped bean around the time I switched to JDK 1.5. Problem is, I can't seem to get rid of it by rolling back to earlier versions.
    Here's what happens: I create a very simple non-visual bean:
    package pack;
    public class Bean1 {
    public Bean1()
    System.out.println("Constructor");
    public boolean someMethod ()
    System.out.println("1");
    return false;
    I then create Bean1.dll using the packager.exe provided with the JDK, and register it as part of the packaging process.
    Then, I go into Visual Basic 6 and enter this code:
    Private Sub Command1_Click()
    Dim xx As Object
    xx = CreateObject("Bean1.Bean.1")
    End Sub
    On the CreateObject call, Visual Basic gives me the error "Object variable or With block variable not set", which isn't helpful.
    In the Java console with level 5 tracing turned on, I see this:
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@17ba38f, refcount=1
    basic: Registered modality listener
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter@9ffe3f
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    basic: Stopping applet ...
    basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@9ffe3f
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@17ba38f, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@17ba38f
    basic: Current classloader cache size: 1
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Quiting applet ...
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at sun.plugin.AppletViewer.loadJarFiles(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    basic: Modality pushed
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    The only thing I've found in the bug database that seems even remotely related to this is bug 6391104, which is related to plugins somehow.
    I do not understand why applets are involved in this at all.
    When I try to instantiate the COM object from a C++ program, everything works fine. My problem only seems to occur with Visual Basic (version 6, not .NET).
    This problem seems so fundamental that it seems impossible that no one else has run into it, but there 's nothing about it on any forum or buglist that I've seen. So, I figured there must be something very obscure wrong with my setup. However, I tried installing this on a brand new machine using my trivial case, and I still have the problem. I'm really at my wits' end. Anyone have any ideas?

    You definately want to go to CR 2008. I'd recommed that you call 866-681-3435 and ask about the possibility of getting a 30 day eval.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Symbolic name for PCI-GPIB card

    I am using Agilent's ADS2002 to interact with an HP 8722D VNA via a PCI-GPIB card. I need a symbolic name for the card in order to write or read from the instrument; I've tried the suggested GPIB0 and GPIB1, as well as a few other guesses. Nothing on the card looks like a card number or symbolic name. How can I determine what the symbolic name should be? Thanks.

    Hello-
    Be sure that the GPIB board passes diagnostics. Also, try doing a Scan for Instruments in MAX. It may be that the board is not yet recognized.
    Also, consider using a programming language other than ADS. It may be easier for future upgrades to use a language like C or LabVIEW.
    Randy Solomonson
    Application Engineer
    National Instruments

  • PCI-GPIB card not found in linux 2.4.22-1.2115.nptl Fedora Core 1

    I am trying to install the nigpib driver on a Fedora Core 1 installation of linux (kernel 2.4.22-1.2115.nptl.) The installation script reports the following errors:
    Your kernel appears to be configured properly to build NI-GPIB for Linux.
    Do you want to proceed? [yn] y
    make: `nigpib.o' is up to date.
    Copied nigpib.o driver to modules directory /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/char
    Devices created.
    Probing for PCI-GPIB.
    No PCI-GPIB boards detected.
    Do you have an AT-GPIB/TNT board installed? [ny] n
    /etc/modules.conf is up to date.
    Warning: loading /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/char/nigpib.o will taint the kernel: no license
    See http://www.tux.org/lkm
    l/#export-tainted for information about tainted modules
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/char/nigpib.o: init_module: Device or resource busy
    Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
    You may find more information in syslog or the output from dmesg
    /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/char/nigpib.o: insmod /lib/modules/2.4.22-1.2115.nptl/kernel/drivers/char/nigpib.o failed
    I have moved the PCI-GPIB card to the first PCI slot with no differences in the error messages I recieve. When I run dmesg I recieve the following information:
    unable to get major 31 for gpib
    unable to get major 31 for gpib
    unable to get major 31 for gpib
    unable to get major 31 for gpib
    unable to get major 31 for gpib
    Any help would be appreciated.

    I have this same exact problem.  I'd rather not disable USB 2.0, because I use it to transfer files to my MP3 player when in Windows.
    I find it hard to "blame the BIOS" when it was working fine under kernel 2.6.7.  Anyone know of another solution?
    EDIT: Well it isn't the same "exact" problem.  When I first boot into Arch, the usb mouse and keyboard don't work.  I press and hold the power button on the machine to restart.  The second time I boot into Arch, the usb devices do work.  If I do a standard soft reboot and go back into Arch, the usb devices again don't work.  I guess this is a hotplugging issue, but enabling it in rc.conf does nothing.  The only permanent solution I can find is disabling USB 2.0 in the BIOS.

  • PCI-GPIB compatible with Genrad 1687-B Megahertz LC Digibridge?

    I am trying to use a Genrad 1687-B Megahertz LC Digibridge with a recently purchased NI PCI-GPIB card.
    The Digibridge works normally from the front panel. The GPIB card and the cable work normally with another GPIB instrument.
    However, the "Measurement and Automation Explorer" does not detect the instrument. When I "Scan for Instruments", the pretty animation displays for a while and then the scan fails because it did not find any instruments.
    Is there possibly an incompatability between this instrument and the newer GPIB specification? The instrument documentation mentions IEEE 488-1978 (not 488.1 or 488.2).

    I doubt that your instrument is incompatible with the newer GPIB specification. Do you get any indication of an error on the instrument following a Scan for Instruments? Do you know what the instrument's GPIB address is? It must be a different address than the GPIB controller. The address of the GPIB controller is probably 0.

Maybe you are looking for