Using XY Graph to plot current and voltage

Hi,
   I'm making an I-V curve tracer, and am hoping to plot current and voltage measurements I'm acquiring onto an XY Graph in realtime.  I'm using Labview 2010 on Windows Vista, with the VISA drivers installed; my acquisition hardware is an Arduino Uno communicating over USB to serial via VISA drivers.
My data is coming in over the serial port formatted like "voltage,current":
237,521
320,402
I've read through the relevant documentation for the graph builder, the 4 samples included with LabView, and quite a few posts on this forum.  I modified Jazlan's sample VI to read the current and voltage, and display the values on the front panel - it works just fine.  However, when I wire those values to an Express XY Graph builder (and set the 'clear data on each call' property to false) and run the software, it just sort of freezes... I try to stop it, but it keeps running for about 10-20 seconds.  The current/voltage values are not updated, nor is anything displayed in the XY graph.
Am I not sending the correct input to the graph builder?
Should I just wire up my values directly to the XY graph by concatenating values to an array, and then clustering it?
Also, on the right border of my case structure, one of the orange squares is not solid - how do I fix that?
any help much appreciated!
imran
Attachments:
block.jpg ‏140 KB
project.vi ‏76 KB

thanks for the tip Tim,
    I wired up the stop button to the VISA close block, and now I'm able to run and stop it multiple times without freezing.
1)  I know how to add shift registers, but why do I need one?  It doesn't seem like I need to pass values from one iteration of the while loop to another...
regards,
imran
Attachments:
project.vi ‏43 KB

Similar Messages

  • How plot Current VS Voltage (XY graph??)

    Hello,
    I obtain current and voltage by analog inputs of an USB 6009, and I need to plot it in the same graph (C vs V).
    Please help me, it is very important to finish my proyect.
    I attachment a sample of the graph that I want.
    Thanks
    Attachments:
    XY deseado.jpg ‏31 KB

    [email protected] wrote:
    Can anyone  tell me how to plot a graph in labview with any other parameter other than time on x-axis. I am not able to plot v versus i graph, as I guessed it is only able to plot v versus time and i versus time! 
    You can edit the label of the x axis to say anything you want. The string "time" is only the default label. If the X values are equally spaced, all you need is define x0 and dx for a plain waveform graph. If the x values are not equally spaced, you need an xy graph.
    You really need to be a bit more clear explaining what you want. Attach your code and some typical data. Show us what you get and explain what you want instead.
    All this is well defined. No guessing needed (especially if your guess is wrong!).
    LabVIEW Champion . Do more with less code and in less time .

  • How to measure current and voltage and rpm with daq device

    i am measuring current and voltage and am wondering should i use shunt resistors or current sensors hall effect sensors. i have a pci 6221 and a scc-68 breakout box. what specifications or size should the shunt resistor/current sensor be or should i use another device to measure the currrent and voltage. do i need any other safety device between the resistors, current sensors and the scc-68 breakout box when measuring the current and voltage. will the daq card pci 6221 pick up a signal from the resistor. what terminals should the wires from the resistors and current sensors be connected to in the scc-68. i am using a proximity switch to measure rpm of a motor. should the proximity switch be 2 or 3wire connection. should it have an analog or digital connection and is a power supply required to power the proximity switch and should it have an npn or pnp connection

    hello,
     i was going to use a 20amp 50mv, or a 20amp 100mv current shunt and connect wires directly into the AI input terminals of the scc-68 from the current shunt would these be suitable. would current shunts such as these be suitable to use http://uk.farnell.com/elc/sh10020/shunt-sh10020-20a-100mv-1-class/dp/1319576 or http://uk.farnell.com/datel/3020-01098-0/shunt-50mv-20a/dp/1339338
    is it ok to use either a current shunt or should a hall effect sensor be used  such as this http://ie.farnell.com/honeywell-s-c/csla2cd/sensor-hall-effect/dp/1082269 . which of them would be more accurate or are both of them fairly accurate.
    when i am measuring voltage can i connect two resistors between the positive and negative of the wires going to the battery and connect two wires from either side of the resistor directly into the analog inputs of the scc-68 and measure the 12-15 volts directly would the pci6221 and scc-68 be able to measure the voltage drop across the resistor.
    i wanted to measure rpm also does it matter whether the proximity switch has 2 or 3 wires and should it have an analog or digital/frequency output for cponnecting to the scc-68

  • Measure current and voltage in Elvis and labview

    Hi!  We're setting up a control system setup for class where we need to monitor the current and voltage that we are supplying/drawing from the ELVIS hardware within a LABVIEW setup.  So far, we can accurately display voltage input and outputs from the AI and DAO terminals respectively.  However, we can't seem to find a direct way measure current draw.  I believe that we are supposed to be able to get DMM readings from the AI5 channel, but either we're not doing it correctly, or we still need to place a known resistance across it (which we cannot do, due to variable loads).  Any advise please?
    Cheers,
    Gerald

    Are you using Elvis I or II?  From your post, I will assume it is Elvis I but please correct me if this is not the case.  Page 38 of the manual shows that ACH5 is used for capacitor or diode measurements for the DMM.  To measure current, use the connectors on the front of the Elvis unit and then route the current HI/LO on the protoboard to either the oscilloscope or an analog input channel.  You can use the DMM Soft Front Panel to monitor current as well.
    Message Edited by h_baker on 07-09-2009 04:54 PM
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • When simulating a circuit, how do I display current and voltage on the circuit?

    Hello, how do I get Current and Voltage to display on the circuit design without using meters?

    saxyman123,
    You can use probes (yellow instrument towards the end of the instruments toolbar) and then set the properties.  You can choose to display just current and voltage.
    Regards,
    Pat Noonan
    National Instruments

  • What are the safe limits of current and voltages

    What are the safe limits of current and voltage of an ac signal to the NI USB 6008.

    Hi hanan,
    current is voltage/resistance. There surely a resistance is given too...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Current and voltage trasformer

    Hello to all,
    I'm developing a system of power analysis based on "Electrical Power Measurement Toolkit".
    I think to use a system based a cRIO-9075 and a NI 9215 (simultaneous sampling).
    I think to use this current and voltage trasformers:
    http://www.magnelab.com/products/Current-Voltage-Sensors/solid-core-ac-current-sensor-uct-0300-
    http://www.magnelab.com/products/Current-Voltage-Sensors/potential-voltage-current-transformers--spt...
    The voltage range in output from these sensors (0 - 333.mV) disagrees with that of the acquisition module (0 - 10 V).
    There might be a problem of signal levels? In this case, can you tell me how to adapt the signal?
    Any other configurations are welcome.
    Thank you very much,
    Federico.

    There is no problem, the NI 9215 has a minimum voltage acurracy of 0.003 V........just set the measuring range of the Daq card in DAQ asistan from 0-10 V ....to 0-1 V.
    Have a nice day! 

  • Connect RS232 with labview to read current and voltage values.

    Hi, I am trying to connect my microcontroller kit which will measure the current and voltage. I was provided with rs232 port to connect with labview to read the voltage and current data that is measured by my controller. How to make it display both current and voltage value by acquirng the data from rs232. I tried some programming but it doesn't work or it was wrong. How to make it work ?
    Attachments:
    pro.vi ‏13 KB

    As we said in the other thread, you need to talk to whoever is designing the microcontroller and decide on a specific format for it send you the data.  Once we have that, then we can start talking about how to program this up.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Does anyone know how to use ELVIS in Labview to get current and voltage measurements?

    Trying to use ELVIS in Labview to get measurements with a NI myDAQ.

    I have changed from using the ELVISmx driver as I was unable to call on the digital multimeter of the myDAQ twice, I have set up a VI using the DAQ assistant with the myDAQ, I am using the AI0 port for a voltage reading and using the DMM for my current reading, the circuit is working as I am measuring the voltage on a resistor after the ammeter but I am unable to get a current reading in order for it to work. If I have something wired wrong please let me know, thank you. My circuit is a 12VAC power supply, going through a potentiometer to drop the voltage to 8VAC, which passes through a resistor, ammeter is in series after this and attached to another resistor to complete my loop, the AI0 for my volt meter is connected across the second resistor, I have the proper voltage reading when I run the VI, but am unable to get a current input. Thanks for the help.
    Attachments:
    Mikes Project2.vi ‏131 KB

  • Mixed Signal Graph Legend Plot Name and Graph Area Y Scale Name hidden

    I have a customized mixed signal plot grpah and it when the plot names are written to it, it autosizes things and they are in chaos with overlapping text.  Is there a way to fix this?  I am also expereincing several labview crashes...
    Attachments:
    Mixed Signal Graph Problem with Legend and Y Scale Fit.vi ‏9 KB

    Hi id,
    i am having the same problem, 
    if you were able to fix it, can you please share your fixing method.
    appreciate it
    Thanks

  • Problem with Get the current and voltage from HP Power Supply (HP E3631A), using the GPIB interface.

    my USB device's power support is from the DC Power Supply ( HP E3631A)
    I need to read using current from a DC Power Supply ( HP E3631A),via GPIB interface.
    When I use the follow command.Why can't read the current value.My environment is in vc++ 6.0.
    "APPL P6V,5.0,1.0"
    "OUTP ON"
    "MEAS:CURR? P6V"
    attached the NI SPY File.Please check it.
    Can you tell me what the problem is ??
    Thanks in Advance !
    Hope you can solve my problem !!!"
    Attachments:
    E3631AERR.spy ‏7 KB

    Hi neilchuang,
    A read timeout error is usually caused by an error on the command string sent.
    The first thing I would check is if the instrument requires a termination character at the end of each message (such as linefeed). I noticed in the Spy capture that the commands do not have a termination character attached. This means that the instruments never recognized that you completed the query command, it doesn't execute the requested action and as a consequence of that it doesn't have any data to return.
    One question: Is the instrument detected by MAX when you scan for instruments?. If yes then you can assume that the GPIB software and hardware are properly installed. The scan for instruments sends the *IDN? (terminated by a linefeed). You can right-cli
    ck on the instrument entry in MAX and select "Communicate with instrument". Notice that at the end of the command the linefeed is included (\n).
    Double check with the instrument manual if the commands sent are the right ones.
    Finally, there is an instrument driver available in the idnet library: www.ni.com/idnet. Search for 3631. Since you are working in C you can use the LabWindows/CVI Plug and Play driver. Even if you decide not to use the instrument driver, you can still use it as an excellent reference on how to program with the instrument.
    Hope this helps!.
    DiegoF
    National InstrumentsMessage Edited by Molly K on 02-18-2005 11:05 PM

  • How to read three parameters for exemple temperatur​e,current and voltage from the same port with visa read and separate them in a table

    Hi i want to read parameters with visa read, from three sensors related to  pic16f877a, using  module xbee ..but i want to make every one from those parameters (temperature, voltage and current) in a table ..it's the first time i use Labview so i don't know if ther is a solution for my problem so if any one have any idea please help me. thnx in advance. 

    [email protected] wrote:
    Hi i want to read parameters with visa read, from three sensors related to  pic16f877a, using  module xbee ..but i want to make every one from those parameters (temperature, voltage and current) in a table ..it's the first time i use Labview so i don't know if ther is a solution for my problem so if any one have any idea please help me. thnx in advance. 
    The short answer is: "Yes, of course."  But you are going to have to do the legwork and learn LabVIEW basics before we can offer meaningful help.
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Output current and voltage limit

    I am currently using a PXI 4130 to output 1mA with 2V backing. I am measuring the voltage and current with a DMM and I am getting good values. I need to be able to prove that the voltage and current will not largely exceed 1mA or 2V so that it will not damage any components. Looking at the code I used it says that voltage level range is 6 and current limit range is 20 and I am not sure what that means exactly. What precautions/values can I change to make sure these values never get exceeded
    Thanks
    Attachments:
    NI-DCPower Source DC Voltage.vi ‏48 KB

    Hello lvuser,
    In you code you are also measuring the voltage and current back into your program. You can make programmatic decisions based on these measurements, for example, stopping the program based off of a voltage that floats too high. Our devices make sure to try to maintain the voltages and currents you tell them by completing a closed loop system with measurements taken on the same inputs that are sourcing. Try taking the readings you get in your program and using some threshold to trigger a case statement that holds a function to close the resource and turn off the generation.
    Regards,
    -Travis E
    National Instruments
    Applications Engineer

  • NI Elvis Read Current and Voltage Simultaneously

    Greetings,
    I'm trying to read voltage and current on an NI Elvis II to characterize the output of a TENS unit (currently using SignalExpress). 
    What I have worked out:
    Thanks to advice on another question I asked earlier today, I've now got the timing worked out so that I can produce log data at 10kHz when measuring voltage through the CH1 Scope input.
    I'm now moving on to the other have, and am trying to add current in as another task.  It makes sense to me to try and read that through the DMM current input.  However, I'm getting errors that will only allow me to read the value once, instead of at the 10kHz rate I measure the voltage at (and would prefer that they are read in sync).
    This seems like it should be pretty straightforward to do, but I'm just not seeing it.  It's really important (in a non-academic and non-job way) that I get this done tonight, and I really appreciate all the support this board has offered.  If there's anything I need to provide to make the issue clearer, please do not hesitate to post.!
    Would it be easier to run this through LV proper instead of SignalExpress?

    The DMM that is onboard the NI ELVIS II is not specced to run at the rates you're requesting. In fact, the DMM is a software timed device, which means that it will only collect samples when your computer tells it to. I created a quick benchmarking code to see how many measurements that an ELVIS II could take per second and I came up with about 4 or 5. You can recreate the code yourself to see similar results. 
    After one second, the elapsed time Express VI will output a 'true' which will stop the while loop. The DMM will be constantly acquiring and writing data into an array. When the while loop has finished, an array of DMM data will be output. The size of this array will indicate the number of samples that can be read in one second. 
    Nathan M.
    Applications Engineer
    National Instruments

  • Offset problem in simulating current and voltage phase relation of parallel rlc circuit, Is it a bug ?

     tested multisim for Parallel RLC Circuit with voltage source as in 
    http://www.electronics-tutorials.ws/accircuits/parallel-circuit.html
    But the current flows through the inductance L has DC component as in the picture attached (the red sine wave).  Is it  a bug ?, please tell me how to correct it.
    Attachments:
    phasor.jpg ‏183 KB

    Hi there,
    As strange as this may sound, this is not a bug. OK, this sounds really funny, but I am totally serious, and I am going to explain why:
    In a circuit energy must be conserved.
    An inductor is a purely reactive component, that is, it does not dissipate any power.
    When simulation starts, Multisim assumes the inductor current to be 0, which may seem reasonable. The voltage across the inductor is also 0 at this point. This is the initial condition.
    The voltage across the inductor increases, and thus, the current increases. The current keeps increasing during the first 2 quadrants of the sinusoidal phase output.
    The current never decreases until the voltage drop is negative.
    But by the time an entire cycle is over, the current is back to 0. This makes sense as energy is conserved and the inductor is not absorbing any energy.
    OK. Now look at what happened. During the whole cycle, the current was positive only! The current increased during the first half of the cycle and returned to 0 during the second half. This is because of the fluke of initial conditions! In fact, a good circuit simulator will maintain the DC offset for a long duration. The DC offset may drift because of rounding errors and the like.
    This will never be observed in real life as real inductors have winding resistance and other problems.
    OK, so, if you would like to see no DC offset, do the following:
    Run your simulation
    Record the DC offset that you want to eliminate
    Stop your simulation
    Double click the offending inductor in the Multisim schematic
    Click on the Value tab
    Check the Initial conditions box under Additional SPICE simulation parameters
    Enter the negative of the DC offset that you recorded in step 2 into the box right next to it
    Start your simulation. Did your offset go away? Or did it double?
    If your offset doubled, take away the sign from the DC offset that you entered in step 7. I bet you know why.
    It took me a while to figure this one out. Hope that helps!
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

Maybe you are looking for

  • Data template multiple selection problem

    Hi all, I have a problem with the Multiple Selection on the BI Publisher using data templates. One of my parameters is called p_application, this parameter is a integer/number and its values come from a list of values. I'm getting the error "....inva

  • How to store photo images in a database table?

    Hello Y'all, How do I store about 695 signs inventory photo images from a PDF file to an Oracle database table? We are using Oracle 10.2.0.2. What data type should I use for these images? How about the table space? What table space should I allocate

  • How do I transfer Acrobat 9.5.2 from my old machine to my new machine?

    I have a Vista machine upon which I bought and downloaded Acrobat 9. I now have a new Windows 8 machine (HP). How can I download Acrobat 9 onto my new machine?

  • Select options  and BSP

    Hello Friends, I am might be on my way to buy Thomas book ( advance BSP programming along with CD ) where I want to see how select-options works in BSP Just intrested to know, if any one has already tried this and what was the experience ? Or mean-wh

  • CS 3.3 with Fireworks and Acrobat 9 Just Announced

    I just saw this. Those of us who have been waiting for Fireworks (or are about to fire some off) it's here. CS 3.3 also includes Acrobat 9. www.adobe.com