04-22-2013 03:48 AM
look at the picture(accessory),when I compile the program like this way,the error was coming.The path way of the file is not right.but I do not know why.if I do not use the "while"circulate,the probelm will not come.I do not know how to solve the problem.If you are a master of the Labview,please help me.thanks
04-22-2013 03:59 AM - edited 04-22-2013 04:07 AM
Hi ljkosjd,
which "error is coming"?
Which "path way"?
Which problem is introduced by the while loop?
Where's the relation between post title ("textfile problem") and the picture?
Your picture just shows a button connected to a case structure and a while loop stop condition. You should attach your VI and you should describe the error you're facing...
04-22-2013 06:05 AM
The WHILE loop has a "Circulate" terminal, which is examined once per iteration, and determines whether the loop iterates again, or not.
This "Circulate" terminal is NOT NECESSARILY tested at the END of each iteration, it's tested whenever the data wired to it is available.
In your case, that will be soon after reading the button/switch that you have wired to it.
In other words, in your snippet, you read the button which commits you to iterating/not iterating, and THEN you do whatever is in the case statement.
Make sure that's what you really want to do.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
04-22-2013 07:38 PM
here is the vi,the error is "The input parameters is invalid,the input path may include operating system which does not allow for the character of the path"
04-22-2013 07:42 PM
here is the vi,the error is "the input the path is invalid,the input path may include operating system does not allow for the character of the path",please help me thanks.
04-22-2013 07:52 PM
What is the filename you have in the path control? In the VI you attached, the path control is empty.
I see from your screenshot that you have a chinese character set. Is it possible you have a chinese character in your path control that is not allowed by your operating system?
04-22-2013 09:23 PM
I use a chinese name to define the filename.I am puzzled because if I do not control the while loop terminal,the program operates very well.If I control it,it would make error.here is a picture,I download from the Internet.You can
operate it.It is OK.But I do not know the red circle.It comes from where?its function and the following AND gate and the Not gate use for what?
see
04-22-2013 09:25 PM
here is the vi(download from the internet,not mine)
04-22-2013 09:36 PM
That function is unbundle by name to get the error status out of the error cluster. Basically if the error cluster is NOT an error, AND the Power button is ON, then continue to the loop.
If you are not familiar with that function, then you need to take some LabVIEW tutorials.
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
"if I do not control the while loop terminal,the program operates very well.If I control it,it would make error"
I have no idea what you mean by that sentence. What to you mean by "control the while loop"?
I can't download your VI because, once again, you are using chinese characters. That VI won't open on my OS.
Since your file problems seem to be related to using chinese characters, then I suggest you change your VI so that your filepath only consists of normal, English characters. Obviously your operating system can't handle chinese characters.
04-22-2013 10:58 PM
control the while loop terminal means this ,when I run the program,I want to concrol when to write to the textfile.but now,if I stop the while loop, the textfile error will come.