How to sweep IV curve using GPIB instrument (ILX 3220)

Hi, I'm new to Labview---I learned basic stuff, such as strings,arrays, structures,etc. I have an ILX-3220 current source, NI-488.2,and I want to make an IV curve using a light-emitting-diode. I'm really confused about what I should use. I downloaded intrument drivers from ILX's website.They provide some example VIs, but I can only set one current and read one voltage. I try to configure the block diagram by adding a for loop, then I got lost among the complicated SubVIs. I also tried to use I/O Instrument assistant to communicate with the current source, but apprarently it didn't listen to me . I can input the commands one by one (LAS:LDI 5   LAS:LDV?  LAS:LDI 10  LAS:LDV?.....)----not much differently from writing down by hands. Is there a way to sweep IV curve using ILX 3220? 
Solved!
Go to Solution.

Yes, you will have to use a loop - either a for loop or while loop. I'm not familiar with the instrument or functions but at the minimum, you would need to place the function that sets the current and the function that reads the voltage inside the loop. The loop would probably have a shift register and you would wire this to the current set function. Inside the loop would be an increment function and some code to determine if the max current has been set. Below is a generic ramp application.
Attachments:
Generic Ramp.PNG ‏6 KB

Similar Messages

  • Can I use GPIB instruments via GPIB-USB-HS and NI-VISA on MacOS with Matlab somehow?

    I've just installed NI-488.2 (14.1) and I can see my GPIB instruments in the NI-MAX app. However I can not find them in the tmtool function in Matlab. Aparently Matlab on mac does not support GPIB (http://se.mathworks.com/help/releases/R2014b/instrument/supported-hardware.html) but it does support VISA. 
    Do you think there might be a way to connect to my devices in Matlab through VISA some how?

    Hi thanks for you answer.
    Yes, I installed this version: http://www.ni.com/download/ni-488.2-14.1/5090/en/ which says: "NI-488.2 for Mac OS X, Version 14.1, installs NI-VISA and NI-MAX by default". I can also see all the correct .framework-files in the "Library/Frameworks/"-folder:  
    And since I can see (and query) the GPIB devices in both the "/Applications/National Instruments/NI MAX.app" and "/Applications/National Instruments/NI-VISA/NI-VISA Configuration.app/
    HOwever Matlab does not want to detect any VISA drivers...

  • How remote/loc​al mode for GPIB instrument​s works?

    Remote/local mode for GPIB instruments is being controlled by REN one of five interface management lines. That's the only information available on this subject. Where can I find some more detailed explanation? I still don't know what conditions have to be met to put device in remote/local mode.

    REM indicates whether or not the board is in the remote state. REM is set whenever the Remote Enable (REN) GPIB line is asserted and the GPIB board detects that its listen address has been sent either by the GPIB board or by another Controller. REM is cleared whenever REN becomes unasserted, or when the GPIB board as a Listener detects the Go to Local (GTL) command has been sent either by the GPIB board or by another controller, or when the ibloc function is called while the LOK bit is cleared in the status word.
    A call to the function ibonl clears the following bits:
    END LOK REM CIC TACS LACS DTAS DCAS
    You can find more information in the NI-488.2M Software Reference Manual (see link below).
    http://digital.ni.com/manuals.nsf/web_productcurre​nt/43AB49D953CE104E8625665E0
    07D11FF?OpenDocument
    All of our manuals are available online at the following site.
    http://www.ni.com/manuals/
    Thanks,
    Kim L.
    Applications Engineer
    National Instruments

  • Using GPIB-RS232 converter with an embedded application

    Hi
    I am quite new to GPIB, so this might be a rookie question Using my own embedded application I need to communicate with a couple of Agilent power sources to send commands and queries. I got a GPIB-RS232 converter from NI but I can't figure out from the online help wether I can directly write to the serial port attached to the NI GPIB-RS232 ans SCPI command. I would be grateful if you can help me out to find the documentation on how to communicate to several Agilent GPIB instruments connected to the NI GPIB-RS232 converter configured to work in mode S.
    By the way, for testing I am developing the modules for my application on a desktop computer under linux using gcc c++ compiler.
    Thank you!

    This might be useful: NI GPIB-RS232 Examples
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • How to read from a HPIB instrument using GPIB software?

    How Can I read from a HPIB instrument using GPIB software and library functions in Visual Basic Environment? In HPIB we do not have to send query first but in GPIB we do? Although writing and sending a command is to a HPIB instrument is pretty much the same as a GPIB instrument. Any help or suggestion?
    Thanks in Advance
    Shazaduh

    HI,
    HPIB and GPIB are the same thing at a low level in terms of instrument communication. They are both compliant with the IEEE 488.2 standard.
    The difference is the driver you have to use. Each manuafacturer has to develop a driver to control the interface ont he host. For National Instruments interfaces you use NI-488.2 (which you refer to GPIB functions). For HP interfaces you need to use the SICL library. For information using this library in Visual Basic you'll have to look at the SICL documentation.
    You can also use VISA (HP-VISA) which would allow you use NI interfaces or other buses in the future.
    Hope this helps.
    DiegoF
    National Instruments.

  • How can I use the instrument toolbox in MATLAB 6.1 to contol the PCI-GPIB card under Linux?

    I'm trying to use the PCI-GPIB controller to control lab equipment through MATLAB 6.1 (R12.1) under Linux. MATLAB's instrument toolbox seems to integrate with NI's board, but the MATLAB documentation says it requires the installation of a driver. I've downloaded the linux gpib driver, and I'm able to run the associated utilities (ibconf, ibic, ibsta), but MATLAB cannot interface to it. For example,
    >> g=gpib('ni',0,1)
    ??? Error using ==> gpib/gpib
    The specified VENDOR adaptor could not be found.
    Where can I find a MATLAB driver and how can I install it?
    Thanks,
    Richard

    Hello-
    The knowledge base: "Can Matlab for Windows Call the National Instruments GPIB Driver?" Also applies to this question as well. This article is very extensive. Try searching on ni.com for "+matlab +gpib" for more details.
    Randy Solomonson
    Application Engineer
    National Instruments

  • I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vecto​r signal analyzer ) to measure such as RF frequency or power on the instrument​? Thanks

    I'm new to the LabView. How do I pass data from VI configured using Serial (CMTS using CLI commands to set Parameters ) to VI configured using GPIB(vector signal analyzer ) to measure such as RF frequency or power on the instrument?
    I just want to set something on the front panel that will execute the Serial parameters first and then pass these settings to vector signal analyzer
    Thanks
    Phong

    You transfer data with wires.
    Frankly, I'm a little confused by your question. I can't think of any reason why you would want to pass serial parameters (i.e. baud rate, parity) to a GPIB instrument. Please explain with further detail and attach the code.

  • How do I create Labview VISA ports for *individual* GPIB instruments using Prologix USB GPIB controller?

    Hello,
    I'm trying to use a Prologix USB GPIB controller to control GPIB
    instruments, and I would like to have a virtual serial (VISA) port for
    *each instrument*, as is the case with a normal GPIB controller with a
    standard NI driver. However this is not what the Prologix driver
    provides -- it provides a single VISA virtual serial port for the
    entire controller. To address the instrument with GPIB address 11,
    you first send "++addr 11" to the serial port, and then you're talking
    to instrument 11. However, this means I have to change all old
    Labview programs.
    Is it possible to create a "wrapper" function of some kind that will
    define a virtual serial (VISA) port for each *instrument* on the
    controller? For example, to talk to GPIB instrument 11, call it
    ASRL3::11::INSTR, each time it is written to it would have to write to
    the virtual serial port of the controller, say ASRL3::INSTR, first "+
    +addr 11" and then the command that is sent to it.
    A clearer explanation of the difference (i.e. incompatibility), and of
    my objective:
    1) A normal GPIB controller with NI driver: I go to the NI
    Measurement & Instrumentation Panel, under GPIB, and Scan for
    Instruments; all the live instruments show up; subsequently when I
    want to use Labview programs that use VISA ports, the VISA drop boxes
    allow me to choose a different port for each instrument, e.g.
    "GPIB0::11::INSTR", "GPIB0::12::INSTR" would be instruments at
    addresses GPIB 11 and GPIB 12.
    2) The Prologix GPIB controller that plugs into a USB port: In
    Labview you get a *single* VISA virtual serial port, ASRL3::INSTR, for
    the entire GPIB0 controller. Therefore to address GPIB instrument 11,
    you write "++addr 11" to the virtual serial port ASRL3::INSTR, and
    then you are communicating with device 11, so you can write and read
    ASRL3::INSTR to talk to that device. Then to talk to device GPIB 12,
    you write "++addr 12" to the same VISA port, and then you are talking
    to that device. The problem is that this requires recoding all
    Labview code, whereas I would like to be able to use the same program
    either with a normal or with a Prologix GPIB controller. Therefore, I
    would like to create code that scans the controller for all GPIB
    attached devices and creates VISA ports for all. Such ports, when
    written to, would have to first write "++addr DEVICENUM" to
    ASRL3::INSTR (i.e. the port of the GPIB-USB controller) where
    DEVICENUM is the GPIB address of the instrument corresponding to that
    port, and then would have to do a write or read or whatever function
    is being done on that instrument VISA port.
    I haven't figured out if it is possible to do this easily. Help and
    pointers on where to look for hints would be much appreciated. Many
    thanks!
    Milos

    My first impression is that if you don't want to make any changes at all to existing programs is that the wrapper you need is one around VISA. You would need to intercept all of the calls into the NI VISA driver. If you create your own visa32.dll and in there, change the addressing and then call the real VISA driver, you might (repeat, might) get something to work. If this would even work, you still might find that you have to make significant changes anyway. The serial connection is going to be considerably slower, and interface specific functions such as service request handling, bus triggering of multiple instruments, etc., would be difficult to impossible. This would be a lot of work, imho, to just save a couple of hundred dollars over a real GPIB controller. I've seen this Prologix device before and have even used NI's RS-232->GPIB controller. The Prologix intended use to me seems to me more for a hobbyist or very casual user. Of course, I'm used to having multiple GPIB instruments worth 10s/100s of thousands of dollars and the cost of an fully compliant GPIB controller is just lost in the noise.

  • Cannot read instrument errors for Ando AQ6317B using GPIB commands.

    Maybe related to reading the status byte using GPIB commands for the AQ6317B OSA: how can I read the instrument errors, if one or more occur? Several instruments return their instrument errors in the format <errorCode>, <"error message"> as a response to the command "YST:ERR?" or similar. Not the AQ6317B optical spectrum analyzer.
    Can anyone help me with this one?
    Thanks in advance,
    Cristian

    Yes, I did this using NI MAX also and using NI IO Trace (former NISpy). Many instruments accept "SYST:ERR?" as a query to return any INSTRUMENT ERROR (hardware or firmware).
    Well, I guess my ANDO does not. it responds with an empty string, or whatever it has in its buffer from the previous query.
    In any case, be it as it may, I will close this issue (still in limbo for me), and just ignore instrument errors for the time being.
    Thank you for your answers, though.
    Cristian

  • How to make S-Curve for Primavear P6 by using BI publisher?

    Hi,
    Anyone knows how to make S-Curve for Primavear P6 by using BI publisher? I can display colunm such as planned unit, but not cumulative value. So I can't plot S-curve.
    Thanks
    Wang Xin
    Edited by: 957906 on 09-Sep-2012 03:26

    The problem with the datagridview is that it can only show one table.
    For more tables 3th party datagrid's are better. 
    Although you can start with using the old datagrid. Despite what is written on MSDN is it a complete different control then the datagridview. You can add in to your toolbox by right clicking on it and then add it.
    The datasource of a DataGrid can be a complete dataset which is showed with all its relations.
    Success
    Cor

  • How to use Extech Instruments model 407123 with Labview 7.1

    I am pretty new to Labview.  With the help of this forum I was able to configure my DAQpad 6020E with my Labview 7.1.
    Now I am looking at using an Extech Instruments Hot Wire Thermo-Anemometer (407123) in my experiment and running it through Labview.  Based on my research, I was led to believe that I should use the Instrument Assistant I/O and NI-Visa, but I am having a lot of difficulties.  First off, the Thermo-anemometer is wired for RS232 and I have it connected to an RS232 to USB converter, which is then plugged into my computer.  I have the driver for the converter.  When I plug the thermo-anemometer into my computer, MAX reads it as a serial port and it is listed as COM3.  MAX claims that the device is working properly.  However, when I run Labview's Instrument Assistant I/O, and tell it to read data I get a bff0015 error and it says that the device timed out.  I have tried changing the time and I still get the same error.  I am assuming this means that Labview and my device are not communicating.
    I have seen some mention of instrumentation drivers, but I haven't been able to find any for my particular device.  I am assuming that is the root of my problem, and that if I had an instrument driver to run my device in Labview that it would work properly.  So here are my questions.
    1)  What do I need to take data from a third party thermo-anemometer in Labview?
    2)  Am I correct in thinking I need some sort of instrument driver?  And if so, where could I find one (I have already searched for one and did not find it)?
    3)  Is it possible and practical to take data through Labview from a DAQpad and a third party instrument at the same time?
    4)  Are there any guides or tutorials I could use that may show me how to accomplish what I'm trying to do?
    Thanks.
    Solved!
    Go to Solution.

    I've been trying numerous things to get this to work, and I've had little luck in getting exactly what I want.  I have been able to get data from some example VI's designed for serial read, and I was able to tweak them some, but this data seems to be only able to be saved to a .txt file.  I want the data from my anemometer to be read along with the time it was read and stored in a spreadsheet.
    Instrument I/O Assistant appears to have exactly what I need to do this, but I can't get it to work.  I keep getting the bff0015 error, which is that the device timed out before the operation completed.  I don't understand why it is doing this, or how to stop it, because I am able to get data from the device otherwise.  In fact, following these steps I can see the exact data I want:
    1.  Open Instrument I/O Assistant
    2.  On "Select Instrument" I select the correct port and then click "properties"
    3.  At the top corner of the window I click "Open VISA Session"
    4.  Once there, I go to the "Basic I/O" tab.  Within that tab I click the "Read" tab.
    Please see attached screenshots if you want to see what I'm talking about below.
    At this point I can read the data from my device.  The default count value is 1024 bits.  If I click "execute" the device is read and I can read the data in the textbox that says "buffer."  However, my device only makes one 16-bit reading every 1.6 seconds, so I have to let the device sit for some time before it can fill the buffer up with 1024 bits.  If I don't, the reading takes place, I can see all of my data in the buffer, but the "Return Count" value on the screen is something significantly less than the "Count" value.  This makes sense because the buffer did not have time to fill.  Needless to say, the "Return Value" says "bff0015" which means it would return the time-out error.
    If I wait for the full time for the buffer to fill, OR if I change the "count" value to something significantly lower, say... 32 bits, the buffer "fills" much faster, the "return count" count is correct, and the "return value" reads "3FFF0006" which I assume is a standard code meaning everything went correctly.  I also notice that if I wait long enough, the buffer will continue to fill, and I can click "Execute" many times rapidly and get readings instantly.  I can tell that the program is just reading data stored in the buffer when it doesn't take a second to perform the reading, and if I continue to click "Execute" rapidly, I will eventually expend the data stored in the buffer and I will start to see the "fresh" readings again.
    So here is my question.  How do I lower the expected "count" value in the actual "Instrument I/O Assistant"?  I can do it in the "Open VISA session" under properties, but the only thing I can change in the Instrument I/O Assistant is the timeout value, but even when I set the value to 5 minutes, I still get the time out error.  What else can I do?
    Attachments:
    Instrument IO view select.pdf ‏119 KB
    Instrument IO view read.pdf ‏125 KB

  • Some strings for which expression pedal is used is recorded well but during esch playback I have to move the modulation wheel. How can I resolve to hear my instrument during playback without twikking on the wheel !

    Some strings for which expression pedal is used is recorded well but during esch playback I have to move the modulation wheel. How can I resolve to hear my instrument during playback without twikking on the wheel !

    I am having the same problems. My guess is that a lot of people are having the same problems and just living with it. Those of us who know where to go on the Internet come here to find a fix.
    It seems Verizon has some explaining to do. Maybe they should try Beta testing new software a little better. I would rather have to wait longer for something that works. I am sure that some manager or director said this is close enough, deploy it and we will see what happens. Well, you are seeing the problems. Time to fix your mistake.
    All of us are telling our friends about the problems. The longer this goes on, the more people we will tell about it.
    Wouldn't you rather us be telling our friends that their is an error in the new interface and that you are working hard to fix it?
    If you want to be up front about this, then just tell us. We are adults and can handle it. If you made a mistake, own up to it and give us some credit for doing your Beta testing in the field.
    Customer Service is all about telling the truth and if you made a mistake, admit it and lets move on with a fix. I do not want to be told again that I should be able to unplug it, power cycle it, try the on-board diagnostics, etc., etc.......
    I am going to be repsonding on a daily basis to keep this topic at the top of the list.
    Time to come clean. You will feel better Verizon.
    Let's talk tomorrow.

  • Trouble reading data from GPIB instrument using VISA

    Hello, I am having trouble with reading data from a GPIB instrument in LabVIEW. It appears that the data that is returned from VISA read is incorrect. (I used NI Spy to verify what it should be and what I get, they are different) The odd thing is that when I use the VISA interactive control utility to get the data, it works perfectly. Is there some sort of VISA property that I need to set to get it to work right? Writing to the device seems to work correctly. If you need more info, please e-mail me @ [email protected] Thanks in advance!

    What exactly do you mean when you say the data you are getting is incorrect? I'm guessing that you are dealing with some sort of data type issue. The VISA Read VI will return a set number of bytes in string (ASCII) format. If you are expecting a different data type, you will have to do some conversion by either using a type cast or string conversion function. The type cast function can be found in the Advanced-> Data Manipulation palette, while the string conversion functions can be found in the String palette.

  • Controlling two GPIB instruments using VISA

    I'm using Labview 5.1.1 (unfortunatly I have no way of getting a better version) and I want to control a multimeter and a powersupply. I need the power supply to vary it's output while the multimeter reads the data for the different power supply outputs. This means that the multimeter and power supply need to work synchronously. How can I do this using VISA? or is there an easier way?
    -Labmonkey

    This isn't really operating "synchronously" - you're really just trying to set up a closed-loop system. Is there an easier way? Yes. Check if the power supply has remote sense capability. This does exactly what you're trying to do. This is a far better solution that trying to perform the closed-loop system in software. In fact, I would get a different power supply if the one you have doesn't have remote sense capabilities, but that's just me.
    If you *really* had to do in software you basically have to set up a while loop that get the measurements from the multimeter, compares it to the desired setting, sees if it's within your desired "error", calculates how much delta to apply to the programmed voltage for the power supply (taking into account that the
    programming resolution of the power supply won't be the same as the measurement resolution of the multimeter), and the programs the power supply to the new, corrected, setting.
    Still say you're better off with a power supply with remote sensing.
    -Saverio

  • Using gpib-32.dll in Labview 7.0

    Hi there,
    I am relatively new to Labview and I need some help trying to program an old HP3488A switch/control unit using the Call Library Function Node. I would like to convert the existing VB6 code, which uses gpib-32.dll, into Labview. What I have done in the VB code is to call the ibdev function to set up the HP instrument. I would like to do the same in Labview. How would I even go about setting up the .dll files as I am revamping the existing code (running on a Pentium II computer) and trying to create an identical code in Labview (running on a Pentium III computer). Also, after I have set up the .dll files (done any system configurations if necessary), how do I actually implement this file in Labview?
    I have tried calling the ibdev function in the properties of the Call Library Function. I created 6 parameters of return types with ranges of type long. Then I pass integers into the input of this node and when I tried running it I get an error exception within the external code as follows:
    "An exception occured within the external code called by a Call Library Node. This might have corrupted Labview's memory. Save any work to a new location and restart Labview. VI "switch.vi" was stopped at Call Library Function Node 0x1D7C of subVI "switch.vi"
    Can someone please help me? Thanks.

    I actually tried that before. As the HP3488A switch instrument is very old and came out before IEEE488.2 got introduced, it still uses IEEE 488.1, or HPIB commands. When I try using MAX or even my Agilent IO Control, it shows that there is an instrument connect to GPIB address 10, but neither programs can auto-identify the instrument using the *IDN? query. Even so, I tried typing ID? in both programs and I got no data back from the instrument. I'm not too sure as to what the problem is since I always get "\n" back from the instrument's reply. I even tried changing the termination character enable to TRUE and I still got nothing back.
    However, on the front local display of the switch, I can see arrow indicators moving between TALK and LISTEN whenever I perform a write or write/read command. But no data gets sent or received because I couldn't perform any write commands to change the switch. If anyone can tell me what the real problem is that would be great. But if not, then I will have to use the Call Library Node because I know that my VB6 code actually works on the HPIB instrument and I could simply use this gpib-32.dll file on Labview and perform the same instructions, which should allow me to talk to the switch. Can anyone tell me how to properly set up a Call Library Function Node as I have errors using the gpib-32.dll file (please see my previous message)?

Maybe you are looking for

  • Music not copied from PC after restore

    I had to restore my 30 gb iPod with iTunes running on Vista. When the restore process finished successfully, I found that not all my music was copied to the iPod. There were no error messages. How do I get all the music on my PC into my iPod?

  • Configuring OracleBamAdapter

    I'm having trouble getting my composite to connect to my newly configured OracleBamServer. I configured the OracleBamServer in the WebLogic Server Administration Console Web Interface and successfully wired it from my composite's Mediator component i

  • Images used by jsp's

    Is it a good idea to include image resources (like .gif and .jpg) used by jsps into the web.xml file? If so, how or what is the best way to include such resources in the web.xml file? Thanks in advance, Ali

  • I can't use my adobe programs, problem with license?

    I had a totalt computer crash wich resulted in a new installation of my OS. I had my backup-HD were i copied my Adobe program from into my reinstalled computer, but now I cant use them because "they are copies" (I have payed for them) I can't even re

  • Question to Oracle about 10g RAC

    Hi: Does Oracle had installed 10gRAC on Redhat3.0AS either using ocfs or raw successful before the software got released?