Imagine you have clicked pictures of your notebook and saved them as pdf file. You find that it is oriented in the wrong direction and you rotate it using your pdf viewer. But when you are trying to email them to your friend, you will find that it is still misoriented. Are you confused what is happening? Do you want to know how to rotate pdf files permanently? Continue reading “How to rotate pdf files and merge using PDFtk in Linux?”
This is a general article for connecting any data taking instrument to the computer using python. There are two frameworks for connection namely NI-visa developed by National Instrumentation and PyVISA-py developed by Python itself. In this article, we will describe how to connect Tektronix Oscilloscope to PC via Ethernet or USB using PyVISA-py in Linux. After connection, we have explained seamless data logging from oscilloscope. Continue reading “How to save Data from Oscilloscope using Python in Linux”
This article explains how to connect Tektronix Oscilloscope to PC via Ethernet LAN and control it remotely. We have used TEKTRONIX MSO4104B for this tutorial. However, this method can be used in general for other oscilloscopes as well as instruments like Pico Ammeters etc.
Although, you can save the data by connecting pendrive to oscilloscope but this method of Ethernet connection helps you in remotely controlling oscilloscope and directly acquiring data to the PC through browser. After connection, one can also control and acquire data using programming. Continue reading “Connecting and Controlling Oscilloscope TEKTRONIX MSO4104B from PC using Ethernet LAN”
This VPython tutorial shows the simulation of two Spring and one Mass system. The generalised Spring-Mass system can be understood efficiently by exploring a single mass attached to two springs. In this system, we have two springs, one end of each spring is attached to the rigid support whereas another end is attached to the mass. The motion of mass is influenced by the forces of both springs.
VPython 7 is the latest version of VPython which can be used with Python3 in Ubuntu 18.04. VPython installation using pip in Python3 has been explained in this tutorial.
Ubuntu 18.04 (Bionic Beaver) is a latest version of Linux distribution Ubuntu. Python 2.7 has been upgraded to Python3 in Ubuntu 18.04. If you want to used latest version, VPython 7 then you can go for one of the three methods: Continue reading “How to Install VPython 7 in Python3 in Ubuntu 18.04 (Bionic Beaver)?”
ROOT is a modular scientific framework software used by CERN to do analysis. This framework is very common among High Energy Physics reseachers. This post explains the installation procedure of CERN ROOT and also enabling the various libararies which may be required later. You can learn more about ROOT at cern website.
We are going to install ROOT 6.10.04 in Ubuntu 18.04 which is a latest version of Ubuntu currently available. Many softwares have been upgrade to higher versions in Ubuntu 18.04 like Python3 and gcc 7 etc. Continue reading “CERN ROOT installation in Ubuntu 18.04 and enabling all libraries”
The graph of potential and kinetic energy can be plotted in VPython while making python 3d visualization. In this article, we are going to learn how to make a graph of potential energy, kinetic energy, total energy and phase diagram. We will be first learning how to make a graph in VPython and then describe, how to find kinetic energy and potential energy formula. We will also plot phase diagrams for all the three systems described in the previous articles. Continue reading “How to make a graph of potential and kinetic energy: VPython Tutorial 4 (Visual Python)”
A pendulum is the first instrument which comes to mind when someone thinks about Physics. The pendulum is a simple instrument which consists of a bob attached to a string whose other end is tied to a pivot at some height. When the pendulum is left on itself, the bob hangs down with stretched string and remain stationary. If someone gives bob slight push, the pendulum starts moving and swings back and forth. The push provides the pendulum a kinetic energy which helps in the motion of the pendulum. Continue reading “Simulation of Pendulum: VPython Tutorial 3 (Visual Python)”
The spring-mass system is one of the simplest systems in physics. The spring-mass system consists of a spring whose one end is attached to a rigid support and the other end is attached to a movable object. When the spring is stretched or compressed, the spring tries to restore its position which results in oscillation of object around the equilibrium position. The equilibrium position is defined as the position when spring is at its normal length and the object does not experience any force. Continue reading “Simulation of Spring-Mass System: VPython Tutorial 2 (Visual Python)”
Visual Python (VPython) is a module in Python programming language which provides a platform to make 3D models and simulations. In VPython, you can create various objects like sphere, box, cone, cylinder etc. You can assign different attributes to these objects like size, mass, color, position, velocity, acceleration etc. You can use all the commands and codes of Python language in VPython also. In this post, we are going to simulate a ball which falls under the effect of gravity and bounces off after striking the floor. Continue reading “Simulation of Bouncing Ball: VPython Tutorial 1 (Visual Python)”