Tuesday, November 17, 2015

Labview Lecture November 17

Difference between digital inputs is that the circuit is involved with a switch. In this way there is an all or nothing indicator that tells the device if it is reading or not. Analogue usually has a variable acting as a resistor input that changes the voltage that is read to display what is being recorded. with a 3.3V system it still works with the 5V system because the digital 1 is 2.6 and above and the digital 0 is 2.5 and below, effectively creating a binary system. Resistors are used to preserve the technology in the micro controller and the LED.

Voltage drop in LEDs are associated with their color. Current determines the brightness though a current that is too strong burn out the lights.  With the help of transistors or relays, digital outputs also control other more advanced electrical devices.

Review of binary:
numbers represent base 2 and the final answer is equal to the addition of each.
ex) 100 = 2^2*1+2^1*0+2^0*0=4
With 4 digital outputs you can have 16 options for what can be output.

BTD-British Telecom Digital (Left hand side plug)


page4image3136
POS.
page4image5088
DEFAULT
page4image6280
page4image6880 page4image7304 page4image7856 page4image8280
COLOR
NOTE
page4image10720 page4image11504
Pin1
DIO0
YELLOW
3.3V or 5V High
Pin2
DIO1
BLACK
Pin3
DIO2
GREEN
Pin4
PWR (5.3V)
WHITE or BROWN
Pin5
GND
ORANGE
Pin6
page4image41480
DIO3
RED
page4image43704

A relay is nothing more than a switch. A relay is an electromechanical switch. Simply put, a relay will be used for an alarm or remote start installation for one or more of the four purposes:
o To turn something ON
o To turn something OFF or disable something o To change the polarity of a wire
o To increase the current supply of a wire. 

Tuesday, November 10, 2015

LabVIEW Homework 2 November 10



 This graph is awesome it has moving points and you can switch between cosine sine and tangent using the drop box to the left.
This program was not as interesting and took much less time.

Thursday, November 5, 2015

labVIEW lecture November 5

Comments:
Lab view does not have the conventional documentation as other programming applications. Instead, comments are written by labeling some of the wiring or functions. This will be the new method of commenting that will be implemented further on. to create a labeled textbox double clicking on the on the panel. Under VI properties in category documentation, you can also comment on your code.

to limit the maximum input in a dial go to data entry click the check off the default and change the ignore to coerce on maximum row.

Graphs and Charts: 
Separated by data types, there is no 3D in either.  Charts are useful for time based information. Graphs are used to display a chunk of data from a time.
SubVI:
same as m files in matlab, makes diagrams look nicer. When saving subVI save under create unopened disk copy.
Structures:
For and While Loops. Timing pallet allows for saving processing power. (use wait, the metronome is a better wait function)

First Labview Homework November 5

Here is a bit of the first homework for labview. I must say that using tabview for this type of coding is much more difficult. Despite my limited knowledge of programming I'd much rather code in C than use labview. The first problem with the boolean buttons that calculated a 4 bit binary number was difficult to begin with. I felt the lecture was not incredibly over complicated however upon trying to complete the homework I found that not having hands on experience during the lecture had a very large impact on my understanding of how lab view worked. Suffice to say after the first three question question 4 was substantially easier to preform however it was not made in the most efficient way. I suppose I just need more practice to understand how to use lab view in an appropriate manner.

Tuesday, November 3, 2015

labview lecture november 3


Well if this isn't a fine start to a sleepy day :c

Labview: a new interactive program that allows the user to collects data from multiple instruments, run analysis on that data and analyze the data. It gives the potential for closed loop cyclical cycles. The interface is divided into 2 parts one, the front, which has most of the user interface controls on it. The back panel runs coding(kind of the coding is not necessarily written but created using tool functions and pointer switches.The front panel is directly created to the program, if it is closed the whole program is also closed while if the back panel is closed it is the only window that is closed.

Utilizing the right click on the front panel allows for greater in depth control over you're interfaces. So far focused on boolean situations with buttons and switches. When using the logical function or the two conditions can be used to either inhibit or encourage a process that can be done without a logical.

Doing Math in Labview:
the following program was made in labview it was designed as 3 numeric operators and when 0 is placed in the denominators space a returns inf.(wiring order is necessary but it makes sense visually)
While loops
while loops appear as structures in labview. can create a button that stops the while loop (stop).Matters that the code is inside the loop structure. Don't run continuously in order to stop.