Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 Physics 434 Module 1 About the computers: –You can save VI’s on the local disk. put them into My Documents\your_name (But beware: no backup, no protection)

Similar presentations


Presentation on theme: "1 Physics 434 Module 1 About the computers: –You can save VI’s on the local disk. put them into My Documents\your_name (But beware: no backup, no protection)"— Presentation transcript:

1 1 Physics 434 Module 1 About the computers: –You can save VI’s on the local disk. put them into My Documents\your_name (But beware: no backup, no protection) –Or just use catalyst for temporary storage! Review of last week – some important LV lessons –Controls, indicators, while (and for) loops, graphs –Right-click! –Tool options: auto, menu, or tab –Cntrl-b (remove bad wires, with care) –Cntrl-z (undo) –Shift-right-click: bring up the tool menu Physics 434 Module1A

2 The next two weeks Introduction to DC I/O capability of the PCI-E board and use of the break-out box –  10 V out, upto 8 measurement channels, also  10 V. Wire a simple circuit on a breadboard –Layout guidelines –Oscilloscope, DVM auxiliary tools 2Physics 434 Module1A

3 The “voltage divider” circuit 3 dac0 ach0 ach1 Physics 434 Module1A R1 = 100  R2 = 200  +

4 PAUSE FOR SELF-TEST Physics 434 Module1A4

5 5 Properties of the USB DAQ –up to 16 input channels, multiplexed to a 16-bit ADC (we use four, configured as two differential) –2 output channels (2 16-bit DACs) (we use one) –Questions: what does 16-bit mean? Linear A vs. D: but what are the offset and scale factors? Can you control them? Differential vs. single-ended? Reference: the full manualthe full manual Physics 434 Module1A

6 Basic block diagram Physics 434 Module1A6 See the full manualfull manual

7 Analog input Number of channels …………….………….8 differential or 16 single ended ADC resolution bits Sample rate Maximum kS/s Input coupling DC Input range ±10 V, ±5 V, ±1 V, ±0.2 V Input FIFO size ,095 samples Physics 434 Module1A7

8 Analog output DAC resolution bits Maximum update rate (simultaneous) 1 channel kS/s 2 channels kS/s per channel Output range ±10 V Output coupling DC Output impedance Ω Output current drive ±5 mA Output FIFO size ,191 samples shared Physics 434 Module1A8

9 9 Analog input/output wiring Differential inputs: 12” twisted pairs (yellow-blue +, blue -) –Input channel 0 (ach0): AI 0/AI 8 [1/2] –Input channel 1 (ach1): AI 1/AI 9 [4/5] Output: red/black(gnd) twisted pair –channel 0 (dac0): A0 0/ A0GND [15/16] Note that while the inputs are “floating”, the output is not: it is relative to ground (black wire at 16) Insert under the bar, as shown It is important that all stations are the same. Physics 434 Module1A dac0 acho ach1

10 10 Testing: get the testio vi Click on the calendar entry; copy Module1.llb to your space; open it, then the vi test_io We rarely build vi’s completely from scratch: this is a framework, around a custom vi to do the I/O Physics 434 Module1A

11 Features of the test framework Knobs, dials for the input, two outputs A special test mode – an important feature for experimental design I/O put into a special sub-VI with three “frames” –Set dac0 using a DAQ assistant –Delay (default 0) (allow system to adjust to change) –Read ach0 and ach1 with another DAQ assistant. –All set for -10 to +10 volts: you may want to change later. 11Physics 434 Module1A

12 Procedure for this week Set the test mode of the test_io VI to produce outputs according to what you would expect from Ohms law. Revise the VI so that you can generate a graph like the one you sketched (see the graph example in graphdemo vi, or examine fig 8.17.) Wire up the board with the two resistors, and make connections to the breakout board, to correspond to the question. Neat layout is very important, for you to understand, and for us to help! 12Physics 434 Module1A

13 13 Hints VI: keep neat, use labels and add comments Test each piece first! You can have separate vi’s Breadboard: Lay out the circuit neatly: use the space If appropriate, test the circuit with power supply, DVM or scope before trying to run the VI. Keep good notes: a personal lab book is best Use reference material Ask a staff member Physics 434 Module1A

14 Requirements for the VI Sweep through predefined set of values for setting V0 (perhaps a for loop) Record values for V1 and V2 for graphs and analysis, using either or both experimental or test modes. Plots: –V1 and V2 vs. V0: the data and your expectation (test mode) perferably on the same graph, each labeled (so 4 graphs on the same plot) or two plots) –V2 vs. V1 (as in the pretest) Analysis: –Discuss the graphs and comment on the results –Measure and comment on the ratio V2/V1 and the sum V2+V1. (You may want to have plots or at least some measurements) Physics 434 Module1A14

15 Turning in your VI(s) Operate | Make current values default – needed to record your results by saving the graphs File | VI properties | Documentation: write a little report, containing your name(s), purpose of the VI, implementation features, conclusions. Submit multiple VIs in an llb, like Module1. 15

16 Bonus (upto 5) see if you can detect the fact that either input or output are discrete! Make separate VI. Physics 434 Module1A16

17 17 Next week’s circuit Set the voltage here… And measure the voltage and current here The IRF511 power MOSFET Transistor. Physics 434 Module1A


Download ppt "1 Physics 434 Module 1 About the computers: –You can save VI’s on the local disk. put them into My Documents\your_name (But beware: no backup, no protection)"

Similar presentations


Ads by Google