Data Acquisition Flashcards
What are the four standard elements of a DAQ device? (A single answer is correct)
a. Analogue I/O, Digital I/O, Counters, Pulse Width Modulation.
b. Analogue I/O, Digital I/O, Counters, Frequency.
c. Analogue Output, Analogue Input, Digital I/O, Frequency.
d. Analogue Output, Analogue Input, Digital I/O, Counters.
d. Analogue Output, Analogue Input, Digital I/O, Counters.
Analogue and Digital I/O’s, and Counters (iterations).
From that you can then measure freq, pwm, period etc
Which of the Figures Q illustrate LabVIEW code to implement a Functional Global Variable? (A single answer is correct).
A, B, C, D
A
The general form of a function global variable includes an unitalicized shift register with a single iteration for or while loop.
So the only one with a perpetual loop with a stop button is A.
Which of the following statements about an optical quadrature encoder with 200 counts per revolution are correct? (More than one answer may be correct).
a. The resolution will be 0.45 deg.
b. The resolution will be 1.8 deg.
c. Differentiating the signal encoder output will produce a noiseless angular velocity signal.
d. The output of the encoder will be a digital signal
a. The resolution will be 0.45 deg.
c. Differentiating the signal encoder output will produce a noiseless angular velocity signal.
d. The output of the encoder will be a digital signal
a. 360 deg / 200cpr = 1.8 / 4 = 0.45 deg …divide by 4 as quadrature!
c. Will essentially smoothen it, think TV
d. Encoder can only output digital
Which of the following statements regarding optical encoders is correct? (A single answer is correct)
a. Optical encoders output a digital signal.
b. Optical encoders output an analogue signal.
c. Optical encoders utilise small magnets inside them to sense position.
d. Optical encoders always have a high resolution.
a. Optical encoders output a digital signal.
Which of the following statements about race conditions is correct? (A single answer is correct).
a. Race conditions are easy to identify and debug.
b. Most race conditions only occur when a resource has multiple writers.
c. You can avoid race conditions by using variables.
d. Code with race conditions behaves differently every time it is executed.
b. Most race conditions only occur when a resource has multiple writers.
Race conditions are difficult to identify and fix, only occur when multiple writers, they can be avoided by reducing variables and controlling shared resources.
What is the code width (resolution) of a 12-bit ADC with a voltage signal range of -5V to +5V. (A single answer is correct)
a. 1.2μV
b. 1.2mV
c. 0.42V
d. 2.4mV
d. 2.4mV
10V / 2^12 = 0.00244V = 2.4mV
Which of the following statements are correct regarding arrays. (More than one answer may be correct)
a. You can create an array of arrays.
b. You can have an array with more than 3 dimensions.
c. It is possible to have a 2D array of ‘string’ data type.
d. The first element in an array is indexed at 0.
b. You can have an array with more than 3 dimensions.
c. It is possible to have a 2D array of ‘string’ data type.
d. The first element in an array is indexed at 0.
No you can’t create an array of arrays, no shit 8x8 etc, yes string=words, indexed at 0.
Which of the following statements regarding variables are correct? (More than a single answer may be correct)
a. Variables can be the following types: Local, Global, Functional Global and Shared.
b. Variables allow you to circumvent normal dataflow by passing data from one place to another without connecting the two places with a wire.
c. Variables should only be used when absolutely necessary.
d. You should use a global variable or a single process shared variable to share data between multiple VI’s.
a. Variables can be the following types: Local, Global, Functional Global and Shared.
b. Variables allow you to circumvent normal dataflow by passing data from one place to another without connecting the two places with a wire.
c. Variables should only be used when absolutely necessary.
d. You should use a global variable or a single process shared variable to share data between multiple VI’s.
All are correct
Which of the following statements are correct? (More than one answer may be correct).
a. The speed which a While loop executes can be changed.
b. A For loop can have an iteration terminal.
c. You cannot have a While loop within a While loop.
d. A While loop can execute zero times.
a. The speed which a While loop executes can be changed.
b. A For loop can have an iteration terminal.
Inspect the LabVIEW code and identify which of the statements a) – d) are correct. (More than a single answer may be correct)
a. The top loop will execute 3 times
b. The loops will not execute in parallel
c. The output of ‘Numeric’ will be 2
d. Neither of the loops will execute
a. The top loop will execute 3 times
b. The loops will not execute in parallel
c. The output of ‘Numeric’ will be 2
Top executes 3 times yes. Not parallel, think electricity, this would be series not parallel. And numeric will be 2 as iterations is 0 based.
Which of the following statements are correct? (More than one answer may be correct)
a. The 4 bit binary number 0101 represents the number 5.
b. The 4 bit binary number 0111 represents the number 10.
c. The highest numeric value that can be represented by a 12-bit number is 4095?
d. The highest numeric value that can be represented by a 12-bit number is 4096?
a. The 4 bit binary number 0101 represents the number 5.
c. The highest numeric value that can be represented by a 12-bit number is 4095
0x2^3 + 12^2 +02^1 + 1*2^0
= 4 + 1 = 5
b^n -1
= 2^12 -1 = 4095
Which of the following statements are correct? (More than one answer may be correct)
a. To reduce problems associated with aliasing you should apply a low pass filter at half the sampling frequency.
b. Aliasing can always be solved by increasing the sampling frequency.
c. Aliasing means frequencies above half of the sampling frequency appear at frequencies below half the sampling frequency.
d. To avoid problems with aliasing your sampling frequency should be twice that of the highest frequency contained in your signal.
a. To reduce problems associated with aliasing you should apply a low pass filter at half the sampling frequency.
c. Aliasing means frequencies above half of the sampling frequency appear at frequencies below half the sampling frequency.
d. To avoid problems with aliasing your sampling frequency, the frequency should be twice that of the highest frequency contained in your signal.
For b. It doesn’t solve anything. Frequencies above half will still appear below. Aliasing doesn’t disappear.
Which of the following statements is correct about buffered Data Acquisition? (A single answer is correct)
a. Buffered Data Acquisition does not require a fixed sample rate.
b. Buffered Data Acquisition is not suitable for control applications.
c. Buffered Data Acquisition utilises less memory overhead than single sample Data Acquisition.
d. Buffered Data Acquisition should always be used for acquiring Digital Signals.
b. Buffered Data Acquisition is not suitable for control applications.
Buffered does require a fixed sample rate, isn’t suitable for control applications, uses more memory (think RAM), just not true.
Which of the statements below is correct regarding the LabVIEW code illustrated in the figure? (More than one answer may be correct)
a. The Case structure only has the Cases ‘Startup’, ’Shutdown’, and ’Idle’.
b. The error cluster has data types of Boolean, Numeric, and String contained within it.
c. This is an example of a state machine architecture.
d. The code within the “Startup” Case will execute as fast as possible.
b. The error cluster has data types of Boolean, Numeric, and String contained within it.
c. This is an example of a state machine architecture.
d. The code within the “Startup” Case will execute as fast as possible.
a. No as we don’t know for sure that its only startup, shutdown and idle. Could be more.
b. Yes as all error clusters contain status (boolean), code that identifies the error numerically, and source (string).
c. Yes state machine as we have T/F, numbers (iterations, wait timer) and text.
d. Yes as no timer.
The equation below illustrates the relationship between the Gain in decibels and the gain of an amplifier. Which of the following answers (a-d) correctly represents the gain in dB if a voltage of 400μV is the input to the amplifier and a voltage of 5mV is measured as the output. The answers are displayed in 2 significant figures format. (A single answer is correct). GdB = 20 Log(G) a. 61.6 dB b. -61.6 dB c. 21.9 dB d. -21.9 dB
Input = 400 x 10-6V. Output = 5 x 10-3V
G = 5 x 10-3 / 400 x 10-6 G = 0.005 / 0.0004 G = 12.5
Gdb = 20Log10G Gdb = 20Log10 12.5 Gdb = 20 x 1.0969 Gdb = 21.9
Which of the following statements about ultrasonic sensors are correct? (More than one answer may be correct)
a. Ultrasonic sensors use ultrasound at a frequency of 2KHz.
b. Two ultrasonic sensors can interfere with each other.
c. The bearing of the ultrasonic sensor will have a finite uncertainty.
d. Environmental noise cannot affect an ultrasonic sensor.
b. Two ultrasonic sensors can interfere with each other.
c. The bearing of the ultrasonic sensor will have a finite uncertainty.
50KHz not 2KHz, ofc they can interfere, won’t be infinitely uncertain, environmental noise can affect ultrasonic…imagine a dolphin and a container ship
The LabVIEW code illustrates a For Loop and Shift Register. What will be the number displayed in the numeric indicator ‘Output’ when the code has finished executing? (A single answer is correct).
a. 4
b. 24
c. 8
d. 2
a. 4
Top shift register: 2x1 = 2 2x2 = 4 2x3 = 6 2x4 = 8
Bottom shift registers means previously value. So, 2 initial 2 initial from above 2 = 2x1 4 = 2x2
Whilst top does, 2x1, 2x2, 4x3, 12x4
The LabVIEW code illustrates a For loop. What will be the output of ‘Indicator’ when the loop finishes? (A single answer is correct)
a. 27
b. 19
c. 0
d. 6
c. 0
Value will always be 0
A Data Acquisition system has been developed to monitor the deflection of an aircraft wing for a dynamic test. Sensors are placed on the wing and 10m of cabling is used to pass the sensor signals to a central Data Acquisition (DAQ) system. The signals of interest are under 30Hz and there is a problem with high frequency noise in the measurements. Which of the following solutions could solve the problem? (More than a single answer may be correct)
a. Applying a high pass filter to the sensor signals before they reach the DAQ system.
b. Applying a low pass filter to the sensor signals before they reach the DAQ system.
c. Applying an amplifier to the sensor signal before sending through the cabling.
d. Applying a second order Butterworth filter with a cut off frequency of 40Hz.
b. Applying a low pass filter to the sensor signals before they reach the DAQ system.
c. Applying an amplifier to the sensor signal before sending through the cabling.
d. Applying a second order Butterworth filter with a cut off frequency of 40Hz.
Everything but high-pass. For Butterworth just read it. It cuts off anything above 40Hz (45Hz is half above sample). Hence, does the same job as a low pass filter.
Inspect the LabVIEW code in the figure and identify which of the following statements is correct? (A single answer is correct).
a. The number of loop iterations will be 7.
b. The number of loop iterations will be 3.
c. The code will not execute.
d. The indicator “Iterations” will display a value of 3 after code has finished.
b. The number of loop iterations will be 3.
Loop will iterate 3 times as the 3 element array is auto indexed (brackets not block). And hence, can only have 3 elements and not a 4th so will stop.
Which of the following statements are correct? (More than one answer may be correct)
a. To reduce problems associated with aliasing you should apply a low pass filter at two times the sampling frequency.
b. Aliasing means that frequencies at greater than half the sampling frequency will appear as frequencies below half the sampling frequency.
c. The passband ripple for a filter is undesirable as this will result in changes in the magnitude of frequencies in the retained frequency domain.
d. The stopband ripple for a filter is undesirable as this will result in frequencies outside the frequency range of interest retaining some finite magnitude.
b. Aliasing means that frequencies at greater than half the sampling frequency will appear as frequencies below half the sampling frequency.
c. The passband ripple for a filter is undesirable as this will result in changes in the magnitude of frequencies in the retained frequency domain.
d. The stopband ripple for a filter is undesirable as this will result in frequencies outside the frequency range of interest retaining some finite magnitude.
Yes low-pass filter but not a 2x the sample frequency, b is the definition, we know all other filters are undesirable bar the low-pass filter.
Which of the following statements about arrays and clusters are correct? (More than one answer may be correct)
a. Arrays do not have to be a fixed size
b. You can not have an array of arrays
c. A cluster cannot contain boolean data
d. Clusters can contain more than one data type
a. Arrays do not have to be a fixed size
b. You can not have an array of arrays
d. Clusters can contain more than one data type
Arrays can be whatever size, correct you can’t have arrays of arrays, a cluster can contain boolean, clusters can contain 3 types of data
Note: A cluster is basically an array bundled with criteria. I.e. a list of students who graduated with their age. 3 criteria, string, boolean, numeric
The musical note middle c is an oscillation at 262Hz. To accurately represent the waveform in the time domain, which sampling frequency would be most suitable? (A single answer is correct)
a. 131 Hz
b. 262 Hz
c. 524 Hz
d. 2620 Hz
d. 2620 Hz
262 Hz in 0.1s, hence 262/0.1 = 2620Hz
Inspect the LabVIEW code. Which of the statements a) – d) are correct? (More than a single answer may be correct)
a. The Indicator will display a value of 4.5 when the loop finishes executing.
b. The Indicator will display a value of 1.5 when the loop finishes executing.
c. If the DBL precision conversion block was not utilised and the integer number was connected to the divide block, there would be an error and code would not execute.
d. The loop will execute two times.
a. The Indicator will display a value of 4.5 when the loop finishes executing.
d. The loop will execute two times.
9/1 = 9
9/2 = 4.5
Stop as 2 iterations