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

Similar Messages

  • 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

  • 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

  • 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! 

  • 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

  • Can not measure temperature and voltage simultaneously

    I am a beginner with labview. I want to measre temperature and voltage simultaneously. When I run
    the VI, I can get temperature or voltage, but not togther. I attach my VI, please give me suggestion on
    how to make it work. 3X
    Attachments:
    heatflux.vi ‏1069 KB

    Since I don't know your exact configuration I will make some basic assumptions based on how it appears that you have configured the DAQ Assistant Express VIs.
    Assumptions:
    1. You have only one DAQ board in your system.
    2. You want to scan continously
    3. You want to acquire 3 temperature channels at a rate of 1000S/s and take 100 readings at a time
    4. You want to acquire 2 voltage channels at a rate of 1000S/s and take 1000 readings at a time.
    Based on this configuration your first problem is that you have configured the DAQ board to acquire continously in the first call to the DAQ Assistant (your first frame of the sequence structure). This ties up all the analog acquisition resources without releasing them. When you make your second call to the DAQ Assistant (your second frame of the sequence structure) you are creating a conflict because the DAQ board is already busy running your first request. At this point you are probably receiving an error but you might not see this since you are not doing error checking in your code. This is also why you are only getting one set of data. Next iteration of the while loop the first call to the DAQ Assistance reconfigures the board and executes again and so the cycle repeats itself.
    I don't have a DAQ board installed so I can't confirm with certainty if I am correct but you can do this by simply changing the DAQ Assistant properties. In the 'Task Timing' tab change from 'Acquire Continuosly' to 'Acquire N Samples'.
    Assuming this works all you have done is confirmed that my assumptions are correct and technically your program should work. So now some programming advice.
    It's ok to scan all channels at once even though they might not be of the same type so go ahead and configure all your channels in one DAQ Assistant call and get rid of the sequence structure. Decide on one set of parameters for Scan Rate and Samples to Read, in your case I doubt this will be a problem. Since you are performing the same analysis on all channels you don't need to parse your data simply pass the 'data' from your DAQ Assistant into a single 'Amplitude and Level Measurements' Express VI. You will now have a single array with all your Mean values based on the order the channels are configured. If you want to plot the data in different graphs all you need to do is parse your channels using the 'Split Signals' or 'Select Signals' Express VI.
    Hope this makes some sense.
    -Christer

  • 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

  • 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

  • Sr830 connected with rs232, reading freq and voltage doesnot happen simultaneously

    Hi,
    I am having a problem, trying to set the frequency and voltage in the auxiliary output simultaneously. I wrote two codes, one to set frequency and another to set voltage in the auxiliary output and used them as sub VIs to my main program which at this moment contains only these two elements. When I run the program the first time, both the frequency and voltages are set, but on subsequent runs only one item is set whilw the other retains the older value and I have to run the program again to set this parameter. What is the problem? can u please help me out. I am just one week into labview programming but I have to set up C-V hysterysis in very shor time, of which these controls are a part. Please find the programs attached.
    Solved!
    Go to Solution.
    Attachments:
    select frequency.vi ‏20 KB
    select voltage.vi ‏20 KB
    freq and voltage.vi ‏18 KB

    Thank you guyz for your respective suggestions, I have replaced the two serial port initialization into one and I have placed the write functions sequentially, with a VISA close and simple error handler at the end. I have aso terminated all the voltage, freq., and amplitude commands with EOL (\r\n) Now, when I run this program, in the first run nothing happens, the values for voltage, frequency and amplitude remains the same. On the second run only the first component, i.e., the voltage is set to the defined value the freq and amplitude remains unchanged and on subsequent runs, nothing happens at all. o, I can only set the voltage, but not the next two components. I am sorry, but I don´t if I am making some silly mistake, but why doesnot the write functions work sequentially now?  and BTW i have only one serial port connected to the Stanford research SR830 lock-in amplifier.
    Attachments:
    select voltage freq amp.vi ‏44 KB

  • 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

  • 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

  • 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

  • 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

Maybe you are looking for

  • How do I change default volume for bluetooth heads...

    I've just set my e71 up with my car bluetooth system.  When I make a call the volume is too low.  Is there a way I can adjust the default volume on my phone for bluetooth headset calls - without affecting the normal volume?

  • Transaction Variant: BBPSC02

    Hi Experts, I am facing a problem with the transaction variant which I have created for the standard transaction BBPSC02. Below are the steps which I have followed to create it in development system: In SHD0 Transaction, I have first created a varian

  • Convincing a SQL Servery guy on Advantages of using Packages

    Our Database Version:10g Release 2 To implement a functionality, i had to create 5 functions and four procedures(one being error logging proc). For modularity reason, I wanted all these functions and procedures to be in one single package. But my man

  • Flash player crashes all the time. How can I fix this?

    This is driving me crazy!! This happens too many times where I will be on a website with Flash and Firefox will pop up this message saying that the Flash player script has crashed and if I want to keep it on or turn it off. Basically what is happenin

  • How to Install and Configure Workflow For PO in Oracle Apps Version R12

    Hi, Please do let me know how to install and configure Workflow for Purchasing in Oracle Apps R12 Version. I want to the standard setup of workflow configuration for the PO. Thanks and Regards Srini