Abstract
The use of simulation laboratories is gaining popularity in the domains of engineering programs. However, the experience in teaching shows that the simulation itself is not very effective in didactic processes. Teaching processes in the field of specialist subjects, designed for students of technical universities, should be based on direct operations performed by the student on real devices. At the same time, at the later stages of didactic processes, modern computer tools and techniques that enable modeling, simulations and measurements of projected systems or devices cannot be omitted. The article presents an example of applications of computer technology in the analysis of system properties at the stage of their designing, commissioning and testing of prototype properties. Based on the chosen hybrid system, in mixed analog-digital technology, the novel techniques of testing its functional properties were presented. The multiplatform combined with graphical programming and simulation software and hardware allows comparing a schematically captured circuit with a prototype of the same design. The platform based on NI myDAQ instruments and the Multisim Circuit Design software is presented. To illustrate its capabilities, the generator of the sawtooth wave with a mixed analogue-digital structure was tested. The integration between NI Multisim and NI myDAQ makes possible to correlate real and simulated measurements in a single interface. The possibility of presented techniques combined use allows optimizing the processes of designing, commissioning, testing and teaching the properties of electronic circuits.
Access provided by Autonomous University of Puebla. Download conference paper PDF
Similar content being viewed by others
Keywords
1 Introduction
The development of computer techniques in the field of designing, simulating and testing the properties of electronic circuits contributes to the simplification and optimization of the processes of starting new systems. Figure 1 shows typical procedures implemented during the design and evaluation of the properties of the electronic system using computer techniques. Designing a device with new original functional features begins long before appearing on the market. Its properties are expressed in the assumptions for the new construction. Recognition of problems usually leads to many different concepts of how to organize the device configuration. Choosing the optimal concept is a difficult task. Lack of simulation (Fig. 1 - part of the algorithm marked in red) caused the necessity to construct a prototype device for each concept. It was expensive and long work. The introduction of simulation to the design algorithm makes it possible to achieve a positive project result faster, while saving time and money in a much more effective way.
In the classic approach, only actual conventional instruments were used in the testing procedures of the device being built, there was no simulation stage, it appeared along with the development of computer techniques. These techniques are successfully introduced at the stage of: - testing the physical model, - testing the system being built, - to emulate the devices used in the study of the designed system.
Nowadays, simulation studies are becoming more important in many areas of engineering activity at the design stage. Computer techniques, like simulations, measurements and control, become an important element of didactics. Also many student projects focus on the construction of a device with predefined properties and functions. Simulations are also applicable here. Many bad solutions and concepts can be excluded and omitted in this way. The use of simulation laboratories is gaining popularity in the domains of engineering programs. However, the experience in teaching supported by numerous studies [1,2,3,4,5,6,7,8] shows that the simulation itself is not very effective in didactic processes. The simulation becomes effective when it is accompanied by the student’s activity in the study of actual systems. Currently, there are many programs that enable simulation of electronics, electrical engineering, digital technology and digital processing systems, e.g. SPICE, Multisim, LabVIEW, Vissim, Mathcad, Matlab [9, 10]. The SPICE and Multisim environments, with the SPICE program being the core program and the next version of Multisim, are one of the more frequently used simulation software in research, design and teaching [10].
The cross platform combined with integrated software and hardware, allows to compare real and simulated measurements in a single interface. The platform connects the theoretical model of the tested device to real components in simulation and integrates physical analysis at once in experimentation.
In the paper the cross platform for simulation and measurement of mixed-signal devices based on National Instruments (NI) myDAQ instrumentation and the Multisim Circuit Design software is presented. To illustrate its capabilities, the generator of the sawtooth wave with a mixed analogue-digital structure was tested. The integration of these environments into one workspace enables simulation and emulation of the operation of models of various systems, as well as testing of relevant real systems. This creates the conditions for the implementation of the didactic program, in which the student combine traditional hands-on activity with the capabilities of modern computer tools.
This paper is organized as follows. In Sect. 2, the NI myDAQ design template in Multisim is described. Section 3 presents the results of simulation using NI myDAQ instruments in the Multisim environment. The comparison of simulation and results of real data generating are shown in Sect. 4. Concluding remarks are drawn in last Sect. 5.
2 The NI myDAQ Design Template
The Multisim Circuit Design software is an attractive tool supporting the design of circuits. It allows to enter a schematic diagram of a simulated system that can be connected to various measuring instruments, e.g. oscilloscope, logic analyzer, voltmeter, ammeter, digital multimeter, etc. An important feature of the Multisim environment is the possibility of extending the package with the VHDL and Verilog hardware description interpreter module, as well as Utilboard and Utilroute programs for creating printed circuit boards based on the scheme introduced in the Multisim program. It is also the ability to modify the vast majority of component models by the user in accordance with specific own needs. The user, using the elements available in the library, can create his own element in the form of a sub-circuit or a model introduced using the SPICE system syntax. Multisim has the user database in which files containing a data of components created by a given user are stored; it can be used to store new components.
Multisim, depending on the type of tested circuits, offers different types of simulators, which are based on different programming languages of the equipment, e.g. SPICE, VHDL, Verilog [9]. Coordination of communication between models in SPICE, VHDL and Verilog takes place automatically, full cooperation is ensured. Multisim is based on industry standard SPICE 3F5. It supports models created using standard SPICE syntax. A model can be created using the Model Makers, by assigning values to the parameters of a primitive model, or by creating a sub-circuit model. A primitive model is a model that is defined by a collection of parameters. Many electronics devices are not represented by primitives but are still well suited as SPICE models. Sub-circuit models are used to capture the characteristics of these models. In Multisim, it is possible to import/export a SPICE netlist. The ability to open .cir netlists allows for the generation of simple schematics upon import (see Fig. 2).
2.1 Schematic Capture of a Mixed-Signal Device
The diagram of a system with a mixed analogue-digital structure is shown in Fig. 3. The designed system (simulated/real device in Fig. 3) generating the sawtooth wave is built using the following components. In order to generate the assumed waveform, two reversing, synchronous binary counters based on integrated circuit 74193 N, are connected in series, so that they work according to graph, as shown in (1).
The fclk clock signal (out_1) controls the state of the counters. The counters work according to the required graph, i.e. they count down, operating in the subtraction mode. Counter outputs (8 lines) are connected to the inputs of an 8-bit digital-to-analog converter DAC 0808. In the device under consideration, the frequency of the sawtooth waveform (Fig. 3) is equal to fclk/512.
The classic approach to testing the prototype of the designed device needs the use of an independent digital signal generator (generating fclk signal in Fig. 3) and oscilloscope (connected to out_1 and out_2 test points) as well as appropriate test procedures performed by test staff. Of course, a complete prototype of the device must be made before. Only then construction errors can be detected, committed during the design and construction of the device’s prototype. Any changes to the prototype made, including changes in the settings or processing characteristics of the individual functional blocks, require tedious operations usually associated with the exchange (soldering) of the relevant components of the system.
Simulations of the designed device in Multisim, before making a prototype, eliminate the majority of design errors and perform functional tests of the device. The design template found in Multisim main toolbar has the myDAQ connecting slots (see Fig. 3). The template allows to draw wires connecting a captured schematic with the lines on the virtual myDAQ device. The ideal elements available in the Multisim libraries do not always correctly represent the real systems [7, 8]. The models of actual elements available in the Multisim environment were used to build the sawtooth generator. Actual elements include the occurrence of transient states that are not significant or are suppressed in real systems but may appear in simulations using ideal elements. The methods of simulation of basic static and dynamic parameters are also important. Therefore, the image from the oscilloscope (see Fig. 4) shows so-called pins. They can be eliminated by using an appropriate filter on the D/A converter output. The application of Schmidt’s gate (see Fig. 3) was forced to obtain the right steepness of rectangular waves from the signal generated by NI myDAQ.
In the same way it would be connected a real breadboard circuit of prototype device to the actual myDAQ device. It can fully simulate the hardware instrumentation (a signal generator, an oscilloscope) within the virtual environment. To generate the clock signal the test system uses the National Instruments myDAQ virtual instrument: a function generator (see Fig. 5). The output signal (out_2) can be presented on a virtual oscilloscope XSC2 (see Fig. 4). At the same time, the signal out_2 is given to the inputs of the myDAQ virtual oscilloscope.
2.2 Instrumentation Simulated Using NI myDAQ
The Multisim software integrates myDAQ instruments within the design template. There are eight different measurement and signal generation tools: a digital multimeter (DMM), an oscilloscope (SCOPE), a function generator (FGEN), a Bode analyzer (Bode), a dynamic signal analyzer (DSA), an arbitrary waveform generator (ARB), a digital reader (DIGIN) and writer (DIGOUT). A specific instrument can be enabled or disabled in simulation.
3 The Schematic Capture Simulation
The simulation is performed using NI myDAQ instruments in the Multisim environment. The function generator FGEN and the oscilloscope SCOPE should be enabled during a simulation. The simulated data appear in the front panel of a virtual SCOPE (see Fig. 6).
After successfully simulating the schematic capture, it could acquire the real data from myDAQ and compare the results.
4 Testing a Prototype Device
After construction the prototype of the device with the structure corresponding the schematic capture in Multisim, it should be connected to the myDAQ right slots. In the Multisim environment, under Instrument Control in the front panels the device corresponding to “NI myDAQ” instead “Simulate NI myDAQ” has to be chosen (see Fig. 7).
The NI myDAQ is a data acquisition device that provided analog input (AI), analog output (AO), digital input and output (DIO), audio, power supplies, and digital multimeter (DMM) functions in a compact USB device. The input channels can be configured either as general-purpose high-impedance differential voltage input or as audio input. The analog inputs are multiplexed, meaning a single analog-to-digital converter (ADC) is used to sample both channels. They can measure up to ±10 V signals, at the rate of up to 200 kS/s per channel, so they are useful for waveform acquisition. Analog inputs are used in the DMM, the SCOPE, the DSA and the Bode instruments. There are two analog output channels on NI myDAQ. These channels can be configured as either general-purpose voltage output or audio output. Both channels have a dedicated digital-to-analog converter (DAC), so they can update the output signals simultaneously. In general-purpose mode analog outputs can be updated at the rate of up to 200 kS/s per channel, making them useful for waveform generation up to ±10 V. They are used in the FGEN, the ARG and the Bode instruments.
During testing prototype of the device and a real data generation, the FGEN instrument is generating an analogue clock signal fclk and a sawtooth signal from a digital-to-analog converter DAC 0808 (out_2) is given on the analog inputs of the myDAQ. The SCOPE instrument is running.
Figure 8 illustrates the simulated data in Multisim against the real data obtained during testing of the device’s prototype. The visible shift between the two waveforms results from the difference in the frequency of the fclk signals.
The results of operation of real system could be also compared with the waveform plot from a stand-alone oscilloscope (see Fig. 9). The waveform obtained in the myDAQ SCOPE overlaps the waveform observed on the oscilloscope.
5 Conclusion
The nowadays technology provides tools that enable effective testing and correcting the structure of designed devices. The classic approach to the design and testing of new devices is replaced by computer-assisted operations, greatly facilitating the processes of designing and implementing new solutions. In this way, a large part of the process of testing the properties of the actual systems is transferred from the hardware testing area to the virtual test, i.e. software area.
The Multisim programming environment in cooperation with virtual instruments operating in LabVIEW is a cross platform that creates new possibilities in effective designing and testing of both analog and digital devices as well as mixed-signal devices.
Didactic values of the cross platform should also be appreciated. In addition to familiarizing with new technologies, including simulation and device emulation techniques, students can conduct research on the properties of real elements and devices, with a small additional workload.
References
Taher, M., Khan, A.: Comparison of simulation-based and hands-on teaching methodologies on students’ learning in an engineering technology program. In: QScience Proceedings of Engineering Leaders Conference. http://dx.doi.org/10.5339/qproc.2015.elc2014.58 (2014). Accessed 05 Feb 2018
Mahata, S., Maiti, A., Maiti, C. K.: Cost effective web based electronics laboratory using NI Multisim, LabVIEW and Elvis II. In: International Conference on Technology for Education (T4E), pp. 242–243 (2010)
Dai, K., Zeng, S., Huang, L., Wang, N.: The application of mixed software simulation platform based on Multisim and MATLAB for electronic specialty experiment teaching. In: International Conference on Computational Intelligence and Software Engineering (CISE), pp. 1–4 (2009)
Yang-Mei, L.,Bo, C.: Electronic circuit virtual laboratory based on LabVIEW and Multisim. In: 7th International Conference on Intelligent Computation Technology and Automation (ICICTA), pp. 222–225 (2014)
Azaklar, S., Korkmaz, H.: A remotely accessible and configurable electronics laboratory implementation by using LabVIEW. Comput. Appl. Eng. Educ. 18(4), 709–720 (2010)
Palczynska, B., Noga, K.M.: Teaching digital filters design in electrical engineering. In: Fifth International Symposium Communication Systems Networks and Digital Signal Processing, pp. 866–869. University of Patras (2006)
Noga, K.M., Radwanski, M.: Using the virtual model in teaching digital signal processing. In: Technological Developments in Education and Automation, pp. 195–200. Springer (2010)
Noga, K.M., Radwanski, M.: Our experiences in teaching of digital logic. In: Innovations in E-learning, Instruction Technology, Assessment and Engineering Education, pp. 237–242. Springer (2007)
Hulewic, A., Krawiecki, Z.: Simulation programs for electronic analog circuits, (in Polish). Pozn. Univ. Technol. Acad. J. Electr. Eng. 88, 57–66 (2016) (Poznan)
National Instruments Multisim http://www.ni.com/multisim/. Accessed 05 Feb 2018
Bolikowski, J.: Basics of designing intelligent measuring transducers of electrical quantities, (in Polish). Wydawnictwo Wyższej Szkoły Inżynierskiej w Zielonej Górze, Zielona Góra (1993)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this paper
Cite this paper
Noga, K.M., Palczynska, B., Masnicki, R. (2019). The Multiplatform Environment for Simulation and Features Estimation of Mixed-Signal Devices. In: Hanus, R., Mazur, D., Kreischer, C. (eds) Methods and Techniques of Signal Processing in Physical Measurements. MSM 2018. Lecture Notes in Electrical Engineering, vol 548. Springer, Cham. https://doi.org/10.1007/978-3-030-11187-8_18
Download citation
DOI: https://doi.org/10.1007/978-3-030-11187-8_18
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-11186-1
Online ISBN: 978-3-030-11187-8
eBook Packages: EngineeringEngineering (R0)