Best structure to measure voltage across 8 resistors in parallel via 8 separate analog channels

Im setting up a simple circuit w/ 8 resistors in parallel. It will be connected to a PCI 6036E DAQ. I need to measure the voltage across each resistor, take x amount of samples, and then automatically move on to the next resistor and so on and also save the values to a file.  Im going to connect each resistor to a separate analog channel.  I have already setup a vi to read the voltage across one resistor and take X amount of samples, display the waveform, and also save the data to a file.  
What would the best structure be to run this test?  I am thinking a Sequence structure, but it seems like people tend to avoid using that. Or would a case/while loop be better?
From my understanding, the data will not pass out of a sequence structure until it is finished. this doesnt seem to be that big of a problem for me, as I only want the data at the end....
thanks for the help!

Use a for loop.  Put your code inside the loop, but delete the analog channel number.  Make an array constant and poplulate the array with each analog channel number.  If you wire the array to the loop (left side), you will see the terminal is a hollow box.  This means indexing.  The loop will operate on the first array element, then repeat with the second array element, and so on until all array elements have been processed.  Wire the hollow box to the point in your code where the analog channel number was deleted.  Now the loop will execute the same code using a different channel each time.  If you wire the output to the right edge of the for loop, you will again see the hollow box.  All of your measurements will be contained in an array at that hollow box.  Process the outputs as you like, maybe display the entire array, or index the array to get the individual elements, whatever.  The advantage of the for loop is that you have to write your code only once.  Everything is seen on one screen making it easier to read.  Sequence structures are not good programming practice because a lot of the code is hidden, and you have to go to different sequence frames to see the hidden code.  Also, why duplicate the code in each frame when the loop will do it all.  Good luck.
- tbob
Inventor of the WORM Global

Similar Messages

  • Reading Voltage Drops Across Multiple Resistors

    HI,
    We are creating a PC interfaced IC tester. To do this we need to be able to monitor and record the behavior of the chip in question. The easiest way we have come up with to do this is to place common resistors on the inputs and outputs of these basic devices. By doing this we will be able to read the voltage drop across each resistor, since we know the resistance we can then figure out the current, we measured the voltage and we know all we need to. The problem we are having is reading in multiple channels of data at once. We are using Labview version 7.0 and DAQ PCI-6024E and have our inputs set up in differential mode. We can get one channel to read but when two are connected we have problems with our readings being affected by each other. I have attached the vi file so if anyone can be of any assistance it would be much appreciated. We are beginners here so please be as specific as possible and dumb it down if necessary.
    Thanks in advance
    Rylon
    Attachments:
    ICtester.zip ‏214 KB

    Hi Rylon-
    It sounds like you are seeing ghosting of signals between your channels. KnowledgeBase "How Do I Eliminate Ghosting From My Measurements?" should be helpful in reducing this effect.
    KnowledgeBase "Seeing the Same Signal on Several Scanned Channels, Especially when No Signal Is Conn... may also be pertinent if you are leaving the channels you're not testing without connections between testing channels.
    Thanks-
    Tom W
    National Instruments

  • Can the USB-9211 Thermocouple Input device measure voltages ?

    Can the USB-9211 be used to measure voltages ? It is designed for thermocouple measurements and its operating manual states there is a current source between its TC+ and TC- input terminals.
    What amount of current is flowing ? Does it depend on the selected thermocouple type ? Can the current level be controlled by sotware ?
    One application for me is to measure resistances of 1 ohm or less by measuring the voltage drop across the resistance induced by flowing a current through it. Might the 92111's current source be somehow used for this ?
    What is its peak to peak input noise ? Its specs say 1 uV rms.
    This is a delta-sigma converter. Is each successive measurement accurate or does some digital filtering have to be account for and thus it takes several readings for a signal change to become accurate ?

    The 9211 measures voltages between 0 and 80 mV only. The current source is only use to force a full scale input if an open thermocouple is connected and cannot be controlled by software. The input impedance of each channel between TC- and TC+ is 20M Ohm. However, the current that flows in the amplifier is very small, 50 nA.
    The main problem here is the fact that the current source is not controlled by the user. This means that connecting a resistor of 1 Ohm between TC- and TC+ would not just produce a voltage that maybe due to external exitation, but the internal source should also be taken into account. Since the user has control over it, it would be a guess work to try to make sense of any voltage value read in.
    its peak to peak input noise is 1 uV rms as indicated in the specs.
    So as long as the measurements allow for enough settling time (12S/s), each one is accurate.

  • Measure voltage on telephone line without adding noise?

    I am using a PCI 6013, and made a voltage divider (two resistors in series - 10MOhm and 1Mohm - so the telephone network doesn't see the additional load) to bring the 40 volt onhook v down to 4 volts for the card to measure (the off hook v will read .5 v down from 5v). I assume I must use the differential configuration to read this value? And how to keep from adding noise to the line?
    Any help is greatly appreciated.

    Hmmm, are you making a phone tap?
    I really don't know anything about telephone line specifications and what are the thresholds between noise and signal, but I do know about the DAQ board! Yes, I would say differential is the best configuration for you to use. This is almost a must to help reject the common-mode noise already on the phone line. It will also produce a lot less noise onto the phone line as opposed to referenced single ended mode. I doubt you'll put much noise on the phone line. You could probe the line with a scope with and without your "project" connected to see how it affects it.
    Sounds like fun!
    Russell
    Applications Engineer
    National Instruments
    http://www.ni.com/support

  • RSE mode measuring voltage

    To whom it may concern:
    I would like to post this question here so that it is easy to understand.
    I would like to ask how 6250 measure the voltage using AI+ and AIGND. One of your collegue told me there is no current flowing to Rin if AIGND = Vs(0). I am trying to measure 100ohm resistor using AI+ and AIGND. I used DMM to measure from the top the resistor to AI+, the current was 0A and measure the current from the bottom of the resistor to AIGND. The current is 0A.
    In fact, how 6250 measure voltage . If you put DMM instead of 6250, there is current going through DMM and you can show voltage. How about 6250. Could you please tell me?
    I have attached a picture to let you understand what I mean. and where I got the information.
    Here is the link
    http://zone.ni.com/devzone/conceptd.nsf/webmain/D5​9654FA44D2F9FA86256F4A006064F3
    Attachments:
    First%20Picture.jpg ‏33 KB

    Hello LochiMD,
    there are sereral things you have to care about.
    The best would be, you have a look on the following link:
    Synchronize continuous Acquisition of Multiple Analog Input Devices
    https://decibel.ni.com/content/docs/DOC-12182 (Have a look on the picture, especially left side)
    You should use the VI DAQmx Timing (Sample Clock), samples per chanel and sample mode is necessary.
    If you do this, your program should work.
    Best Regards,
    Nina

  • Trying to measure voltage through 1 wire connection

    Hai ,
           I am trying to measure voltage through 1 wire connection using NI hardwares like  1)chasis SCXI-1000   2) DMM PCI- 4060, 3) MUX SCXI-1127 and 4) Terminal Block SCXI-1331. Please see a attached picture of my set up.
      I am unable to establish my connection through  1_WIRE_LO_REF .I want to use it  as my reference point (GND) through which I can measure the voltage .I think there may be problem in my design or in the labview code.Could u please verify   and suggest the appropriate one.
    Can I use 1_wire_Lo_ref is so which port to be used, actually i have six ports for this point (or) is there any altenative
     I hope u respond soon and in the affirmative
    with regards
    madhava
    Attachments:
    Scanning_of_SCXI-1127_48_write.vi ‏144 KB
    IM0000041[1].jpg ‏722 KB
    IM0000041[1]1.jpg ‏722 KB

    Hi Madhava,
    Are you unable to get the example program to work?  Are you using an Aux cable to connect the switch to the DMM or are you triggering from the connector block of the switch?
    One good resource is to open the NI-Switches Help from Start >> Programs >> National Instruments >> NI-Switch >> Documentation >> NI-Switches Help.  Go to the Search tab and search for Single Module Scanning - Handshaking.  There are sections for SCXI or PXI depending on which form factor you are using.  This will explain which triggers to use and how to connect the DMM and Switch together.
    In the same help file, if you search for Scan Lists, this will show you the proper syntax for the scan lists.  The scan list can all be listed in one text box and does not have to be an array of strings. 
    I think the best way to proceed is to take the example that I showed you save it as a new program so you can go back to the original if you need, make it work and then modify it to do what you need.  Add the write to file for example.  If you have any questions about specific issues, I can help you with those.
    Thank You,
    Nick F.
    Applications Engineer

  • Measuring voltage and temperature

    Hallo,
    I've got the problem of measuring voltage and temperature simultaneously, with diferent numbers of samples. I want to use two of the "DAQmx write", but then the error "The ressource is reserved" appears.
    Software: Labview 8.2.
    Hardware: NI cDAQ - 9172
    NI 9211 (Temperaturecard)
    NI 9201 (Voltagecard)
    How can i fix it?
    Attachments:
    Fehler.JPG ‏89 KB
    Fehlerbeispiel.vi ‏27 KB

    Hello LochiMD,
    there are sereral things you have to care about.
    The best would be, you have a look on the following link:
    Synchronize continuous Acquisition of Multiple Analog Input Devices
    https://decibel.ni.com/content/docs/DOC-12182 (Have a look on the picture, especially left side)
    You should use the VI DAQmx Timing (Sample Clock), samples per chanel and sample mode is necessary.
    If you do this, your program should work.
    Best Regards,
    Nina

  • Programmed vs measured voltage on Keithley 2400 and other things

    Hello everyone,
    I have two issues with our Keithley 2400, which we control through Labview, and I would be very grateful for some help/advice. The issues are listed below:
    1) We use the 2400 for 4-point probe measurements, so we plot graphs of current vs voltage to get the resistance from the slope of the curve. However, when we look up the data generated during a measurement, the voltage sweep values that we program often, but not always, do not match the measured voltage values. For example, what was meant to be 1 V, might actually end up being 1.2 V or maybe 0.8 V, this can be both positive and negative with respect to the programmed values and is not constant. This also leads to the fact that our curves, although straight (so Ohmic conductor), do not go through the (0, 0) point on the graph.
    2) Second problem is that we would like to determine what is the time between successive measurements in a voltage sweep. We have tried some example vi files that by default come with the Labview, e.g. Keithley 24XX Read Multiple - SW Trigger or Keithley 24XX Read Multiple. If someone knew how to find the time separation, then we would be grateful. We only have control over the number of invididual readings taken and the timeout, which we guess is the maximum time allowed for the measurement.
    Many thanks!

    Good Afternoon PiotrW,
    1. Could you please provide the code you are using to program the voltage sweeps? 
    2. You could use the timestamp output of the Keithley 24XX.lvlib:Read (Multiple Points).vi to allow you to find the time difference between successive samples. It should be a simple case of subtracting succesive measurements from each other to find the time difference between data points.
    Regards,
    Al 
    Regards,
    Al C
    National Instruments,
    Application Engineer

  • Measuring voltage from thermocouples

    How do i measure voltage from a thermocouple which is joined to another one. Meaning that they have a common point. I have tried reading in a voltage from 1 point and then subtracting it with the other but it does not give me the reading the multimeter is showing

    Hello,
    For troubleshooting bad readings, probably the first thing to do would be to check the board's configuration.
    Is it configured in differential mode? Differential mode is the most recommended mode for thermocouple readings. When using differential mode, just make sure to connect the positive lead of the thermocouple to ACH0 (for example), and the negative to ACH8.
    Once you have all the signals connected to your DAQ board, try running a MAX Test Panel. I usually run it using Continuous Mode. Before starting the acquisition, check the input limits in MAX, adjust them according to the input signal so that the board applies the appropriate gain.
    Finally, create a Virtual Channel (by taking into consideration the thermocouple type). Are you re
    ading the correct temperature? Is the CJC in your terminal block enabled? It's always easier to compare the temperature than the millivolts readings.
    I hope these tips help. Good luck with your application!

  • How can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    how can i synchronize analog output and analog input timings to generate and measure voltage at the same time.

    Read this Tutorial
    http://zone.ni.com/devzone/cda/tut/p/id/3615#toc3
    And also refer to this link where You have repeated this question.
    PS: Please stick to one thread. That way, its easier to keep track of your query and answers

  • I have trouble reading a voltage across a FP-AI-102.

    I have read a constant voltage across a voltmeter, yet when I plug into the FP-AI-102, the voltage jumps around. I have also tried changing the source of the voltage to a DC power supply, in which case the LabView software reads the voltage perfectly. I believ it is a problem in my programming. If you have any suggestions on a possible way to program the LabView to read the voltage, please let me know.

    It sounds like your voltage is an AC voltage. Your voltmeter typically will employ an integrating ADC which essentially averages its readings to get a steady reading. If your signal is changing, similar to a sinus signal, you will see a changing voltage at the fieldpoint analog input level. Since the ai102 can scan its inputs at about 200hz or more (2.8ms), you get lots of voltages to work with. You can test this theory by putting your voltage on an oscilloscope.
    So, in LabVIEW scan the voltages as fast as you can, and then either average, or better yet use a statistical median. I like the median as it is not affected by outliers.
    I hope this helps.
    Sincerely,
    Preston Johnson
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • How to measure voltage?

    Equipment used:
    - Connector Block CB-68LPR
    - DAQ Board NI6013
    - VI Logger
    - Pressure tranducer (runs on 5V)
    What am I trying to do:
    - Connect pressure tranducer to connector block, so I can display measured voltage in VI Logger.
    What I have done:
    - Pressure tranducer has got -Vin +Vin +Vout. I have connected +Vout to AI ch0 and -Vin to AI ch8 (differential).
    - In VI Logger, I have created virtual channel that is reading Voltage (max 50V, min -50V).
    The problem I have got:
    - VI Logger is reading 5V all the time. The voltage should increase/decrease lineary as the pressure is increased/decreased
    but it doesn't. It is always 5V that is not true. I have tested the device in the test panel and Vout (ch0.) is always 5V exact.
    How
    to solve this problem? What and how should I check, have I connected everything properly?
    Thank you.
    Regards Slav.

    I had a similar problem. I changed the input from differential to single ended and it works. You need to connect your V- to Agnd. Unless there is a reason you need to read differential...thermocouples that I set up work fine in differential but there is no common ground to a voltage source.
    Make sure you have set up the Virtual Instrument in MAX properly. Good luck.

  • Recording measured voltage and current values from LCR 4284A

    Hello,
    I want to use the labview VI to record the measured voltage and current values from LCR 4284A. These are shown as Vm and Im on the instrument screen. Is it possible to record these values using a VI?
    I have looked through the drivers that are available through the "Instrument driver network" (Link) for 4284A but none of the VIs give any option to monitor Vm and Im. If you know how this can be done then I would really appreciate a reply.
    Thanks
    Mansoor

    I haven't used the instrument but there are functions to enable/read voltage level and current level monitors. Are those different than what you are asking for? What does the manual say about Vm and Im and programatically getting them? If you can find the command in the manual, you can just open the VI Tree and do a text search for the command.

  • Measuring voltage with gpib board

    I am using a NI AT-GPIB/TNT PnP board !! I am trying to use it to measure
    voltage levels. Can i do this with out using an external instrument ??

    Hi Daemon
    GPIB boards are just for instrument communication only!!! They are certianly
    in no way designed to measure voltages.
    Tim
    daemon wrote:
    > I am using a NI AT-GPIB/TNT PnP board !! I am trying to use it to measure
    > voltage levels. Can i do this with out using an external instrument ??

  • Which is the best way to edit this program and make it read 1 sample from each channel?

    The original program was made with Traditional NI-DAQ. I have edit it to DAQmx the best that i could. The program it's already applying the voltages that are generate in the code(Daqmx Write.vi). But i'm having problems with acquiring voltages it's giving me rare readings(Daqmx Read.vi)  i don't know if i have to make a (Daqmx Start Task.vi) for each channel in the program or if i can make it work with a single one. Notice i have not make many significant changes because this program is already running in another lab and they give to us the program so we didn't have so much problems but instead of getting the BNC-2090 they got the BNC-2090A that uses DAQmx instead of Traditional. So anyone can help?
    Solved!
    Go to Solution.
    Attachments:
    2 Lock-In, 2 V Amp, Vd Amp - 090702(MTP).vi ‏100 KB
    2 Lock-In, 2 V Amp, Vd Amp - 090702(MTP)new.vi ‏107 KB

    A BNC-2090 is just a connector block.  It has no effect on whether you need to use DAQmx or traditional DAQ.  That is determined by the DAQ card you are connecting the terminal block too.
    You might be referring to this document Differences Between the BNC-2090 and BNC-2090A Connector Blocks, but that is just saying to the change in the labels of the terminal block to accurately reflect the newer DAQ cards.
    What problems are you having with the new VI you just posted?  Are you getting an erro rmessage?  I don't know what "rare readings" mean.
    You really shoud look at some DAQmx examples in the example finder.  Some problems you are having is that your DAQ blocks are all sort of disconnected.  Generally, you should be connecting the purple wire from your create task function, throught the start, read or write, and on to the close task.  Many of your DAQ functions are just sitting out there on little islands right now.  You should also be connecting up your error wires.
    With DAQmx, you should be combining all of your analog channels in a single task.  It should look something like Dev0/AI0..AI7.  Then use an N channel 1 sample DAQmx read to get an array of the readings, which you can then use index array to break apart.
    Other things you should do is replace the stacked sequence structures with flat sequence structures.  Turn on AutoGrow for some of your structures such as the loops.  In the end, you might find you can eliminate some sequence structures.

Maybe you are looking for