GPIB with visualfox

is posible to use visualfox to acquire measurement using gpib

I do it with rs232 on an agilent 34401 and it is so easy to control and acquire a degree but I have problems with GPIB

diazomar2004 wrote:

actually I'm trying to use CWINSTR. OCX or CWVISA. OCX controls a gpib card and visul fox agree to them.   the problem is I don't have a lot of them and I use a demo

We cannot help with that. BUY the software.

Tags: NI Hardware

Similar Questions

  • Acquisition of data GPIB with oscilloscope TDS 210 tetronix should change to LeCroy wavejet oscilloscope 324

    Hello

    I used Tetronix TDS210 oscilloscope to the data of the Squire. But I need to change the oscilloscope LeCroy Wavejet 324 now. The program is not even read the signal now. What are the things I need to change?

    Thank you

    Quite frankly, I suggest a complete rewrite. You use stacked sequence structures, GPIB functions instead of VISA, a large number of locals, the hidden wires and structures, in a first stage. You should know that the command set varies from one provider to another and often from instrument to instrument. If you had used the instrument to the extent of tek driver, you could perhaps have an easier time to replace common functions. As it is, if you want to use the existing code, you need to replace each of your Scriptures GPIB hardcoded with writing appropriate for the LeCroy.

    As a side note, this is the kind of situation where IVI drivers would have made a big difference. If the IVI drivers exist for the two instruments, and if you used class drivers, you would have not had to change anything.

  • PMC-GPIB with NOR-488 DDK very slow when sending the commands-GPIB

    Hello

    I use a PMC-GPIB Board and the NOR-488DDK allows to develop a GPIB Interface with VxWorks. Already, it works correctly, but sending a GPIB command takes about 100 ms, which is very slow.

    Are there opportunities to speed up data transfer?

    Hello again,

    I found a solution to my problem! I realized that the command execution is related to the vxWorks system clock! Of course, this is done in the DDK (driver development kit).

    The system clock is easily adjustable upper and then orders are shipped quickly.

    Thanks for your time

    Good day

    Cassidian

  • Connection ethernet or GPIB with Keithley 2612

    Hallo

    Here's my situation:

    I'm relatively new to LabVIEW programming and want to install a configuration of measurement with LabVIEW and a SMU double Keithley 2612.

    If I m work myself through Labview Beginners Guides and how to connect a measuring device with the first simple LabVIEW program.

    Since I Don t own a GPIB-USB adapter for the moment, I was thinking of using Ethernet for the EMS connection that gets ist own IP address. The connection to the PC works and SMU SMU ethernet can be remote controlled.

    Here's my problem:

    I can´t find (usable) guides for the installation of LabView via Ethernet.

    My 500 pages book 'Introduction to LabVIEW' (as of 2009) doesn´t have even a hint for an ethernet connection, while the GPIB, RS232 and CAN are covered pretty well.

    Here's my question:

    Should I continue to try to get LabVIEW working on Ethernet, or would it be better to buy a new adapter USB GPIB.

    Does anyone know good Howto for creating Ethernet connections?

    Should I just the bad 'Introduction to Labview?

    The use of Ethernet has disadvantages compared to the GPIB-USB?

    I'm happy to answer additional questions.

    Thank you.

    Download the Labview driver for the series of 26xxA from Keithley web site.

    For a Visa resource string use something of the form: "tcpip::aaa.bbb .ccc. ddd::instr" where aaa.bbb.ccc.ddd is the ip address of the instrument that you can get through the façade or run MAX and auto-le discover.

    When you finally get a USB-GPIB converter all you have to do is change the resource in the form of gpib string: GPIB::XX:instr «»

  • Replaced GPIB with VISA now in data loss

    Hello everyone, I'm using LV 2010 to acquire data to a parser of impedance HP 4192 A using VISA calls. The Labview driver provided is quite old and does not communicate with GPIB. I converted the measurement VI to VISA and, it seems, work very well. The problem I have is when performing sequential readings sometimes the parser modifies scales and there is a slight delay. During this time, the acquired data will read 0. I suppose my loop could check for a value of 0, and to generate a break but it makes more sense to set the measure VI himself. Here are my files, any ideas on how to solve this problem? Thank you.

    I just wanted to say after playing for a few hours I solved the problem by adding a node property VISA and the timeout value changed to 5000. See work attached VI.

  • Problem to run Agilent GPIB with NI-VISA card: recurring at Agilent VISA 32 report of open conflict that all things set correctly...

    Hi developers OR,.

    I have a recurring problem to correct my installation using a labview and Agilent GPIB card.

    Of course, the well-known configuration tips are generally defined:

    -Agilent VISA a VISA secondary (by-side mode)

    -the passport for tulip is enabled in NOR-MAX

    -OR-488 support active in Agilent librabry suite 16.1

    I uninstalled and reinstalled any component twice, but still get the same error message when I want to talk to a Keithley 2400 EMS:

    -Firstly, the agilent GPIB interface is correctly recognized expert Agilent connection and NOR-MAX

    -Then the instrument of 2400 keitjley initially works correctly in Agilent connection Expert and NOR-MAX

    BUT: when I try to send a command to the device (whether through the wizard or VISA using the Labview instrument driver), the tool returns an error (error "Application incomplete" punch followed immediately by a second "Invalid while in the local" error code)

    At the same time, the Manager (32 open report VISA) conflict in expert Agilent connection says "NI-VISA has returned an error. "There is a conflict of interface between NI-VISA and VISA Agilent". He suggested that the conflict occurs when different interfaces receive the same number of interface in the two VISA.

    Therefore, aware of the conflict that can occurs in a side-by-side installation, I tried to change the ID of Interface CLCL's Board of Directors in the Agilent connection Expert (from gpib0 to gpib9) and restart, but it did not help.

    So can you help me solve this recurring problem?

    Is it necessary to also change the VISA interface ID, or address of the GPIB Board Agilent GPIB in connection Expert? Wouldn't be the same address (9 for example)?

    I really do not understand.

    Sorry for this new message on the configuration of this topics, but I found no useful advice in the forums.

    See you soon,.

    Yoyo87.

    Finally, I got my system running after several tests, although I couldn't use NI-VISA as first VISA (allowing the tulip passport) with agilent VISA (permit for programs OR-488) at the same time.

    I uninstalled it all components of NOR and the agilent and re - install in the correct order (OR first, followed by agilent): nothing has changed.

    I check for updates of agilent and NOR and use several different versions of VISA at the same time: nothing has changed and I still communication errors when you try to send the order through NI-VISA Interactive control or labview (although it worked well by expert agilent of connection).

    I don't really know why, but I solved my problem by installing Agilent VISA primary visa. In this way, even if I do not see the Council of Agilent in NOR-MAX, I can always send control of GPIB instruments by labview using their VISA address or aliases defined in connection expert Agilent...

    I am always interested to understand why I was not able to run the two VISAs on my system with agiulent only one card PCI GPIB... so if one of you sees a clear reason for this...

    Thanks in any case, even if I don't have a lot of response on this topic...

    Yoyo87

  • How to use traditional nidaq with a USB-GPIB installation

    Hello

    When I tried to install the interface GPIB-USB on my computer it tells me I must uninstall nidaq traditional, but I need nidaq traditional also.

    Is it possible to have both installed and functional? Is there a work around?

    Help, please... Thank you

    Darryl Huggins

    Thank you for your response Dennis,

    When I went back to look at the message I think he wanted me to uninstall a driver inherited NOR-488, so I advanced and uninstalled.

    But he said traditional legacy of NOR-DAQ. I was unable to see my card GPIB with Max is why I wanted to install the USB-GPIB.

    After installing now I am able to see the card GPIB and USB-GPIB interface. Must of had a bad driver, I suppose?

    So now I will run another test to make sure that NEITHER-traditional DAQ still works also. But so far so good.

    Thanks, Darryl

  • GPIB error with several bee feeds

    I use the code of this package of vi:

    http://sine.NI.com/apps/UTF8/niid_web_display.download_page?p_id_guid=E3B19B3E9635659CE034080020E748...

    and I tried to connect two power supplies to GPIB (with one off the power supplies).  When I run the simple Bertan 225 I get the following error code (see attachment as well): 1073676294 and the tension does not read correctly.

    When it is the only bee feeds is connected to the GPIB I don't get an error and the voltage is read correctly.

    Thanks for any help,

    Kevin

    You should not use GPIB with 1 of the 2 instruments turned off. The specification requires that two-thirds of the devices to power. Turn it on and see if the warning (NOT error) disappears.

  • Blue screen (BSOD) and communicate with GPIB instruments

    I have a communication problem with a Pressuregenerator of PCS400 of Mory via NI-VISA. My simple application sends requests to the instrument and reads returned responses. These actions are performed in a while loop until you press the stop button on the front. The VISA-resource is initialized before the while loop and closed after leaving the loop.
    Now the problem is that the computer will work in a blue screen with the message "NMI: check / memory parity error parity." This blue screen can be caused by switching between the programwindow and another window (for example the file Explorer) - I know it sounds strange. Then the blue screen appears after about 20 seconds. The computer worked stable in the daily work with windows.

    I have already tried several things
    -Wait a while (up to 30 ms) after writing and reading of VISA-online blue screen
    -Communicate with the Agilent 34401 multimeter with the same program (but other requests of course)-online no crash!
    -Test memory on system for about 45 hours with memtest86 + -online no found error
    -Stresstest with Prime95 (product 100% of CPU load) for about 1.5 hours on windows => no crash

    Request sended:
    _PCS4\sREADING? \n
    _PCS4\sERR? \n
    _PCS4\sSTAT? \n
    _PCS4\sERR? \n

    The system is configured as follows:
    -Windows XP Professional SP3
    -LabVIEW 8.5 FDS
    -NI-VISA, NI-VISA run-time V4.2 V4.2
    OR-488. 2 V2.52
    -Adapt PCI-GPIB with 3 x Mory PCS400 Pressuregenerator (1.3 to addresses), Agilent E3641A (address 5) and Agilent 34401 connected (6 addresses)
    -Acquisition of data PCI-6052E card
    -Some RS232 (PCI) expansion cards

    Do you have any ideas of how this strange problem?

    Thank you.


  • Newport ESP300 GPIB communication stops after query

    Hello

    I'm trying to control a Newport ESP300 via GPIB controller with labview and I encountered a problem that I saw in the forums.  I can tell the controller to move to different positions, to wait, to change speeds, etc., without error.  However, when I ask the device, it stops all communications with Labview.

    Example of

    1 MB //axis 1 on

    1pa2 //move axis 1 absolute in position 2

    wait for stop 1WS

    1AP?     absolute position of query

    2 response //ESP300

    1pa3 //NOTHING ARRIVES

    1MF NOTHING HAPPENS

    GPIB READ.vi a mode = 2 (to end the LF character) to terminate the operation of reading as specified by newport, but the communication stops everytime I interrogate the device.

    I tried to do what this last newport mentions, without effect.  FTP://download.Newport.com/MotionControl/archive/motion%20Controllers/ESP300/software/ESP300%20GPIB%...

    I should mention that I couldn't disable autopolling (the box is grayed out).  Although I don't think that's the problem.  I also tried to replace the GPIB READ.vi with code on VISAS, but this has no effect.

    Sending of the same series of commands through NOR-MAX does not show this strange behavior.  I tried to ask about it in Newport, but they were not able to help.  Anyone has any advice on how to reliably read/write by GPIB with the ESP300 controller?

    Thank you.

    I found the problem.  It turns out that when you use the GPIB READ.vi, I had put the number of bytes to a value that was too small.  Thus, reading finished early, leaving the rest of the message in the buffer.  I don't know exactly why it resulted in a 'freeze' of communications, but he did.  Increase the number of bytes to 255 has solved the problem.

  • Access ni4882.dll with Qt and MinGW

    I have to control some electrical loads and power supplies by GPIB. We use Qt 4.7.4 with MinGW 4.4 (32-bit) on Windows 7 64 bit.

    The drivers package GPIB-NI-488. 2 package 3.0.2 for Windows 7 64 bit is installed. GPIB Troubleshooting Utility tool displays "pass" and the application of the Measurement & Automation can connect to it and talk to an intrument. So far so good.

    Now, I want to write an application can use the NI4882.dll (3.0.0.49153). Unfortunately, there are just objects for compilers files Microsoft and Borland and no lib file.

    Therefore, generate us a def of the ni4882.dll file with:

    pexports ni4882.h ni4882.dll h > ni4882.def

    -ni4882.def-

    LIBRARY NI4882.dll
    EXPORTS
    ? compareVersion@nGPIBAPI_NI4882@@YGXABVtSSVersion@@0AAJPBD@Z
    ? getCurrentVersion@nGPIBAPI_NI4882@@YG? AVtSSVersion@@AAJ@Z
    ? getOldestCompatibleVersion@nGPIBAPI_NI4882@@YG? AVtSSVersion@@AAJ@Z
    AllSpoll@12
    DevClear@8
    DevClearList@8
    ...

    --

    Then generate the lib with:

    dlltool k d ni4882.dll d ni4882.def-l libni4882.a

    Now, I build a small test QT program.

    -.pro file-

    INCLUDEPATH += $$ PWD/include

    LIBS += $$PWD/lib/libni4882.a

    --

    -.cpp file-

    #include "ni4882.h".

    ...

    Sub MainWindow::Init()

    {

    int DD = idev (0,3,0,T10s,1,0);

    If (Ibsta () & Err)

    {

    Err (tr ("Unable to open board:ibdev=%1").arg(dd)); "))

    }

    If (ibonl (0,0) & ERR)

    {

    Err (tr ("could not close the Council"));

    }

    }

    void MainWindow::Err (QString message)

    {

    Switch (Iberr ())

    {

    case 0:

    {

    message. Append ("(EDVR-erreur système)" ");

    } break;

    ...

    }

    qDebug ("Error: %s\nibsta = 0 x %x iberr = %d\n",)

    (unsigned int) Ibsta(), (int) Iberr ());

    }

    --

    The source code will be compiled and linked without error.

    But if I run, the output is:

    Error: Could not open the Board of Directors: ibdev = 32768 (EDVR - system error)

    ibsta = iberr 0x8000 = 0

    Error: Cannot close the Board of Directors (EDVR - system error)

    ibsta = iberr 0x8000 = 0

    So the question is: what is the problem? Why am I still getting this error EDVR. I also tried SendIFC (0) with the same result.

    With interactive control GPIB tool, I can communicate with my instrument and the Trace of e/s OR it connects. But I don't see the papers in my request tracking tool. Is this an indication?

    Any ideas?

    Marko

    Hi all,

    After a few questions about the use of the GPIB with Qt library, I wrote a description step by step to create objects for MinGW files:

    1 create a folder and copy the "gpib - 32.dll' of the"C:\Windows\System32"("C:\Windows\SysWOW64"in Win7) in this folder.

    2. copy "ni488.h" to "c:\Program Files (x 86) \National Instruments\Shared\ExternalCompilerSupport\C\include\. (Not ni4882.h!)

    3. load PExports (my version is 0.44) and put the exe in your folder. I don't have a URL to load this tool but should be easy to find. It is freeware.

    4. copy "c:\QtSDK\mingw\bin\" dlltool.exe in your folder.

    5. create a batch file '1 - build def file.bat' with the content: "pexports ni488.h gpib - 32.dll h > gpib.def.

    6. create a batch file "2 - build file.bat lib" with the content: "dlltool k d gpib - 32.dll - d gpib.def-l libgpib.a.

    7. run the batch file "1 - def file.bat build" to create the file 'gpib.def' def

    8. start the batch file "2 - build file.bat lib" to create the file in the library 'libgpib.a '.

    9 copy 'gpib - 32.dll' and 'libgpib.a' in your software project. I created the 'lib' subdirectory and copied the files to.

    10. copy "ni488.h" into your software project. I created the "include" subfolder and copied the file in.

    11. in your PRO file type:

    # #####################################################################
    # Include the NI 488 library. 2
    # #####################################################################
    INCLUDEPATH += $$ PWD/include
    HEADERS += include/ni488.h

    LIBS += $$PWD/lib/libgpib.a

    12. in your type of source code:

    #include "windows.h".
    #include "ni488.h".

    bool InitializeGPIBBoard)

    {

    bool isStarting = false;

    boardID int;        / * id board @brief. */
    QString boardName;  / * @brief Committee name. */
    int boardDescr;     / * descriptor of Council @brief. */

    Get ID Board
    SendIFC (boardID);

    If (ThreadIbsta() & ERR)
    {
    ErrorHandling (tr ("failed to open the Council"));

    Return isStarting;
    }

    Open and initialize a Board or a configured by the user device descriptor
    wchar_t * aName = new wchar_t [boardName.size () + 1];
    m_para.boardName.toWCharArray (Anom);
    aName [boardName.size ()] = 0;
    m_para.boardDescr = ibfind (Anom);
    delete [aName];

    The Board of Directors is the system controller.
    If (ibconfig (boardDescr, IbcSC, 1) & ERR)
    {
    ErrorHandling (tr ("failed to create the system controller board"));

    Return isStarting;
    }

    Affirm the clear interface.
    If (ibsic (boardDescr) & ERR)
    {
    ErrorHandling (tr ("Assert clear interface"));

    Return isStarting;
    }

    ASO.

    isStarted = true;

    return isStarted.

    }

    13 be happy! :-)

    I hope this helps. If you have any problems, please write me a message or post on this thread of Council.

    Gruss und viel Erfolg!
    Marko

  • GPIB / series substitution pilot

    Hello. I'm trying to control my first instrument inherited using LabVIEW. It is a Tektronix TDS 320 (scope). I talk to him through series (not GPIB). The only drivers I can find for her to LabVIEW are GPIB. Would it be possible bring these GPIB drivers to serial or would I need to write my own drivers.

    Cheers, Alec

    Hi Alec,.

    you need to replace all the calls-GPIB with VISA-functions.

    Then, it is rather easy to choose the right bus for communication, as VISA supports both of them (and more)...

  • Controlling many GPIB

    Hello

    I just saw in my laboratories there are many instruments with GPIB port. I know that I can control and enter the data from the instruments. However, control of several instruments with GPIB communication simultaneously? Networking analogy, I know that I can simply use switch/hub for communication between the clients/servers. Is there an any 'switch/hub' that can connect several GPIB and control (for example via LabView)? Should I convert all my GPIB with GPIB-RS232 or GPIB-Ethernet port until I use the switch?

    Thank you.

    Ricki

    Hello Ricki,

    Thanks for your post on the forum. Ethernet to GPIB is the only solution to your problem. You are able to connect 14 GPIB devices to a converter.

    Best regards

  • Unknown channel or name of the repeated feature - settings MAX IVI

    Hi all

    I have problems with the creation of a pilot application based on IVI. I use Agilent N6700B PowerSupply simply configure and output voltage via GPIB with LV2009 (and Win7). The main issue is with the name of the 'channel' I need to specify in the application. Could someone please confirm ChannelName should I use and if the MAX settings are correct? I have attached all necessary files.

    When I run my application I get following "IviDCPwr IVI Converter.vi error error message

    The primary error: unknown channel (Hex 0xBFFA0020) or
    name of the feature repeated.

    Complete calling chain:      IVI IviDCPwr
    Error Converter.vi IviDCPwr
    Configure the output Range.vi GPIB.vi"

    Any help is very appreciated

    Kind regards

    PK

    Hi, PKI,

    The correct physical name for the channel is '1' and it was filled for you by the driver under the advanced > Instrument Driver Software Module (see MAX1.jpg). You can name your virtual channel name well you want under the pilot Sessions > section virtual names, but the physical name must always be 1 as specified in the driver (MAX2.jpg). In your application, make sure that you use exactly the same name for the virtual channel as recorded in MAX.

  • Several errors in Include for NiDMM.h

    I write software MS Visual C++ 6 to talk to a USB-4065 DMM. I copied the files nidmm_32.lib and nidmm.h of the necessary include files in the project directory. But the linker complained a .h file missing, I would copy it into the directory of the project & get still another file missing. This is the summary of what I copied:

    IVI.h-> visa.h-> visatype.h-> vpptype.h-> ividmm.h-> ivi.h, which is already in the directory, but it is not found!

    I programmed VISA and GPIB in the past and thought that the DMM interface would be like the GPIB with an include file.

    Any help would be appreciated.

    Thank you

    Hello Gary,.

    Is that what you have installed NI-VISA? If this isn't the case, please download and install it. If you don't have a VISA, how are you on the link of the files .h to the project?

    You must import the file nidmm.lib of the project since it is the file that contains your definition. The procedure step by step on how to do this, simply open using the DMM OR (start > all programs > National Instruments > DMM OR > Documentation). Once it opens, go to the content tab and go help the DMMs NOR > Programming with NOR-DMM > Getting Started > using NOR-DMM in Visual C++.

    Also, even though you may be indicating to the compiler as to where he should seek your .lib file giving him this way, you can still say it the exact name of this. lib. Your ".h" file called nidmm.h does not mean that it takes to be called 'nidmm.lib' the '.lib' file.

    What you need to do is to add nidmm.lib to your project or you can go to the project properties and access Configuration Properties > Linker > input and in the entry window, must add "nidmm.lib" in the additional dependencies field, so that the compiler knows what .lib file for searching through your nidmm_init function.

    I would like to know if any of this helps.

    Thank you

    Ryan

Maybe you are looking for