Using LabVIEW to Generate an XY Graph of Multiple, Indexed Plots?

Hello,
I have written a LabVIEW Program (using 8.2.1) to characterize FETs using GPIB instruments. At it's most basic level, the program sets a voltage across the Gate-Source terminals of the FET, sets a voltage across the Drain-Source terminals of the FET, reads this second voltage, and then reads the Drain-Source current. The Drain-Source voltage is then increased, the current read, and so on. In this manner, the Drain-Source voltage is swept from 0V to some defined maximum (dependent on the FET being tested) and an array of data (I_{DS} vs. V_{DS}) is generated. The Drain-Source is then reset to 0, the Gate-Source voltage is increased, and the entire process is repeated.
My problem is this: I need to generate a single Graph  (I think it should be XY, but not entirely certain), that plots all of these IV curves (each curve for each Gate-Source voltage) and indicates the Gate-Source voltage for each curve (in an indexed legend of some sort). Does anyone have any suggestions about how I should do this? My program is entirely based on For Loops and Sequence Structures. If you need a screen shot or want me to upload the program, please let me know. Fair warning, though: I am a LabVIEW novice so while the program functions correctly, it is not the prettiest in the world.
Thanks for any help you can provide.
Michael
P.S. I searched the forums and didn't find this question already posted. If, however, it was and I just missed it, could someone direct me to it? Thanks.

Vincent, Jon, and Andrew:
I still need some help. I used the 3524.vi Example for the XY Graph: x-array, y-array definition to generate the kind of multiple plot xy graph that I needed. My problem now is I would like to re-index the plots so that they are labeled according to the Gate-Source voltage I am applying. Each curve has its own, distinct Gate-Source voltage and I would like to label each curve with its Gate-Source voltage. Currently, the plots are labeled in the legend: Plot 0, Plot 1, Plot 2, ... Plot n.
How should I go about doing this (is there even a way to do this)?
Again, any help would be greatly appreciated.
Michael
P.S. I have attached a copy of my program to this message. As I said, it isn't pretty, but it works so far. Hopefully this will help you in forming your suggestions.
Attachments:
FET Characterization Program (V2).vi ‏100 KB

Similar Messages

  • Can load image from file using LabVIEW and display on IMAQ graph?

    I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?
    Thanks!

    Hey werwr,
    In response to: "I dont have IMAQ Vision for LabVIEW on my computer. Is it possible to load image file and display on an IMAQ graph?"
    As of right now, in order to read an image from file, you actually do need the IMAQ Vision software. The IMAQ driver without the Vision VI's will allow you to collect images from a framegrabber, and it will allow you to save those images to file. But the function that allows you to read an image from file does require the Vision VI's. Once you have the VI to read images from a file, you will be able to display the image on an IMAQ "Graph" or otherwise known as an Image Display.
    I hope this helps. Please let me know if you have any further questions.
    Thanks,
    DJ
    Applications Engineer
    National Instruments

  • Dynamically build VI using LabVIEW

    I'm currently working on an application and I would like to be able to generate VI's using LabVIEW. I remember seeing something like this being used before, so I would like to know how one would go about accomplishing such a feat. The point is that I want to be able to use LabVIEW to generate LabVIEW VI's add some elements to those VI's (controls, functions, etc).
    Thanks in advance,

    I can not comment on when, but it will become available, someday.
    Vision Builder has been doing this for years.
    The LV State Diagram Editor (which is wonderful by the way) can obviously edit diagrams and is apparently implemented as a VI!
    THe SD Editor (which is great by the way, I love this thing, NO MORE PowerPoint to design) is an incredibly small add-on. This leads me to suspect much of this functionality (i.e. VI's to edit VI's) is already implmented in LV, we just do not have mechanisms to get at it (other than using the very restricted tools mentioned above).
    I stongly agree with Wiebe in that this functionality will be rather challenging to master.
    It will also be dificuly to support!
    Imagine the type of code that would result. here
    is one mind bogling possiblity.
    Write three VI's
    "A.VI" alternately calls "B" and "C".
    "B.VI" Executes a "random VI" evaluates the reuslts and clones a modified version of itself as "C.VI" based its evaluation of the random code results and any prior experiments it has performed.
    C.VI then duplicates the actions of B.
    This could lead to a type of artificial intellegent code that is able to adapt it own algorithm.
    What happens if the code after learning and growing decides it does not want to do math anymore and would rather just listen to the same albumn over and over again?
    How does a support engineer address that?
    The reason I present this extreme case was that this functionaly, when it comes, it will be limited at first (as we see in dynamic event registration).
    I seem to remember Rolf Kalbermatter (on Info-LabVIEW) saying something like "Self modifying code is a bad idea and went out style years ago".
    Just my thoughts,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit

    How to add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit. Assume like my test data is like below:
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7
    The above graph generated manually in excel. I want to generate the same using excel report generation toolkit. when I use Excel Insert Graph.vi where the input data is 2D array with numeric data but here labview converts the empty cells (eg.x -axis 1,data1- is empty) as zero and while plotting i am getting zero for empty cell values.
    Can anyone please help me on how to plot the graph without adding zero for empty cells?
    Thanks&Regards,
    Bharathi T
    TE
    X-Axis
    Data1
    Data2
    1
    1
    2
    13
    2
    3
    14
    3
    4
    15
    5
    5
    16
    3
    6
    7
    7

    Hi Bharathi,
    The Excel Insert graph function takes in only 2d arrays as inputs. Since arrays can only have numeric values, any table with a null string is read as 0. Now to get a plot like you mentioned, you could read the table and replace blank Strings as NaN. NaN values in an array when plotted do not appear in the excel sheet. For reference I have attached a sample vi to help you understand.
    Regards
    Vijetha Nuthakki,
    Applications Engineer
    NI Systems India
    Attachments:
    Excel_graph_multiplot.vi ‏21 KB

  • Post macro in LabView to generate multi-graphs

    Hi,
    I would like to ask how to link and use an Excel Macro in LabView 7.1 to generate multiple graphs in Excel 2000.
    The most important thing is to be able to generate Excel-quality graphs in Excel without physically going through the ChartWizard procedure.
    Thanks a lot. Any idea would be appreciated.

    Mr. Liang,
    There is an example that ships with LabVIEW that shows how to call a macro in Excel.  It is called Excel Macro Example.vi. There are also quite a few discussion forum threads on calling into Excel.
    The Report Generation Toolkit also provides a lot of functionality for controlling Excel from LabVIEW.
    Doug M
    Applications Engineer
    National Instruments
    For those unfamiliar with NBC's The Office, my icon is NOT a picture of me

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How can you create a test plan generator using labview

    I am looking to create a testplan generator using labview to help RF Engineers translate test requirements into test parameters and wanted to know how i can go about it.

    Have you considered to use Teststand? Teststand organizes all the tests and allows to parameterize them.
    Creating a tool with a similar functionality will be more expensive than buying Teststand and modifing the operator interface.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • How to generate and print 20x20 datamatrix barcode using labview?

    Along with the barcode certain datas are to be added to the right of it.

    Since you started a duplicate thread - I'm going to continue in here.
    We have given you a number of different options to generate/print a barcode using LabVIEW.
    Do you have the Bartender software installed with the Automation (ActiveX) option? Can you print a label from within the Bartender Software? Do you know how to call ActiveX functions in LabVIEW? For the latter, if you Google 'calling ActiveX LabVIEW' you will get a lot of results. Once you know how to do that, you just need to know which Bartender ActiveX functions to call.
    I've attached a couple of screenshots from some quick code my colleague put together before to initialise Bartender, open a label template, fill in a field and print a label. Don't forget the close the references when your application exits. For more information you'll need to read the Bartender documentation.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Complicated graph on Excel using Labview

    Hello All
    1. I am trying to plot some complicated graphs from some csv data file. I have been able to do this in excel using chart wizard. However, I want to automate this process using Labview. I am stuck at trying to plot a excel graph with primary and secondary Y-axis.I am attaching the project file and the relevant Vi. I am also attaching a same excel sheet which shows the finished version of the graph. 
    2. I am also having trouble with formating the graph to make it similar to that obtained from excel.Specifically
    (a) How do I place the legends at the bottom of the screen
    (b) Also, how do to turn values on X-axis by 90 degrees and also display all discrete values instead of every 3rd or every 4th data point.
    Vi - MOS_FUT_Display1_Attempt4.vi
    data file in csv format - MOS_Scores_Generic_Overall_27Oct09.csv
    original excel along with reference output formatting - MOS_Scores_Generic_Overall_27Oct09.xls
    It is notnecessary for me to use excel to get my output, if I can use any other functions or vi to get the desired results, I am Ok with it.
    Thanks a lot for your help.
    Venkat
    Solved!
    Go to Solution.
    Attachments:
    MOS_FUT_automation.zip ‏61 KB

    Hi, i saw ur comments with an attachment,
    I'm not sure if this is the way you need to get to your outcome, but here is one solution.
    Attachments:
    MOS_FUT_automation.zip 32 KB
    and i was wondering do u still have it? and can you change it the 8.5? as im using labview 8.5
    if not could you take screen shot from me.
    Im quite interested in your program on how u create MOS_Scores_Generic_Overall_27Oct09.xls

  • Using labview to operate a signal generator

    Hey everyone,
    My name is Jake, I currently work in a lab at my university where we are trying to develop medical imaging via thermoacoustic tomography
    The problem I am facing is that we are trying to use LabVIEW 2010 to "talk" to an SML-01 Rohde and Schwarz signal generator. I have very little LabVIEW experience anmd have basically been teaching it to myself for the past month. I have downloaded a driver for the sig gen and have a GPIB cable to run from an oscilloscope (which we run labview on) to the sig gen.
    Would anyone be willing to help me figure out how to do this?

    An existing Instrument Driver exists here
    Edit{ ahhh you have the driver}  What  exactly are you having trouble with?
    Jeff

  • I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    I never used LabView but need to generate a RS-233 serial output string that contains an IRIG timestamp based on a contact closure. Is LabView an appropriate tool to do this? How much does it cost to get started with the product?

    Labview isn't cheap, but it would certainly allow you to build a program (set of vi's - virtual instruments) that would do what you describe. Where would the timecode information come from? Your vi, or program, would: Start up, initialize the serial port, loop until a trigger happened, read the timecode (from where?), output that timecode out the serial port in a loop until you pressed the stop button. There is a free evaluation of Labview software available from NI - the base product itself runs about $995.
    - Dave

  • How can a BILBO can be used as a pseudo-ran​dom pattern generator.​(using labview)

    how can a BILBO can be used as a pseudo-random pattern generator.(using labview) Can someone please give me an insight on how to do this asap, i would be exteremely grateful-thanks.

    Dear Deano,
    I am unfamiliar with the use of BILBO cells, but am willing to help as much as I possibly can. I managed to find a rather helpful website, which described the 4 functions a BILBO register is capable of – including pseudo-random pattern generation. A very versatile little circuit, I must say.
    Perhaps you could take a look at the website yourself, and confirm that this is the functionality you are interested in...
    http://tams-www.informatik.uni-hamburg.de/applets/​hades/webdemos/35-selftest/60-bilbo/bilbo4.html
    Could I also ask you to provide some more information about what you are trying to achieve. Generally, the more information you are able to provide on these forums, the more users will be willing to help.
    So my question to you is... are you trying to mimic a BILBO's functionality (using LabView) or talk to a piece of BILBO hardware (using Labview)? If the later is the case, could you let us know how you trying to communicate with the device.
    However, if the former is the case, and you are purely interested in random sequence generation, perhaps you should consider some of the LabView functions. They may be able to provide a more efficient means of producing random patterns. Obviously, the “random number function” springs to mind. You could easily use this in conjunction with a “less than” function to produce a random digital bit.
    Please also provide the version of LabView and Measurement & Automation Explorer you are using.
    Thanks you for your time,
    Best wishes and kind regards,
    Message Edited by RER on 04-07-2008 06:06 AM
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • Generating 0 and 1 signal using labview Daq card

    Hello,
    I’m working on a Project on the On/Off control of a pneumatic cylinder via a 5/2 solenoid valve.
    On State: Valve  O/P  1 pushes cylinder  İ/P 1
                     Value  O/P vents air.
    Off State: Valve O/P 2 pushes cylinder  İ/P 2
                       Value O/P 1 vents air.
    By this way we aim to move the clinder forward and back.
    We use Labview 9.0. I did not work on pneumatic system before,
    I will be happy if you could help me about  2 points.
    1)      How can we  enable the On/Off switching  between the 2  O/P’s  of the solenoid ?
    2)      How can we enable the timing between On and Off States. ( On: 0-5 seconds Off: 0-5 seconds )
    Do we need special code for Standard labview blocks will be OK ?     
    Thanks a lot.

    The digital out are a great place to start, however they are signal lines which means they don't drive a lot of current (~1mA). If your device isn't setup to accept digital signals you may have to use an external transistor to step up your amperage. See the link on here to get started 
    Labview can provide all the timing you need. I would search through the shipping examples (Help >> Find Examples) for digital output examples, there should be a bunch and one will probably work for you with just a little modification.
    Jesse Dennis
    Design Engineer
    Erdos Miller

  • Generate/Read ATML TestResults Files using LabVIEW

    I've become very interested recently in saving all my test results into XML files.  Seems like the wise way to go about this would be to use the ATML standard (http://grouper.ieee.org/groups/scc20/tii/IEEE1636-1TestResults/TestResults.html#complexType_doubleAr...).  I know this standard is supported in TestStand but I was wondering if any tools exist that would make it easier to use in LabVIEW.  (I could write it from scratch using LabVIEW's built in XML VIs but I'm not very familiar with XML in general so this would be time consuming)
    Any suggestions would be appreciated.
    ~GollumGTH

    Perry S wrote:
    Here is a picture of a the ATML report. Let me know if you have any questions.
    Based on his question, I think a copy of the XML file itself would be of more value, since he would like to construct the file himself. The image does not show the structure of the data.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Problems using Labview as ActiveX Server

    Hello,
           I have been having difficulty using Labview as an AcvtiveX server. I have reviewed all the postings on this subject and most are either pre Labview 8.2 and thus do not account for the changes made between 8.2 and 8.5 which broke the Activex server functions. I have looked at the recommendations for changing the to code to export (exported vi's in a DLL or Source distribution) and have tried these with no success. The closest example I have found was posted here http://forums.ni.com/ni/board/message?board.id=170&thread.id=283417 the example code they posted does ont work for me and still generates and error 3005.
          What i need is simple. I want to turn my applicaiton into a Vi server.. Expose a vi that acceses elements in the Vi server.. (controls, queues, Globals etc) that are in the Vi server context. I would then like to build a vi .. or dll that calls the 'exposed' vi in the vi server to pass data to or from the vi server. The V test.zip example file in the above indicated post is a pretty good example of this .. it just does not seem to work when i build it in 8.5. Are there any GOOD and 'current' examples of using labview as the ActiveX server (Compiled) and calling exposed vis from an external application Labivew, Visual Basic.. etc??  I am only interested in cases where Labview is the Sever. or both client and server.
           I have used a tool "ActiveXplorer" to examine the registered "exe" when the viserver is run. It always shows that there is no Type Library associated and the object is not creatable. There is a .tlb created by the project build however, where as the previous version 8.2.1 of Labview did not build that correctly. I have also tried this on 8.6 with similar error 3005 generated. sooooo what am i missing?
          Thanks
           Louis Ashford

    Mike,
           Thank you for your response to my question. The problem is that the example you site does not use the Labview vi as the Server. Excel is actually the vi server and the automation open is using and excel automation object. I am sure that Excel creates proper automation objects .. Labview however does not seem to. So while this example shows how labview can function as a client it is not an example of a compiled Labview Sever being accessed by a 'laview vi'. Possibly I am not looking at the vi that you are thinking of.
           The examples i am aware of:
                        "ActiveX Event Callback for Excel.vi... (Excel is server not Labview vi)
                        "ActiveX Event Callback for IE.vi (same Labview vi is client)
                        "Write Table to XL.vi" ( again excel is the server)
                        "3D Graph Properties - Torus.vi" (accesses an activex Control 'not' and Activex EXE)
                        "3D Lorenz Attractor Draw at Compeltion using 3D Curve.vi (Uses an activex  control not activex Exe server)
                        "3D Parametric Surface - Ribbon.vi (Uses an activex  control not activex Exe server)
                        "3D Surface Example - Fluctuating Sine Wave.vi (Uses an activex  control not activex Exe server)
                        "Excel Macro Example.vi (Uses excel as automation server..not Labview)
                        "FamilyTree.vi (uses MSComctlLib.ITreeView object not Labview as server)
                        "SlideShow.vi" (uses PowerPoint._Application not Laview as server)
          Most of the posts I have seen are for versions prior to  Labview version 8.2 (where the ActiveX server was broken) I have seen only a few posts that actually address the issue i am talking about. however thus far no real solution has been offered. I get the same results when compiling and testing this with 8.6..  as well. So have you tried this Mike? Possibly i am missing something very simple..
          The example i did find and gave the link to is a pretty simple one. This does not work on my machine at all. You can select the automation server that is registered with windows after running the server one time and this then breaks the client vi.. I have found by reselecting the GetViReference property node in the Client vi that it will the 'fix' the client vi as far as labview is concerened and it no longer shows and error. Now when you run the Client vi it will infact find the vi server and will launch it ok. However. The open automation object then hangs.. for quite some time then returns the error
    "Error -2146959355 occurred at Server execution failed
     in Client_reader.vi" Obviously the automation Exe (server) was seen because it was opened yet it did not return a valid reference so the subsequent property nodes in the client.vi will fail. Something is wrong with Labviews opening of or creating of automation objects..
              Thanks,,
                    Louis Ashford

Maybe you are looking for