Synchronization and optimization of keithley-Labview with GPIB-USB

I started an old thread on this subject, but I have some new problems. My vi is to control a Keithley sourceMeter to read measurements every 5 ms for 6 to 10 hours, using GPIB-USB. The vi simply sends the commands under a full script to the instrument and then bed measures (voltage and current) in a loop using the visa and saves the data and displays them in a second loop using a queue. I decided to use a queue and a second loop due to the delay caused by reading data, save them in a file + display, all in a single loop! I want to be able to see all the data with real time axis, so I used a xy chart.

Having a shorter time in the upper loop isn't a bad idea.  Using the wait until the next ms multiple rather than just the Dequeue wait time can cause the occasional time jumps.

I have no LV open now, so I'll try to remember your VI.  I think you picked up 3 data values and a timestamp of each 5 ms.  It is 800 items every second. If you want to save all the data but only write to the file every 5 seconds, you will have to accumulate 4000 items. Because file entries are not always made exactly when you ask them because of the behaviour of the OS, you must allocate a bit more wide open spaces.  You can initialize an array 2D as 1200 X 4 (1200 lines of 4 columns) of NaN. Place this table into a shift register.  Every time you Dequeue data, replace the next line with the data.  When you write to produce, use the subset of the array to get the part that was replaced with real data and write the part in the file.  Return the initialized array of NaN in the registry to offset and continue to replace the data.

Lynn

Tags: NI Hardware

Similar Questions

  • Agilent E3640A PSU with GPIB-USB-HS

    Hello all, I created an Agilent E3640A power control software standard interface GPIB. It works very well. Now, I want to replace the standard GPIB interface (with GPIB card) with GPIB-USB-HS adapter cable, so that I can send commands via USB connection, eliminating the need for GPIB card. How can I use my existing application to work with GPIB-USB-HS adapter cable? Is this a change? or I completely rewrite the code, and if so, are the drivers available for GPIB-USB-HS adapter cable? Thanks Jeet

    More information please.

    Have you removed the PCI interface before you try the USB interface? If this is not the case, your program may still try to access the E3640A on the PCI card.

    What is the USB HS recognized in Explorer measurement and automation as GPIB0?

    The E3640A knows if scan you for Instruments to MAX?

    What (number) error is raised during the execution of your program with USB HS?

    It would also help if you could show us NI SPY logs saved when executing your program with PCI and USB-Interface Card

    Usually you don't need to install different drivers, because the package NOR-488. 2 installs drivers for all variants of the NI GPIB hardware.

  • Beginner question absolute to the Labview with GPIB connection device

    Hi all

    Firstly, sorry if my question is already posted, but I tried searching with nothing doesn't.

    My situation: I have a HP digital osciloscope, a HP 54602 B using the GPIB and trial version of labview 8.6. Now, I want to communicate with her from labview. The big question is: how? Before that I used only labview with NI DAQ card and serial port for communications of the instrument.

    the detailed question

    1 is it important (to programming in labview later) what GPIB interface that I use in my computer? Must be of OR? I still have no interface right now.

    2. I ran a search on the osciloscope Web site of NOR and find an instrument driver in:

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

    . How do they come?

    3. I know there are a few examples for the GPIB, but since I do not have the interface, I can't try it. Is it possible to simulate instruments GPIB?

    Thanks for all your help and assistance

    Hi opiq;

    Welcome to the world of instrument in LabVIEW Control!  I'll try and answer your questions one-at-a-time:

    1. N ° from a point of view of LabVIEW, you can use any interface supported by VISA and your instrument bus.  This includes (but is not limited to) boards of NOR-GPIB, 3rd-party GPIB, USB, LAN, LXI, VXI, PXI, etc..  Of course, if you do not have a GPIB interface, I would recommend a NEITHER - this is the safest way to get the experience 'it works '.  I tend to use an adapter USB GPIB (DISCLAIMER - I work for the OR).
    2. You have two options for installing the device driver.  "" The simplest is in LabVIEW to select Tools "Instrumentation" instrument Drivers find... and use our instrument driver search tool which will be step helps you locate, by downloading and installing the driver.  The other option is to download the zip file, unzip it in \National Instruments\LabVIEW 8.6\instr.lib and restart LabVIEW.  So if you look in your palette of instrumentation, you should see the driver listed under instrument drivers.  The pilot will include some examples of the use of the driver (are all certified instrument drivers).

      In fact, I would recommend this driver rather than that you connected.  It is a more modern design and install examples in the viewfinder of the example ("Help" find examples...).

      Here's a video of the above process (for a different instrument, but the process is the same)

    3. Unfortunately, there is not an easy way to simulate this instrument.  I would just recommend familiarizing yourself with the examples before acquiring a GPIB interface.
  • Opening Word, Excel and PowerPoint files in LabVIEW with digital signature of files

    Hello

    I try to open Word, Excel and PowerPoint documents in LabVIEW (or were then converted into a format that can be opened). After the opening, to fill out checklists can insert a digital signature preset (possibly through an authorisation of user name and password) and save the file while preventing further edit or print a pdf of this report.

    I have a good experience with LabVIEW, but not in this kind of a system.

    I appreciate if someone can point me in the direction to start.

    Thank you very much

    Al

    Regarding (1): there is no ActiveX control to view the Microsoft Word/Excel/PowerPoint files. If you want to display these on a front of LabVIEW, so the simplest solution is to use a web browser on the front panel control. This will allow you to provide the path to the file in the URL of the web browser control navigation and the file will be embedded in the browser control. It would be no different than the consultation within Internet Explorer.

    Regarding (2): assuming that you view the document on the front panel, this looks like the basis of LabVIEW programming, so I don't know what you're asking for here, or that you are having problems with.

    With regard to the (3): I must admit that I'm not quite clear on what will be signed. It also seems that the signing and printing of PDF are two distinct objectives here.

  • Installation and optimization of Windows 8 with RAID

    Original title: windows installation in dell inspiron 8 5523.

    Hello

    Recently, I bought a dell inspiron with 32 GB ssd and 500 GB of hard drive.

    I try to install fresh windows 8.

    someone please give me step by step of the instructions for installation and optimization with RAID.

    concerning

    Hi Venkatavaradhan,

    1. who is the current operating system installed on the PC?

    2. what exactly happens when you try to install the Windows 8?


    Refer to this article on how to install Windows 8.
    How to perform a new installation of Windows
    http://Windows.Microsoft.com/en-CA/Windows-8/clean-install

    To install Windows and optimization with RAID, please post your request in the TechNet forum.

    Please visit the link below to find a community that will provide the support you want.

    http://social.technet.Microsoft.com/forums/en-us/w8itproinstall/threads

    Hope this information helps. If you have other windows related to queries, we will be happy to help you.

  • KEITHLEY 238 / NI GPIB-USB-HS-change delay time

    Hello

    I have a keithley 238 meters the current measures such as voltage is swept. It's the GPIB device and connected to my PC via NI GPIB-USB-HS

    adapter. I would like to control with Labview 8.6. I used the VI available at your instrument driver network who directed me to the website keithley and is attached below. Keithley said that the VI is unsupported freeware. The VI is located at

    http://www.Keithley.com/products/CurrentVoltage/?path=238/downloads#1

    The first "sample program" on this site Web is the VI that I use.

    Now the VI works well.  The VI sweeps the tension and shows the current measured as a table and a chart.

    I want to just change the scanning time, but I can't increase it beyond 1000 ms. Why is it so?

    Scan delay is the time that he made a break after each increment of voltage.

    I don't know if there's a change in the VI or NI GPIB-USB-HS adapter settings are a problem. I checked the settings of this device under MAX - time settings are the following

    (1) time I / O-> by default set to 13 (10 sec)

    (2) antipolling - verified

    (3) then there are a few termination settings and advanced settings, there is a setting, bus game calendar to-2 (500nsec)

    So are bad parameters GPIB or code needs to be changed? How and where to change the code?

    The reason why the VI will not attribute to a value greater than 1000 is simple to understand. Just right click and select data entry and you will see that the maximum value is set to 1000. It is set so that I don't know. Have you looked in the manual to see if 1 s is a limitation of the instrument?

  • Connection of an instrument with GPIB-USB connection.

    I am trying to use a GPIB-USB adapter to control a unit of Source of LabView. However, I have problems my instrument drivers to recognize the GPIB address specified for the device. I have attached an image below the address specified by IO Keysight connection Expert. I am currently trying to initialized the EMS with the GPIB driver I have attached below. Because of my knowledge limited in LabView instrument control, how should I approach of collecting the correct address of GPIB and recognize it in my VI?

    Hi wyattcurtis824,

    Before we dig into the LabVIEW code, I would recommend a Test Panel of max aperture and trying to communicate with. Are you able to send orders via Keysight connection Expert or NI MAX and see the valid data?

    In addition, when you run the vi in LabVIEW, is pilot it returns an error in the error on the box? If so, what the error is?

    This shoule information help us to the root of the problem.

    Best,

  • Place HP 34401 in Local with GPIB-USB-HS Mode

    Hello

    I'm using LabVIEW 2010 SP1 to control the 34401 HP with the NI GPIB-USB-HS device. I use I/O built-in 34401 instrument drivers.

    If I plugged in everything, the 34401 will be immediately placed in "Remote" mode when I run my software. However, I would like to be able to use LabVIEW to force the 34401 to 'Local' mode Unfortunately I could not find a way to do this. I tried Close.vi, but has no effect.

    Here are my planned operation if it makes things clearer:

    1. Launch the software

    2. Initialize the 34401

    3. Place the 34401 in the 4W resistance measurement mode

    4. Pass the 34401 in "local" mode so that the end user can adjust a knob until the desired resistance is obtained while seeing the value of the resistance to change on the 34401

    5. Re-initialize the 34401 when I need to switch to another measure

    If not, is there a way to get the 34401 to permanently display how it is taken in remote mode?

    Best regards

    Ian Williams
    Linear Applications Engineer
    Product precision linear, and remote sensing

    The feature I mentioned does exactly the same thing except that you have to do this awkward analysis of the address. It's a VISA function you have just used the search button to find (and have lit context-sensitive help) to obtain explanations of what he does.

  • What can the LAbview with a USB webcam?

    Hi there, I was wondering if someone can help me with my main project.

    I intend to purchase the NI Labview remote control.

    I want to be able to control the distance of Labview Panel through the web.

    Is it easy to generate NI Labview Remote Panel application on my own? I'm still in College.

    or can I buy the NI Labview Remote Panel app for $309 and use applications to control my labview through the web software.

    in this case, I counted about writing software to take the USB camera and post it on the web.

    What can I do with the usb camera?

    can I change the color? hear the sound? you guys can suggest me to do if I get to work with the web?

    Help, please...

    Thank you in advance...

    OK, back to topic.

    A classic exercise would be the detection of changes such as the detection of an object moving for security, etc.. Expand on that and save images when movement has been detected. Another step further, to subtract the background of the object in motion and present a sequence of images of just the moved object.

    Too exotic?

    That level down to a manually-initiated process to do a "what's new? It compares a before and after picture and shows you what has changed.

    Ben

  • Reading / writing to the HP 8562 A of Labview with GPIB Spectrum Analyzer.

    Hello

    My requirement is to send commands to Labview (in string format) of the Analyzer of spectrum HP 8562 (SA) and read the output of the SA, and write it to a text file. To use interface is GPIB. I have no prior experience in Labview and I'm pressed for time, within a close period. The HP 8562 A Spectrum Analyzer is an obsolete model.

    Any help will be most appreciated.

    Mohan

    Hi Dennis,

    I had the Instrument i/o Assistant to talk to HP 8562 A. But I was able to write a simple with VISA Open, read, write and close program screws to read the instructions and write to a file.

    Thanks for the help.

    Concerning

    M.R.

  • 9 of LabVIEW with GPIB-RS232 for shutter at fixed intervals of time control

    Hello

    I want to order my pane using LabView. I have a program for that from where I can see this shutter is controlled. But I don't know how can I integrate this conditional opening and closing the shutter. For example, I want to shutter to be close for first "t1" dry and open for the next dry "t2" and again close to the "t1" and he repeated that if arrested. "."

    I am attaching the file also, can someone explain to me how I can do?

    Thank you and best regards.

    Hello

    What you need is two tables with in the first and in the second time, downtime.

    Then in a for loop switch, element of waiting on, turn off wait element.

    Use autoindexing and make sure that the two arrays have the same length in the case against the shorter table will determine the final stages.

  • Synchronization and archiving of old emails with Windows Live Mail

    I downloaded Windows Live Mail so that I can archive my messages on my hard drive; However, Windows Live Mail is only synchronization messages to 2010.  How can I get my old sync messages so that I can check them on my hard drive?

    Post Windows Live questions in the appropriate forum found here:
    http://windowslivehelp.com/

  • Is is possible to access channels from a database in labview with NI USB 8473 s

    Hello

    I would like to know if it is possible to access a database BOX, which is downloaded through MAX, in labview.

    Specifically, I downloaded my CAN of database to the MAX and I want access to each specific channel in labview.

    IE according to the photo, I would like to have access to the canal of n_Motor_InsRpm of E1_L0_1 (motor speed) in Labview, in order to define and pass a value of speed via CAN. Would this be possible with the NI USB-8473 s? If so, is there a simple example in Labview?

    Thanks for your help

    Charis

    There are several ways to get information from database without the need of hardware. Here's one I made earlier.

    https://decibel.NI.com/content/docs/doc-39793

  • Problem Keithley 236 control using a GPIB/USB cable

    Hello, I would like to use my PC to control Keithley 236 SMU to make some simple steps I - V (sweeping voltage and measuring the current). If you can give me some advice about my problems, I will be very grateful.

    Situation: I have a PC (windows XP) with labview 7 and 8.2 and 8.5 installed and a GPIB cable / USB a Keithley 236 SMU. I want to make very simple I - V measurements (voltage scanning and measure current). The GPIB-USB cable has already been installed on the PC to control some other Multimeters (voltmeters). Now, all these multimeters are deleted. The PC is connected ONLY to the 236 Keithley. The GPIB-USB cable status in green color.

    I downloaded a labview program adapted for Keithley 236/237/238 of Keithley Web site (home, 237 SwpMeasl - repeat.llb). But no matter how I tried, it cannot communicate with the Keithley...

    Do you know why? Any suggestion is welcome. I am a beginner in labview. Thanks a lot for letting me know.

    No, you cannot use the NI GPIB functions with a card of Agilent. You change using VISA.

  • NB200 running Windows XP - what is wrong with my USB ports?

    I recently bought a new NB200 and have had a problem with my USB ports since then.
    Regardless, the two ports of HHR work fine with my Logitech wireless mouse - unless I have fixed via a USB hub. When I use the second port to connect any other device - in this case an external DVD - RW - the mouse just freezes. Meanwhile, the DVD - RW himself is recognized by Device Manager, etc - ('output work well - with plenty of power available per port), but it is nevertheless unable to work and Windows Explorer is unable to read any disc inserted in it.
    In addition, the USB port on the lhs is pure decoration only; nothing that I relate to it (even the mouse) won't work, neither will the capacity load & sleep (at one of the 4 Modes).
    I uninstalled the USB controllers and the ports using the Device Manager which, after re-booting, continues to report that all is well, both with the devices I attached and the ports themselves, though i's obviously not yet!
    I am concerned that I am still unable to create a recovery disk if the worst should happen if someone can help me solve my Riddle, please?
    I'm doing something wrong or, less likely to be the case, I am sure, is there maybe a problem with my machine?
    Any advice would help, please.
    Concerning
    Bob

    Try to update the BIOS to version 1.50, this solves many problems.
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/home.jsp

    By

Maybe you are looking for

  • eliminate the multiple email research projects

    Is there a way to filter the search results that include several drafts of emails? For example, I searched for a customer emails, and the results include 30 projects (!) of an email I sent last week.  It seems that whenever I have added or changed a

  • WINDOWS hotmail, (outlook) collapsed openning messages or emails, I can not yet send a new e-mail. What should I do

    I opened the hotmail page and sign in. All messages and new messages appear as usual. When I click on any email my small twrill windows clock starts and never opens anything. Same thing if I click on the sending of new e-mail messages.

  • iTunes shows only 10 of my 600 + apps

    Hi, so since I have my iPhone 4 in 2011, iPhone 5 in 2012, mini iPad 2 in 2014 and the iPhone 6 in 2015 I downloaded and installed more than 600 applications. Some are free, but many paid. When I go to iTunes, connected and go "My Apps" I asked to sh

  • Vista updates - Erorr code 646

    Impossible to install kb2289158 and kb2413381!

  • USB Port problems

    I have a digital camera of Canon A470 Power. It uses a USB port and I've used it before. Now when I plug it in, the computer (a dell) starts. Is there something wrong? Or y at - it another way to open it?