09-10-2016 04:11 AM
09-10-2016 04:26 AM
09-10-2016 05:56 AM
@robin7goyal wrote:
Pls give me answer
No, because if I "give you the answer", you won't learn anything.
I assume you have access to a computer with LabVIEW. Go to that computer and create the following VI, consisting of an Error Cluster Constant (found on the Dialog and User Interface Palette) and a While Loop. Do some experiments and figure it out.
Bob Schor
09-10-2016 06:19 AM
09-10-2016 06:23 AM
09-10-2016 06:47 AM
Look at the Error Line on a Block Diagram. Do you notice that it is not a "simple thin line" like an Integer, Float, or Boolean, and not a "thick" or "double" line like a 1D or 2D array? It is, in fact, a "patterned" line like a Cluster, and that is because it carries the "Error Cluster".
Do you know about Clusters in LabVIEW? [If the answer is "No", as I'm beginning to suspect may be true, stop and learn LabVIEW]. Open a blank VI, drop down any function that has an Error Out (say, any of the File I/O functions), and wire an "Unbundle by Name" function (from the Cluster Palette) to the Error Out terminal. If you know about Clusters, then you should know you can "drag" the bottom of the Unbundle function to see the names of all three Cluster Elements. Now go to LabVIEW Help and look up Error Clusters, which will explain what each of these Elements does, and in doing so, will completely answer your question.
If you put a little effort into trying to find the answers yourself, you will actually learn something.
Bob Schor
09-10-2016 06:59 AM
09-10-2016 07:07 AM
Sigh. My original answer, which involved running a pretty trivial LabVIEW routine, provided the "experimental" means to find the answer. I then told you how to find the answer to other questions you asked, but you didn't "do the experiment", did you?
You cannot learn to program by "reading a book". You need to write programs, run them, observe how they work, see how they fail, debug and fix them, and, in so doing, develop a familiarity with the relevant programming Language.
Would you think of learning Spanish, or Japanese, or English, just by reading a book, and never trying to communicate in that Langauge with anyone?
Go back and do the experiment. Then you will get the right (not "write") answer.
Bob Schor