0% found this document useful (0 votes)
12 views5 pages

Exporting From Multi Sim

This document provides a step-by-step guide for setting up and exporting results from a Bode analyser in MultiSim for an LCR circuit. It includes instructions for configuring the Bode analyser, simulating the circuit, exporting the results to a text file, and importing the data into MATLAB for further analysis. Key settings and procedures are outlined to ensure accurate data handling and visualization.

Uploaded by

Jerry Zhang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

Exporting From Multi Sim

This document provides a step-by-step guide for setting up and exporting results from a Bode analyser in MultiSim for an LCR circuit. It includes instructions for configuring the Bode analyser, simulating the circuit, exporting the results to a text file, and importing the data into MATLAB for further analysis. Key settings and procedures are outlined to ensure accurate data handling and visualization.

Uploaded by

Jerry Zhang
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Resonant Circuits Lab

Exporting Bode Analyser from MultiSim

1 Setup Circuit in MultiSim


Setup the LCR circuit (following lab instructions) in MultiSim. Take note of where the outputs
AO0, AI0 and AI1 are connected.

2 Setup Bode Analyser


Make sure the simulation is not running and open the Bode analyser (highlighted in blue above).
You should be presented with the screen below. It is important to change the following settings:

1. Start Frequency (1 kHz)


2. Stop Frequency (20 kHz)
3. Steps (per decade) (30, the higher the better.)
4. Mapping (Logarithmic)
5. Device (Simulate NI myDAQ)
3 Simulate Resonant Circuit

From the MultiSim window, press the ‘start simulation’ button . Reopen the
Bode Analyser, where you should see the gain and phase curves for the simulated circuit.
4 Export Results from Bode Analyser
To export the results from the Bode Analyser press the Log button (highlighted above). This
will open a dialog window of where to save your file.

Choose a suitable location to save your file, and name it ‘LCR_myDAQ_output.txt’. Press save.

From here, you can either copy the data yourself into MATLAB, or read on to do this automatically.

5 Import Results into MATLAB


Open MATLAB. From the ‘Home’ menu, press the Import Data button.

Select the ‘LCR_myDAQ_output.txt’ file you have saved previously. You will be presented with a
dialog window like below.
Before importing the data, it will be necessary to change several settings.

1. Change the radio button from ‘Delimited’ to ‘Fixed Width’

2. Change the output type to ‘Column Vectors’

3. If you scroll down, you will find that the column widths are too short. Drag the handle
(shown by the arrow) to change the column width so that each number fits in the column.
4. When the data width has been adjusted, it should look like below. Change the column
names by double clicking and replacing with new values (like below).

5. Drag with the mouse to select the rows of the data you want to import, then press Import
Selection. The data should now appear in the MATLAB workspace with the names of the
columns you have chosen.

6. From here, you can include the data in your graphs by referring to these variable names
(in this example: ‘Frequency’, ‘Gain’, ‘Phase’). Check the type of gain that you are
expecting – if you have exported the data linearly, you will need to convert this to a gain
in dB (20*log10(…)). By default, myDAQ exports phase in degrees.

You might also like