0% found this document useful (0 votes)
16 views18 pages

Data Type

The document compares text-based programming and graphical programming techniques, highlighting their differences in syntax requirements, execution flow, error detection, and interactivity. It also discusses various programming instructions, data types, and how they are represented in LabVIEW, including numeric, string, arrays, clusters, and enumerated data types. Additionally, it emphasizes the importance of understanding data types for effective programming.

Uploaded by

newmf843
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
16 views18 pages

Data Type

The document compares text-based programming and graphical programming techniques, highlighting their differences in syntax requirements, execution flow, error detection, and interactivity. It also discusses various programming instructions, data types, and how they are represented in LabVIEW, including numeric, string, arrays, clusters, and enumerated data types. Additionally, it emphasizes the importance of understanding data types for effective programming.

Uploaded by

newmf843
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
RAPHICAL PROGRAMMING TECHNIQUES RAPHICAL PROGRAMMING TECHNIQUES RAPHICAL PROGRAMMING TECHNIQUES Text Based Programming Syntax must be known to do programming The execution of the program is from top to bottom To check for the error the program has to be compiled or executed Front panel design needs extra coding or needs extra work ‘Text based programming is not interactive Thisis the text based programming where the programming is not conventional method Logical error finding is easy in large programs Program flow is not visible Itis Text based Programming Passing parameters to sub routine is difficult | Graphical Programming Syntax is knowledge but is not required for programming The execution of the program is from left to right Errors are indicated as we wire the blocks Front panel design is a part of programming Graphical programming is highly interactive The programming is data flow programming Logical error finding in large programs is quiet complicated Data flow is visible It is icon based programming and wiring Passing Parameters to sub V1 is easy Instruction * Program statements are called Instructions. * Instructions are commands * Types of Instructions — Data Type Declaration Instruction — Input Output Instruction — Arithmetic Instruction — Control Instruction Data Type * int * char * float * double * void Declaration statements a b inka RS ese k float k; Ld) ch m char ch,m; a DB d1 double d1; Co) WHAT ARE DATATYPES ? PEER NACE MICE Oc tues Wenrla caer ReOncHme ES Ncul aye me TIACOE values. When computer program Store data in variable , each variable must PE CoN SOR ceric emai Some common data types include -— INTEGER FLOATING PONT NUMBER ) CHARACTERS STRING ARRAYS DATATYPES IN LABVIEW oro ee aA Ua UeNC ec WR ace Mc lnecluemcce SrePe-1QU IAA Data types cannot be interconnected Nea ReO CEM Mri umt cena ecy COON ACCOR CCR Cee AY Ila Leber NORA NUMERIC — ERROR CLUSTER STRING WAVEFORM ARRAY ENUM BOOLEAN DATATYPES in False Constant (Ooi RU RUN ANYON Elo True (1) Boolean Control Boolean Indicator False (0) Boolean Control View As Icon) Boolean Indicator (View As Icon) Be\uC Tori ere nme Canto ato a {o] J Fm Indicated by PETER Vicos PV NALA MS oycesm ince uo eeremec cM erM ola) (ter NUMERIC DATATYPES Roane tae Teen UT itsuomatl aot Alor Orato Rtn CElem cc ON mentored number of bit th NIGH Y ISIN (GR DEV UE UW A di) ES eran Ct ESIC m Onan ccemMN rye) Oomntnnl ce mio (antaeearrusttctN PTiCooe Bing UN sTTLoe) SnTCocome TU Toms T au Se ROTOR Tcon Ute MOLE RY Lcd TEEN Cesta Hee cue cont y ceenlcwr bo ycccon ed ) mele el Creat Only difference in numeric data is determined by the type of their values and the number of bit they stored. STRING DATATYPES NSC CLO Cy ROU MREGI rie cit Vie Pot Opente Te oe Teeter og Peron maka eres prt rel nume PaCS acters in the lab VIEW STRING DATATYPES NCCC OVE GEC r rma cerreucesne acl yy Ics Ceres stan Fy string data type. ATScoulertes cody mm LCRA cd NTO RACES NCL RO ees tCa 1. controlling instrument by sending text commands to Rees CRMs Comogoliilog ASCII or binary string which we can then convert to numeric values. 2, Store numeric data to disk. ARRAYS Group of specific data types. remem CER UC OcP TCO te URI CK Maron nue CeCe MN Accs SIAM Meee Vanier sor Teen lam OM Tes COMO RSH OHS Wire Type Scalar 1D Array 2D Array floating-point Numeric — — integer Boolean war ern String CLUSTERS QoS Uae oronaN NU Re CLe BIST Cmte Heteirelcom ym tunTe com Ce) omComitinncaterTiel ORE RIVTCs (Oe other. Figure shown below shows the cluster containing, 3 data types : Eustis a Boolean switch and anumeric GRAPHS/WAVEFORMS DATATYPES SATO CENCE ym eCR CURR ocean \meeenens tui RUN PROMS eMac RUC une eRe CKO mice lattall ety data. It provides you with the exact and precise information about your data in CieCe Mercy Nica ENUMERATED DATATYPE UTE ree MOCO MO ReCLC MAY NeBUE TN mene Mm me mec) values i.e. a string and a numeric value. ORS CH UCR Ae HCE EAB CE MY OU NCR CR Cena Fito Ceceesr Much eree rece ETC TA em ERO COU err Ta mem (UVa Roo n

You might also like