Amplitude-shift keying (ASK) is a form of modulation that ...



VIRTUAL EXPERIMENTSEXPERIMENT V-2 USING LABVIEW TO LEARN THE CONCEPT OF FREQUENCY SHIFT KEYING IN VIRTUAL EXPERIMENTATIONOBJECTIVE: - To demonstrate the concept of Frequency Shift Keying Using LabviewLABVIEW VIRTUAL EQUIPMENT NEEDED: Signal simulators (3).Case Structure Unit for randomization.Switches.Waveform chart displaysSelector function.Absolute value generator.Level comparator.Low pass Filter.Dynamic data to Scalar data converter.PreambleIn frequency shift keying, logic levels were represented by different frequencies of signals.Most common is binary FSK (BFSK), where one amplitude is represented by a carrier frequency f1 while the other logic level is represented by carrier frequency f2. (fig 1). FSK is less susceptible to noise than ASK.Fig 1. An FSK signal VFSKIt is possible to convert signals to the amplitude shift keyed signal by the use of a Selector Switch.A Labview Selector Function is shown in Fig. 2. It returns the value wired to the t input or f input depending on the value of the signal on the s input. The signal on the s input must be a scalar function. If s is TRUE, this function returns the value wired to t at the output. If s is FALSE, this function returns the value wired to f. This is shown in Table 1Fig. 2 Labview select functionTable 1Select Signal sOutput0Input B1Input ATHE EXPERIMENTFor this experiment, we will use Labview’s Virtual capabilities to generate an FSK signal using a switching method.PART 1-TESTING THE SELECT FUNCTION SWITCH WITH WAVEFORMS AT THE INPUTi.Open page 1 of the Labview virtual experiment.Here the t and f inputs are connected to two sine waves of frequencies f1 and f2 as shown in Fig. 3.Set the sine wave 1 amplitude to 0.5V and its frequency to 1Hz. Also set sine wave 2 amplitude to 0.5V and its frequency to 10Hz. In later experiment, f1 will represent logic 1 while f2 will represent logic 0Fig. 3Select Function operation with waveform inputsRight click on the display chart and click on ‘properties’. Click on ‘scales’ and ensure there is a check √ on the ‘show scale label’ and ‘show scale’. Remove any check √ on the ‘autoscale’ box. Use the drop down arrow to select the X and Y axes. Although other appearances can be changed by clicking the ‘Appearance’ button, leave as it is for now. Set other values as follows:Table 2Minimum (sec)Maximum (sec)Scaling factorTime (X-Axis)050-offsetAmplitude (y-Axis)-11Press ‘ok’.ii.Run experiment by clicking on the ‘Run Continuously’ button. Click the Select Switch ON and OFF intermittently with a few seconds of each other and view the signal on the display which is a waveform chart.Question 1.What did you observe and which signal comes up when the Select Switch is ON?ii.Click the ‘Run Continuously’ button again with the select switch ON. After about 10 seconds, stop the running by clicking on the red ‘abort’ button. Count the no. of cycles of the sine wave between the minimum and the maximum on the time(X) axis display.Calculate f1 =(No. of Cycles)/(Max Time –Min. Time) and fill in below.f1= __________________HzRepeat for f2 when Select Switch is OFF and find f2(In this case you will have to right click the display and set the waveform X-axis maximum to 1, using the same process sated above, so that you can easily count the number of waveforms of f2).f2= __________________HzPART 2 GENERATION AND RETRIEVAL OF THE ASK SIGNALFig. 4 shows the overall diagram of the actual experimental setup. Here, input t is the carrier sign wave, input f is a zero level dc signal and input s is the message signal which is a square waveform.Fig. 4 Overall ASK generation and retrieval circuitRandomizerThe message signal (Fig. 7), is the signal whose FSK is to be generated. It can either be a square wave with 50% duty or a random signal of variable duty cycle, which can be obtained by turning ON the randomize switch which activates a Case Structure randomizer function of Labview.Figures 5 and 6 show the two carrier signals f1 and f2.The output of the Select Function switch is the FSK signal of fig. 8.RETRIEVAL OF ASK SIGNALA level shifter and low pass filter form the detector that signal f2 from the FSK signal. The level shifterIt was found that shifting one of the signals in the FSK signal with respect to the other simplified the final retrieval of the wanted signal. Signal f1 was shifted up with respect to f2 as shown in fig. 9. Fig. 5Fig. 6 Fig. 7Fig. 8 Fig. 9 Fig. 10 Fig. 11Fig. 12Low Pass FilterThe low pass filter filters out the higher frequency f2 of the rectified ASK thereby leaving f1, as shown in Fig. 10. f1 represents logic 1ComparatorThe comparator is used to convert the filter output to a real rectangular waveform. It has an adjustable dc signal at one of its input for varying one the level of one of comparator inputs until a good wave form that resembles the transmitted signal is obtained as shown in Fig. 11.i.Open page 3 of the Labview virtual experiment.Set the sine wave 1 amplitude to 0.5V and its frequency f1 to 1Hz. Also set sine wave 2 amplitude to 0.5V and its frequency f2 to 10Hz. f1 will represent logic 1 while f2 will represent logic 0For now, keep the Randomize switch OFF.Table 3AmplitudeFrequencyOffsetCarrier Sine wave 10.510Data Signal0.50.20Carrier Sine wave 20.5100On the appropriate experiment pages of the Labview Front Panels, set the chart displays according to Table 4, if they are not already set to those values.Use the same procedure mentioned in part 1 above. Table 4ChartMinimum (sec)Maximum (sec)Scaling factorCarrier, Data and ASK Signals Page 3Time (X-Axis)0100-offsetAmplitude (y-Axis)-22ASK and ASK with shifted carrier 1 signalPage 4Time (X-Axis)010Amplitude (y-Axis)-22Filtered shifted ASK signalPage 5Time (X-Axis)010Amplitude (y-Axis)-22Retrieved signal waveform from filtered waveform.Page 6Time (X-Axis)010Amplitude (y-Axis)-22Retrieved signal and original data signal comparedPage 7Time (X-Axis)010Amplitude (y-Axis)-22Note that you can change the chart scale at any time by right clicking on any of the chart, using the drop down arrow on ‘scale’ button to pick the signal of interest and changing the X or Y axes scale as desired. (The experiment MUST NOT be running when you want to change scales).a.Activating the ASK signal outputOpen to page 3 of the Labview virtual experiment Click the ‘Run Continuously’ button again. After about 20 seconds, activate the ASK signal output by turning its switch ONDescribe what you notice in two or three sentences.Question 2What happens when you don’t turn the switch ON at exactly the edge of the data signal?b.Activating the Carrier 1 shifted outputOpen to page 4 of the Labview virtual experiment Click the ‘Run Continuously’ button again. After about 20 seconds, Click the carrier 1 shift output enable switch. After about 30 seconds, stop the running by clicking on the red ‘abort’ Button.i.Describe what you observe in one or two sentences. (Note that depending on the instant you click, the fist ASK signal section you see may not be incomplete. Subsequent ones will.)c. Activating the Filter outputOpen to page 5 of the Labview virtual experiment Using the control input button, set the filter cutoff frequency to 5Hz. Click the ‘Run Continuously button again. After about 30 seconds, switch on filter output enable switch. After about another 30 seconds, stop the running by clicking on the red ‘abort’ button.i.Describe what you observe in one or two sentences. Why is the signal with frequency f2 eliminated?Change the cutoff frequency to 20Hz and run again.ii.Describe what you observe in one or two sentences. d.Activating the Comparator outputsOpen to page 6 of the Labview virtual experiment Using the Control Input button, set the comparator level control to 0.3 Click the ‘Run Continuously’ button again. After about 30 seconds, Click the Comparator output enable switch and let it run continuously. After about another 30 seconds, stop the running by clicking on the red ‘abort’ button.Describe what you observe at the output of the comparator in one or two sentences. Stop the running and change the comparator level to 0. Then run again.Question 3Why are there so many unusual transitions now?PART PARING THE RETRIEVED AND THE ORIGINAL MESSAGE SIGNALSOpen to page 7 of the Labview virtual experiment Compare the retrieved and the original message signals.i.Describe what you observe in one or two sentences. The graph is hereby ‘stacked’ for the two signals. Right click on the chart and click on ‘overlay plots’. (Experiment should not be running when you do this). You would observe that there is a slight delay between the original message signal and the final retrieved signal at the output of the comparator.Question 4Why is there a slight delay between the two signals?PART 4USING A RANDOM MESSAGE SIGNAL Normally, a practical message signal does not have a 50% duty ratio. The widths are random. In other to generate a random signal, go back to page 2 of the Labview virtual experiment and click the ‘Randomize switch’. Click the ‘Run Continuously’ button.With all switches still ON, open all the other pages starting from page 1 and note the various signalsi.Describe what you observe in one or two sentences. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download