Tuesday 30 May 2017

Introduction to RS232 Serial Communication - Part 1

Labview consultant
Serial communication is basically the transmission or reception of data one bit at a time. Today’s computers generally address data in bytes or some multiple thereof. A byte contains 8 bits. A bit is basically either a logical 1 or zero. Every character on this page is actually expressed internally as one byte. The serial port is used to convert each byte to a stream of ones and zeroes as well as to convert streams of ones and zeroes to bytes. The serial port contains an electronic chip called Universal Asynchronous Receiver/Transmitter (UART) that actually does the conversion.
The serial port has many pins. We will discuss the transmit and receive pin first. Electrically speaking, whenever the serial port sends a logical one (1) a negative voltage is effected on the transmit pin. Whenever the serial port sends a logical zero (0) a positive voltage is effected. When no data is being sent, the serial port’s transmit pin’s voltage is negative (1) and is said to be in the MARK state. Note that the serial port can also be forced to keep the transmit pin at a positive voltage (0) and is said to be the SPACE or BREAK state. (The terms MARK and SPACE are also used to simply denote a negative voltage (1) or a positive voltage(0) at the transmit pin respectively).
When transmitting a byte, the UART (serial port) first sends a START BIT which is a positive voltage (0), followed by the data (general 8 bits, but could be 5, 6, 7, or 8 bits) followed by one or two STOP BITs which is a negative(1) voltage. The sequence is repeated for each byte sent.
At this point, you may want to know what is the duration of a bit. In other words, how long does the signal stay in a particular state to define a bit? The answer is simple. It is dependent on the baud rate. The baud rate is the number of times the signal can switch states in one second. Therefore, if the line is operating at 9600 baud, the line can switch states 9,600 times per second. This means each bit has the duration of 1/9600 of a second or about 100 µsec.
When transmitting a character there are other characteristics other than the baud rate that must be known or that must be setup. These characteristics define the entire interpretation of the data stream.
The first characteristic is the length of the byte that will be transmitted. This length, in general, can be anywhere from 5 to 8 bits.
The second characteristic is parity. The parity characteristic can be even, odd, mark, space, or none. If even parity, then the last data bit transmitted will be a logical 1 if the data transmitted had an even amount of 0 bits. If odd parity, then the last data bit transmitted will be a logical 1 if the data transmitted had an odd amount of 0 bits. If MARK parity, then the last transmitted data bit will always be a logical 1. If SPACE parity, then the last transmitted data bit will always be a logical 0. If no parity then there is no parity bit transmitted.
A third characteristic is a number of stop bits. This value, in general, is 1 or 2.
Stay tuned for part two, it will be published soon.

Friday 26 May 2017

Computerized Outputs

data logger
Digital Outputs require a similar investigation and large portions of indistinguishable contemplation from advanced data sources. These incorporate watchful thought of yield voltage go, greatest refresh rate, and most extreme drive current required. In any case, the yields likewise have various particular contemplations, as portrayed beneath. Relays have the benefit of high off impedance, low off spillage, low on resistance, irresoluteness amongst AC and DC flags, and implicit segregation. Be that as it may, they are mechanical gadgets and consequently give bring down unwavering quality and commonly slower reaction rates. Semi-conductor yields regularly have a favorable position in speed and unwavering quality.
Semiconductor changes additionally have a tendency to be littler than their mechanical reciprocals, so a semiconductor-based advanced yield gadget will commonly give more yields per unit volume. When utilizing DC semiconductor gadgets, be mindful so as to consider whether your framework requires the yield to sink or source current. To fulfill varying necessities,

Current Limiting/Fusing

Most yields, and especially those used to switch high streams (100 mA or something like that), offer some kind of yield security. There are three sorts most normally accessible. The first is a straightforward circuit. Cheap and dependable, the primary issue with circuits, is they can't be reset and should be supplanted when blown. The second sort of current constraining is given by a resettable breaker. Ordinarily, these gadgets are variable resistors. Once the current achieves a specific edge, their resistance starts to rise rapidly, at last constraining the current and stopping the current.
Once the culpable association is evacuated, the resettable circuit returns to its unique low impedance state. The third kind of limiter is a real current screen that turns the yield off if and when an overcurrent is recognized. This "controller" limiter has the upsides of not requiring substitution taking after an overcurrent occasion. Numerous usage of the controller setup additionally permits the overcurrent outing to be determined to a channel by channel premise, even with a solitary yield board.


Tuesday 23 May 2017

Synchros and Resolvers

daq
Synchros and Resolvers have been used to measure and control shaft angles in various applications for over 50 years. Though they predate WWII, these units became extremely popular during WWII in fire/gun control applications, as indicators/controllers for aircraft control surfaces and even for synchronizing the sound and video in early motion picture systems. In the past, these units were also called Selsyns (for Self-Synchronous.)
At a first glance, Synchros and Resolvers don’t look too different from electric motors. They share the same rotor, stator, and shaft components. The primary difference between a synchro and a resolver is a synchro has three stator windings installed at 120-degree offsets while the resolver has two stator windings installed at 90-degree angles. To monitor rotation with a synchro or resolver, the data acquisition system needs to provide an AC excitation signal and an analog input capable of digitizing the corresponding AC output.
Though it is possible to create such a system using standard analog input and output devices, it is a fairly complicated process to do so, and most people opt for a dedicated synchro/resolver interface. These DAQ products not only provide appropriate signal conditioning, they also typically take care of most of the “math” required to turn the analog input into rotational information. It always a good idea to check the software support of any synchro/resolver interface to ensure that it does provide results in a format you can use. Most synchro/resolvers require an excitation of roughly 26 Vrms at frequencies of either 60 or 400 Hz. It is important to check the requirements of the actual device you are using. Some units require 120 Vrms (and provide correspondingly large outputs…be careful.) Also, some synchro/resolver devices, and in particular those used in applications where rotational speed is high, require higher excitation frequencies, though you will seldom see a system requiring anything higher than a few kilohertz.
Finally, some synchro/resolver interfaces such as UEI’s DNx-AI-255 provide the ability to use the excitation outputs as simulated synchro/resolver signals. This capability is very helpful in developing aircraft or ground vehicle simulators as well as for providing a way to test and calibrate synchro/ resolver interfaces without requiring the installation of an actual hardware. Note: In some applications, the synchro/resolver excitation is provided by the DUT itself. In such cases, it is important to make sure that your DAQ interface is capable of synchronizing to the external excitation. This is typically accomplished by using an additional analog input channel.

Friday 19 May 2017

Simple Wiring of Clock and Trigger

data acquisition
One last part of "non-standard" information obtaining and control frameworks is the manner by which bigger frameworks are synchronized. Regularly, it is important that you know "what" happened, as well as "when" it happened. In little frameworks, this is normally simple to fulfill as the simple sources of info and even the yield excitation, are on a similar board. Be that as it may, frameworks with high channel include and, specific, applications spread over extensive zones require cautious thoughtfulness regarding timing. A top to bottom talk of this theme is well past the extent of this article, yet the accompanying brief segment may help the per user begin off in the correct bearing instantly.

Simple Wiring of Clock/Trigger

Simple Wiring of clock and trigger signs is regularly the snappiest, least demanding and most exact approach to synchronize occasions in better places. Most DAQ gadgets have at least one trigger/clock sources of info and it is as often as possible conceivable to just synchronize frameworks by interfacing these signs. Take note of that the engendering of an electronic flag in a wire is near the speed of light. A thousand feet of wire would commonly just present about a microsecond of postponement.
A great many people consider GPS (Global Positioning System) as a reasonable approach to discover the closest corner store or pizza parlor. Be that as it may, GPS is likewise a magnificent innovation for giving extremely exact time data. Truth be told, the whole reason for the GPS framework is amazingly exact timekeepers (and in addition satellites at known areas). Indeed, even a generally economical GPS can give supreme planning precision superior to 1 microsecond. In spite of the fact that the GPS on your pontoon or auto might not have a period yield flag, numerous reasonable GPS gadgets give a 1 or 5 Pulse for every Second flag exact to inside 1 uS of supreme UTC. Utilizing these straightforward and reasonable gadgets, it turns out to be straightforward to synchronize information tests anyplace on the planet.

Thursday 18 May 2017

Do You Know About RS-232/422/423/485?

data acquisition system
Individuals initially started anticipating the downfall of RS-232 in the 1980s. Obviously, RS-232 is still around and kicking. On the off chance that Mark Twain was as yet alive, I'm certain he'd compose something on the request of "The reports of the demise of RS-232 have been enormously overstated". The RS-arrangement ports remain to a great degree basic in the information procurement and control field.
RS-232 is more established and slower than its 422/423/485 family mates, yet the use of both is still extremely normal. As a genuinely straightforward interface, there is not all that much to consider while determining an RS-arrangement interface, yet a couple words might be all together. In the first place, not every single serial gadget work at a similar speed. Make certain to determine a gadget that will deal with the baud rate of your gadget. Second, for steady and reliable operation, particularly at higher rates, make certain to choose a gadget with a significant FIFO. Take note of that RS-232 ports, and specifically, those on more established gadgets, utilize equipment handshaking signs, for example, "Prepared to Send", "Clear to Send".
Numerous more up to date RS-232 interfaces don't bolster these handshaking signals, so make sure to watch that your serial interface underpins what you require. Another normal arrangement of inquiries emerges while considering the contrasts between RS-422, 423 and 485. RS-422 utilizations a two-wire, completely differential flag interface. RS-423 utilizations the same signal levels, however, utilizes just a single of the two wires. RS-422 and RS-485 are practically indistinguishable. The distinction is that an RS-485 is networkable and can be associated with various serial gadgets. An RS-485 interface will quite often be superbly appropriate for conversing with an RS-422 gadget

Monday 15 May 2017

Military’s equivalent to ARINC-429

Daq
MIL-STD-1553 is the military’s equivalent to ARINC-429, though structurally it is VERY different. The first and most obvious difference is that most 1553 links are designed with dual, redundant channels. Though commercial aircraft don’t typically get wires cut by bullets or flak, military aircraft are typically designed such that a single cut wire or wiring harness won’t cause a loss of system control.
If you are looking to “hook” to an MIL-1553 device, be sure your interface has both channels. Also, an MIL-1553 device can serve as Bus Controller, Bus Monitor, or Remote Terminal. Not all interfaces support all three functions. Be sure the interface you select has the capability you require. As with the ARINC-429 bus, when operating as a bus controller, the unit must be capable of detailed transmission scheduling (including major and minor frame timing) and this is best performed in hardware rather than via software timing.

CAN 

The CAN (Controller Area Network) bus is the standard communications interface for automotive and truck systems. Gone are the days when your car was controlled by mechanical linkages, gears, and high current switches. Your transmission now shifts gears based on CAN commands sent from a computer. Even such things as raising/lowering the windows and adjusting the outside rearview mirror are frequently no longer done via simple switches but are now done via CAN sensors and actuators.
Vehicle speed, engine RPM, transmission gear selection, even internal temperature are all available on the CAN bus. As with the ARINC-429 aircraft example, when running tests in a car or truck, it’s very useful to be able to coordinate the data available on the various CAN networks with any more conventional DAQ measurement you may be making. If you are measuring internal vibration, you’ll want to coordinate it with Engine RPM and speed (among other things). Like any data acquisition system, one of the first things you need to be aware of when specifying a CAN interface system is how many CAN ports you will need.
There are sometimes 50 or more different CAN networks in a given vehicle. Be sure your system has enough channels to grab all the data you still need. The CAN specification supports data rates up to 1 megabaud. Be sure the system you specify is capable of matching the speed of the network you wish to monitor

Friday 12 May 2017

Do you know about ARINC-429?

Daq
ARINC-429 is the aeronautics interface utilized by all business air ship (however 429 is not the essential interface on the Boeing 777 and 787 and the Airbus A-380). It is utilized for everything from conveying between different complex frameworks, for example, flight executives and autopilots and in addition to observing more short-sighted gadgets, for example, velocity sensors or fold position pointers.
In test frameworks, it's frequently basic to organize information from ARINC-429 gadgets with more regular DAQ gadgets, for example, weight sensors and strain gages. When examining stress put on a wing fight, you'd positively jump at the chance to have the capacity to facilitate the anxiety comes about with so many parameters as velocity, elevation, and any turn or climb/plummet incited g-strengths.
While the ARINC-429 transport is all around characterized, PC-based interfaces for the 429 transport are altogether different. The 429 transport characterizes usefulness as far as names, with each name speaking to an alternate parameter. It's essential for the information procurement framework to have the capacity to separate between the names. On the off chance that your framework is just keen on velocity, you need to disregard different parameters. Take note of that some ARINC-429 interfaces enable you to make these determinations in interface equipment, while others put the weight of exertion on the product.
Numerous ARINC-429 gadgets keep running on a complete calendar. For instance, the attractive heading might be transmitted each 200 mS. Some ARINC interfaces rely on programming based planning while others incorporate the booking with an FPGA in the equipment. The more elements and parameters a given ARINC interface incorporates with equipment the better, as you might rely on those valuable host CPU cycles for different things.

Wednesday 10 May 2017

Quadrature Encoders

Daq
Quadrature encoders are likewise used to quantify rakish relocation and turn. Not at all like alternate gadgets, we have portrayed in this article, these items give a computerized yield. There are two essential computerized yields which are as 90-degree out-of-state advanced heartbeat trains. The recurrence of the beats decides the rakish speed, while the relative stage between the two (+90°or - 90°) portrays the bearing of turn.
These heartbeat trains can be checked by numerous nonspecific DAQ counter frameworks with one of the outputs being associated with a counter clock while the other is associated with an up/down stick. In any case, the encoder is such a typical piece of numerous DAQ frameworks that numerous merchants give an interface particularly created to quadrature estimations. One thing that can't be resolved from the beat tallies alone is the outright position of the pole.
Thus, most encoder frameworks likewise give a "File" yield. This list flag produces a heartbeat at a known rakish position. Once a known position is distinguished, the supreme position can be controlled by including (or subtracting) the relative pivot to the known record position. Numerous encoders give differential yields, however, differential commotion resistance is sometimes required unless the electrical condition is extremely cruel (e.g., neighborhood circular segment welding stations) or the keeps running from the encoder to the DAQ framework are long (100s of feet or more). Committed Encoders are accessible from numerous sellers in an assortment of setups.
ICP/IEPE Piezoelectric Crystal Sensors When considering piezoelectric precious stone gadgets for use in a DAQ framework, the vast majority consider vibration and accelerometer sensors as these gems are the reason for the pervasive ICP/IEPE sensors. It is by and large comprehended that when you apply a drive on a piezoelectric precious stone it makes the gem twist marginally and that this distortion incites a quantifiable voltage over the gem. Another component of these gems is that a voltage set over an unstressed piezoelectric precious stone makes the gem "distort".
This miss happening is in reality little, additionally exceptionally very much carried on and unsurprising. Piezoelectric precious stones have turned into an extremely normal movement control gadget in frameworks that require little avoidances. Specifically, they are utilized as a part of a wide assortment of laser control frameworks and also a large group of other optical control applications. In such applications, a mirror is connected to the gem, and as the voltage connected to the gem is changed, the mirror moves.
In spite of the fact that the development is ordinarily not discernible by the human eye, at the wavelength of light, the development is significant. Driving these piezoelectric gadgets presents two fascinating difficulties. To start with, accomplishing the coveted development from a piezoelectric precious stone frequently requires huge voltages, however benevolently at low DC streams. Second, however, the precious stones have high DC impedances they additionally have high capacitance, and driving them at high rates is not a minor undertaking. Exceptional drivers, for example, UEI's PD-AOAMP-115 are regularly required as the run of the mill simple yield board does not offer the yield voltage or capacitive driveability required.

Friday 5 May 2017

What are String Pots?

Data acquisition system
String pots are intended to gauge direct uprooting. They are ordinarily lower cost than LVDTs and can offer any longer estimation separations. As their name suggests, the reason for string pot is a string or link, and a potentiometer. Fundamentally, a string and a spring are connected to the wiper screw of the potentiometer and as the string is pulled, the potentiometer resistance changes. The string pot gives an adjustment element that depicts what uprooting is spoken to by a rate of resistance change.
As a basic variable resistance gadget, with a direct yield, most string pots are interfaced to standard A/D sheets. The most widely recognized association arrangement interfaces a voltage reference to the one side of the string pot with the opposite side associated with ground.
The "wiper" is then associated with an A/D input channel. With the string totally withdrawn, the deliberate voltage will be equivalent to either reference voltage or zero. With the string totally developed, the voltage measured will be the inverse (either zero or the reference voltage). At any middle of the road string expansion, the voltage measured will be corresponding to the rate of string "out".
Make sure your voltage reference has the yield current ability to drive the string pot resistance. Your estimation will be a blunder by an indistinguishable rate from any voltage reference mistake. At times, it might be advantageous to drive the string pot with a higher limit, bring down exactness voltage source. Should you require higher exactness than the voltage source gives, you may dependably devote an A/D channel to quantify the voltage source.
This makes the framework for all intents and purposes safe to blunders in the voltage source. Another note is that string pots are single finished, disengaged gadgets. While associating a string pot to a differential information, make sure to interface the string pot/reference ground and the A/D channel's low or "- " input. Neglecting to make this association somehow will probably bring about problematic and even "odd" conduct as the information "- " terminal buoys all through the info enhancer's normal mode go.

Tuesday 2 May 2017

LVDT and RVDT

Daq
LVDT and RVDT (Linear/Rotary Variable Differential Transformer) gadgets are like synchro/resolvers in that they utilize transformer loops to detect movement. Be that as it may, in an RVDT/LVDT, the curls are settled in the area and the coveted flag is prompted by the development of the ferromagnetic "center" with respect to the loops. (Obviously, an essential distinction of the LVDT and synchro/resolvers is that the LVDT is utilized to quantify straight movement, not pivot.)
Another contrast amongst RVDTs and synchro/resolvers are the RVDT has a restricted precise estimation go, while the synchro/resolver can be utilized for multi-turn rotational estimation with appraised exactness for the whole 0-360 degree range. While associating an RVDT/LVDT to your DAQ framework, the majority of the worries are like those of the synchros.
To begin with, you may fabricate an RVDT/LVDT interface out of non-exclusive A/D and D/A between countenances, yet it's not an unimportant exercise. A great many people decide on an extraordinary reason interface composed particularly for the assignment.
Notwithstanding wiping out the requirement for complex flag molding, the particularly outlined interface will for the most part change over the different signs into either turn (in degrees or percent of scale) or on account of the LVDT, into rate of full scale The LVDT/RVDT interface will likewise give the fundamental excitation, which is regularly in the 2-7 Vrms extend at frequencies of 100 Hz to 5 kHz.
A few frameworks may give their own particular excitation, and in such a case, make sure the LVDT/RVDT interface you pick has a way to synchronize to it. At last, similar to the synchro/resolver, LVDT/RVDT interfaces, for example, UEI's DNx-AI-254 give the capacity to utilize the excitation yields as a mimicked LVDT/RVDT signals. This capacity is extremely useful in creating airship or ground vehicle test systems, and also to provide an approach to test and align RVDT/LVDT interfaces without requiring the establishment of the real equipment.