Showing posts with label Multisim. Show all posts
Showing posts with label Multisim. Show all posts

Sunday, October 24, 2021

LabVIEW Multisim API Toolkit - RLC Values Example

Automate your Multisim design in LabVIEW 

Written by: Larsha Johnson
Date: October 24th, 2021

If you like designing electronic circuits in Multisim and would like to automate the simulation and analyses in LabVIEW, this example will walk you through how it can be done. The link below may help with missing NI module, Toolkit, or driver warning when opening VI errors.

Multisim Toolkit with LabView

The Multisim Automation API and the LabVIEW Multisim API Toolkit (which uses the API) recognize and can be used to control the values of all circuit parameters in the design. This lets you control most component parameters from the API.

This example uses Multisim version 14.2 and LabVIEW 2021

First open Multisim file RLC values from the blue sample folder → LabView Multisim API Toolkit.

















After the file is loaded into Multisim workspace, open LabVIEW, click the "File" tab and open the RLC Values vi as shown.









The simulation should run from here if all the necessary NI Modules, toolkits, and drivers are installed correctly. However, we will explore further by clicking the "Windows" tab and opening the associated block diagram. *The original design was modified by removing the blocks section "Multisim preparation" and replaced with a single "Select File Path" block form the Multisim Add-on tab. 

๐Ÿ’ฌThis may differ depending on software version.


If any errors should occur, in this diagram by block location is where they will be listed. From the LabVIEW front panel or from the block diagram, press the white arrow icon to run the simulation on the Multisim RLC Values circuit. 


This demonstrates how to sweep a resistor value to calculate a phase shift plot. (set to R2 by default)

In Multisim alternative analyses and simulations can be performed such as "Parameter Sweep", "Transfer Function", and "Pole Zero" to name a few.



๐Ÿค” Enjoyed this blog? Learned something useful? Consider following us for more content.

If you have errors visit this link: NI LABS TOOLKITS or comment if you find solutions to help others.

https://www.ieee.li/pdf/viewgraphs/circuit_design_simulation_and_virtual_instrumentation.pdf


Monday, September 27, 2021

Traffic Light in NI Multisim using Programmable Logic Devices (PLD)

Traffic Light in Multisim using PLC

Written by Larsha Johnson
9/27/2021

Programmable Logic Devices (PLDs) are integrated circuits that contain a relatively small number of functional elements that provide user-configurable logic functions (AND, OR, etc.)
In Multisim a PLD schematic contains specialized components that define the operation of the individual logic blocks of the PLD.

What is PLC and PLD?

The biggest difference between the two is the control logic. PLC is a fixed logic device (the function is realized by changing the software), and PLD is a variable logic device (the function is realized by changing the internal circuit structure). 

The concepts of PLC and PLD can be practiced through this two-way traffic light example. The main implementation of traffic light signals in to avoid traffic jams and serves the purpose of avoiding vehicular collisions.

The ladder diagram in this blog runs two traffic lights. The ladder diagram is contained in a separate hierarchical block called TrafficLightLogic

There are two different traffic light examples available, look in the sample circuit "blue folder icon" in the Educational version of Multisim that implements a traffic light:


  1. National Instruments\Circuit Design Suite 14.2\samples\Educational Sample Circuits\Ladder Diagrams
  2. National Instruments\Circuit Design Suite 14.2\samples\PLD Sample Circuits

The first choice uses programmable ladder logic with an actual traffic light simulation. For choice two, you can export the sample to program the NI Digital Electronics FPGA Board.

                     TrafficLightPLC.pngTrafficLightSim_snippet.png

Drag n drop these snippets directly into your Multisim workspace :slightly_smiling_face:

*I also attached a short version of the NI Multisim for Education PDF specifically for traffic light designs.


What is an SNIPPET file? Section of programming code saved in XML format; code snippets can be saved from Visual Basic, Visual C#, and Visual J projects; they can be edited using the Code Snippet Editor and managed using the Code Snippets Manager. 


Find the attached files below. Hope this helps!

This topic refers to education-specific features of Multisim.

Saturday, September 18, 2021

Create a Logic Circuit in NI Multisim - Snippet

Ladder Logic in Multisim

Written by Larsha Johnson
9/18/2021

Software

  • Multisim

In Linear Control Systems Lab the topic of programmable logic controllers was introduced. There is a variety of software available on the web to try PLC yourself, in this blog I used NI Multisim 14.2 

๐Ÿ™‹Before arriving to this blog you may have asked yourself...how do I implement a logic circuit using ladders within the Multisim environment? Is there any way to learn about ladder logic using a simulated circuit environment such as Multisim?

The answer:

The Education edition of Multisim lets you capture and simulate Ladder Diagrams. These diagrams are electrically based, as opposed to the binary/digital representations employed by ladder logic. Diagrams of this type are used extensively for industrial motor control circuits.

Ladder Diagrams are able to drive output devices or take input data from regular schematics and embed the instructions on how input states affect output states in either the same schematic or separate hierarchical blocks or subcircuits that contain the Ladder Diagram.

Note: Refer to the Multisim User Guide for a complete description of hierarchical blocks and subcircuits.

๐Ÿ“ŒAn example of how to create this ladder logic in Multisim is as follows:

1. Select Place/Ladder Rungs.
      
The cursor appears with the rung’s left and right terminators attached.

2. Click to place the first rung and continue clicking and placing until you have placed four rungs as shown below. Right-click to stop placing rungs. 


๐Ÿ”To add components to the rungs:
1. Select Place/Component, navigate to the Normally Open Relay Contact
(RELAY_CONTACT_NO) click OK.

Note: This device is found in the Ladder Diagrams Group - Ladder Contacts Family.

2. Drop the relay contact directly onto the first rung.

3. Continue in this manner until all relay contacts have been placed. (X4 must be placed and
then wired separately). 

4. Place the lamps (Group - Indicators; Family - Lamp).

5. Place relay coils M1 and M2 on the third and fourth rungs (Group - Ladder Diagrams;
Family - Ladder Relay Coils). 

6. Place switches J1 and J2.
7. Double-click on each switch, select the Value tab, and change the key for J1 to 1 and the
key for J2 to 2. 

๐Ÿ”To change the controlling device reference for X2 and X4:
1. Double-click on X2 and click the Value tab.
2. Enter M2 in the Controlling Device Reference field and click OK. Repeat for X4. The completed Ladder Diagram appears as shown below.




Embed the circuit file within a PNG image file using a Multisim Snippet and let your peers drag and drop the circuit into Multisim instead. This tutorial explores the new technology and ways to take advantage of it.

๐Ÿ‘Œ Please try our snippet out for yourself and practice designing logic gates own your own.

Sharing Multisim circuit files has never been easier. You can now see a graphical preview of the circuit design before opening, and you no longer need to attach and save files on supported web browsers. This saves you valuable time and increases your productivity.

I sell on Tindie

Saturday, June 1, 2019

ARDUINO MKR 1010 & Nano 33 IoT SHIELD

Written by Larsha Johnson
4/29/2019

After a previous post we wrote about creating custom shields using the NI Multisim and NI Ultiboard, we have decided to try it again. Here is our version of a customized compatible MKR 1010 wifi. The dimensions are 61.5mm x 25mm. 28 header pins options and 4 mounting holes. This lightweight bare bones can take your project to the next level. Since the MKR 1010 provides wifi, bluetooth, li-po battery connection with charging & many I/O pins you will want to get your hands on our cool shields. Release date summer 2019. Contact us for pre-purchase.
 

Now about the Nano 33 Iot. Did you know Arduino is releasing four new boards this summer? We did and we are already planning to test them out with our new shields. Our engineering team is hard at work to provide you a custom bare bones boards to get your next gadget going.




Saturday, December 19, 2015

Multisim| Stopwatch Timer Cascading 7 Segments 74ls190 74ls47

Stopwatch Timer Cascading 7 Segment Displays

Written by Larsha Johnson
12/19/2015

In this blog a stopwatch is simulated in Multisim and converted to a PCB layout via Ultiboard

Build of material:

  1. Two 7 segment displays
  2. Resistor packs (100 Ohms) *included in updated model
  3. Two 74ls190 (up/down counters)
  4. Two 74ls47 (BCD decoder)
  5. 555 Timer (1MHz digital clock in Multisim)
  6. One toggle switch (up/down)
  7. 1 Tact push button switch (reset)


Snippet for drag and drop coming soon.
*Visit our Git page for free files. https://github.com/Bits4Bots

Thursday, August 20, 2015

Multisim and Ultiboard| 74ls240 wired 3D PCB

74ls240 Wired

Written by Larsha Johnson
8/20/2015

Ever wonder what is a buffer and why is it useful? In this blog I will show you how to wire a 74ls240 TTL using NI Multisim and NI Ultiboard and some practical applications. First a few keywords:


  • Buffer = symbol is a triangle and its input is its output. Purpose is to slow current.
  • Octal = eight. The 74ls240 has eight inputs/outputs
  • Tri-state/3-state = allows an output port to assume a high impedance (Z) state in addition to low and high values.
  • Fan out= number of devices that an output is attached to.
A tri-state buffer or inverting buffer looks like a regular buffer or inverter, except there is an additional "enable" control signal entering the gate. When the enable is "1" the buffer is driving the output; when the enable is "0," the output is turned off ("tri-stated"). 


74ls04 vs 74ls240 Ok the 74ls04 takes its input and outputs the opposite i.e. high=low low=high.
The 74ls240 is a bit more complex...kinda. It can also take its input and output the opposite depending on the G pin. This is what makes the 74ls240 different. The output is determined by pins G (1G or 2G) and pin 1A(1-4)/2A(1-4).  
When the G input is high, the output is "Z" and no electrical current flows through no matter if pins 1A(1-4)/2A(1-4) is high/low.


The 74LS240 belongs to 74XXYY IC series. The 74LS240 is a series of octal buffers and line drivers designed specifically to improve both the performance and density of three-state memory address drivers, clock drivers, and bus-oriented receivers and transmitters. The IC has a wide range of working voltage, a wide range of working conditions, and directly interfaces with CMOS, NMOS, and TTL. The output of the IC always comes in TTL which makes it easy to work with other TTL devices and microcontrollers. The IC 74LS240 is smaller in size and it has a much faster speed which makes it reliable in every kind of device.

Wednesday, July 29, 2015

NI Multisim Ultiboard- VBB Diode-Resistor Logic Gates AND & OR

Use Diodes and Resistors to Perform Logic

Date: 7/29/2015

Using NI Multisim I created a simply design to show how to use basic components to create an AND & OR gate. 
  
Diode logic gates use diodes to perform OR and AND logic functions as shown in the circuit diagram. Connection of the LED at the output is optional which simply displays the logical state of the output, i.e. the logic state of output is 0 or 1, if LED is off or on, respectively. 

Diodes have the property of easily passing an electrical current in one direction, but not the other. Thus, diodes can act as a logical switch. Diode logic gates are very simple and inexpensive, and can be used effectively in limited space. 

However, they cannot be used extensively due to the obvious logic level shift when gates are connected
in series. In addition, they cannot perform a NOT function, so their usefulness is quite limited. This type of logic circuit is rarely found in integrated form. 

OR Gate (74ls32)

If one or both inputs are at logic “1” (5 volts), the current will flow through one or both diodes. This current passes through the resistor and causes the appearance of a voltage across its terminals, thereby obtaining logic “1” on the output. 

Here only a logic “0” (0 volts) on the output when both inputs are in logic “0”. In this case, the diodes do not conduct, there is no current through the resistor R and there is no voltage across its terminals. As a result the voltage at Vout is the same as ground (0 volts)


AND Gate (74ls08)

When both inputs are at logic “1″, the two diodes are reverse biased and there is no current flowing to ground. Therefore the output is logic “1” because there is no voltage drop across the resistor R.

If one of the inputs is logic “0”, the current will flow through the corresponding diode and through the resistor. Thus the diode anode (the output) will be logic “0”.

This method works fine when the circuits are simple, but there are problems when you have to make interconnections with such gates.

Reference material: 

Multisim|74ls163 Counter Project - 3D View Ultiboard

Tuesday, June 16, 2015

NI Multisim: 74ls181 ALU 4 Bit Arithmetic Logic Unit

Written by Larsha Johnson
September 6/16/2015


74ls181 ALU 4 Bit Arithmetic Logic Unit



NI Multisim: 74ls181 ALU 4-Bit Logic Unit TTL

74ls181 ALU 4-Bit Logic Unit TTL

What does a 4-Bit ALU do?

Written by: Larsha Johnson
6/16/2015

The 74181 is still used today in retro hacker projects. Here's ow it works and why it's so strange. Is it an all in one logic chip? Well, yes. Since it provides 16 Arithmetic Operations Add, Subtract, Compare, Double, Plus Twelve Other Arithmetic Operations as well as provides all 16 Logic Operations of Two Variables Exclusive — OR( XOR), Compare, AND, NAND, OR, NOR, Plus Ten other Logic Operations!

Why was it designed? To make computing faster in comparison with standard logic gates that was what available at the time. In March 1970, Texas Instruments introduced the 74181 Arithmetic / Logic Unit (ALU) chip, which put a full 4-bit ALU on one fast TTL chip. This chip provided 32 arithmetic and logic functions, as well as carry lookahead for high performance. 

The SN54/74LS181 is a 4-bit Arithmetic Logic Unit (ALU) which can perform all the possible 16 logic, operations on two variables and a variety of arithmetic operations.

The 74181 ALU (arithmetic/logic unit) chip powered many of the minicomputers of the 1970s: it provided fast 4-bit arithmetic and logic functions, and could be combined to handle larger words, making it a key part of many CPUs.

The 74181 is a 4-bit slice arithmetic logic unit (ALU), implemented as a 7400 series TTL integrated circuit. The first complete ALU on a single chip,[1] it was used as the arithmetic/logic core in the CPUs of many historically significant minicomputers and other devices.

The 74181 represents an evolutionary step between the CPUs of the 1960s, which were constructed using discrete logic gates, and today's single-chip microprocessor CPUs. Although no longer used in commercial products, the 74181 is still referenced in computer organization textbooks and technical papers. It is also sometimes used in 'hands-on' college courses, to train future computer architects. 

 
• Provides 16 Arithmetic Operations Add, Subtract, Compare, Double,
Plus Twelve Other Arithmetic Operations 
Provides all 16 Logic Operations of Two Variables Exclusive — OR,
Compare, AND, NAND, OR, NOR, Plus Ten other Logic Operations
• Full Lookahead for High Speed Arithmetic Operation on Long Words
• Input Clamp Diodes

 FUNCTIONAL DESCRIPTION

The SN54/74LS181 is a 4-bit high speed parallel Arithmetic Logic Unit (ALU). Controlled by the four Function Select Inputs (S0 . . . S3) and the Mode Control Input (M), it can perform all the 16 possible logic operations or 16 different arithmetic operations on active HIGH or active LOW operands. The Function Table lists these operations.


The combinational logic circuitry of the 74181 integrated circuit


Reference articles


I sell on Tindie

Sunday, May 3, 2015

NI Multisim - SYNCHRONOUS 4-BIT COUNTER 74ls163

74LS163
74LS Series
  • Synchronous 4-bit counter
  • Dual-In-Line Package
  • 16 pins

http://www.cse.hcmut.edu.vn/~hoangha/uploads/DigitalSystemProject/digitalsystemlab/lab4_2.htm

Tuesday, April 28, 2015

NI Multisim: Hall Effect Sensor & Magnetic Flux

NI Multisim: Hall Effect Sensor & Magnetic Flux

Written by Larsha Johnson
4/28/2015



Build a magnetic switch using a Hall Effect sensor in Multisim. In its simplest form, the sensor operates as an analog transducer, directly returning a voltage. With a known magnetic field, its distance from the Hall plate can be determined. Using groups of sensors, the relative position of the magnet can be deduced.

Hall Effect Sensors convert magnetic flux to a voltage. The output voltage of the sensor depends on the magnetic flux density.

Use this device in conjunction with either the Magnetic Flux Source or the Magnetic Flux Generator. Refer to the Magnetic Flux Source and Magnetic Flux Generator sections for more information.

This topic refers to education-specific features of Multisim

Other components used to simulate the design include the magnetic flux source and magnetic flux generator. These are recommended for simulation studies.

Magnetic Flux Source

This device is used with a Hall Effect Sensor.

The Magnetic Flux Source uses the default B key to change the density and polarity of the magnetic flux impacting on a Hall Effect Sensor. You must specify the sphere of influence of the magnetic flux source by entering an integer value in the Magnetic Channel field in the Value tab of the component’s properties dialog box.

The Magnetic Channel field on the Hall Effect Sensor must have a matching integer value for that sensor to be influenced by the source. No two magnetic flux sources or generators should have the same integer value in the Magnetic Channel field. You can have as many Hall Effect Sensors as you wish to react to any given source/generator and as many different sources/generators as desired as long as each source/generator has a different integer value.

Magnetic Flux Generator

This device is used with a Hall Effect Sensor.

 To locate Hall Effect Sensors, click Search from the Select a Component dialog box, and enter *hall effect sensor* in the Function field.

The Magnetic Flux Generator produces a continuous varying magnetic field (sinusoidal with N and S peaks). You can define the flux density, rate of rotation (translating to frequency) and specify the sphere of influence of the generator by putting a unique integer value in the Magnetic Channel field in the Value tab of the source’s properties dialog box.

The Magnetic Channel field on the Hall Effect Sensor must have a matching integer value for that sensor to be influenced by the generator. No two magnetic flux generators or sources should have the same integer value in the Magnetic Channel field. You can have as many Hall Effect Sensors as you wish to react to any given source/generator and as many different sources/generators as desired as long as each source/generator has a different integer value


LabVIEW Multisim API Toolkit - RLC Values Example

Automate your Multisim design in LabVIEW  Written by: Larsha Johnson Date: October 24th, 2021 If you like designing electronic circuits in M...

Popular Post