Thursday, December 10, 2015

LabVIEW Lecture November 10

Review Case structures:
What do they do, basically if/else if code. Lets you select between a specific set of operations depending on an initial condition. An Enum control allow the user to select between options, Ring can also be used. This two allow for more than two cases.

Sequence Structure:
When functions need to be done in a specific order. Forces orders to be done in a certain order. Found in Functions Palette / Programming Group / Structures Group / Flat /Sequence Structure

MAtlab script:
You can type directly in matlab code and import the Labview code into matLAB under:
Functions Palette / Mathematics / Scripts and Formulas / Script Nodes / MATLAB Script
This specific script is not in the apple version of labVIEW evaluation but had it been it would be advised to change the data types of the outputs that are used in the matLab code other wise an intended array wi;ll out put only one number.

Boolean Functions
Functions Comment
And AND
Boolean To (0,1) Converts FALSE, TRUE to 0,1
Compound Arithmetic Performs certain math operation (Add, Multiply, AND, OR or XOR) on more than two values
Exclusive Or XOR
False Constant Returns FALSE
Not and NAND
Not Exclusive Or NOT XOR
Not Or NOR
Not NOT
Or OR
True Constant Returns TRUE

Cylindrical tank problem:
HARDWARE:
Hooking computer up to an interface. My God, looking at that example program from the example download is very complex.

Ok by this point I might not have had Labview to run on my computer just yet so it is mostly me just working from the notes, that or we switched to the vernier part of LabVIEW and that never ran on my own computer, if we are at the former point I would like to mention that all of the Homework from this point on was completed with one or more classmates since I could not run anything myself good for me because it let me see how other people went around doing their programing and gave me insight on how to work out multiple solutions to one problem.

No comments:

Post a Comment