12-14-2009 06:08 AM
Yes thanks, with this example
i will try!
12-14-2009 06:54 AM
Well Gerd, I tryed here but I can't do it =/
Sorry if I'm asking too much, but the problem is... I want to learn LabView for sure, but I have to make that today!
My boss will travel tomorrow morning and he will need it. This is why I'm asking for help =/
I didn't understand why have 4 cases?
and could you make this example in Labview 7.1?
thanks!
12-14-2009 07:31 AM - edited 12-14-2009 07:40 AM
Well Gerd, this is what I did
and at no error I only link the error.
But I'm receiving this message:
"Error 1 occurred at Close file in Mostra 4V4I 480V teste.vi
Possible reasons: An input parameter is invalid"
I also tryed it:
but have the same error x( I don't know =/
12-14-2009 07:41 AM - edited 12-14-2009 07:46 AM
Hi EduU,
why do you open the same file again? I thought you want to open the next file? So you have to wire the filereference through the case structure too...
You close the file on every error (might be a bad idea), then the reference get's invalid and in the next iteration you try to close a non-valid reference - What's the error reason? Invalid parameter?
Ever tried your vi with execution highlight?
I didn't make 4 cases, I only made one case for error code 4. That's a huge difference!
12-14-2009 07:56 AM
Yes, I understand it now
I already make only one case to code 4, but I runned it as highlight and when the error was 4, EOF was to use the error case, but it was passing for the no error case... like don't have any error!
well, how can I open the next file? I want to open another one... but i think I was doing that making it:
How can I open the next file so?
12-14-2009 08:02 AM
Hi EduU,
at the moment you close the file. "Close File" will return the path to the closed file - and you use exactly that path to open the file.
You have to provide the next filename to open! Or should LabView guess which file to open?
Which error code is given when you want to close the file? Error code 4 is assigned to EOF... When you get different codes you have to check them too. Use a probe (and highlighting) to check that!
12-14-2009 08:12 AM
Hum I saw it now
But theres a problem, when the first file reach the final, the program just stop
and don't ask me for open another file, as I said before
When the EOF is in, the code is 4, but its using the "no error" case, so don't do nothing
but as i saw in your example, if the code was 4, it have to select the error case.
How can I make it select "error case" when reach the EOF ?
12-14-2009 08:16 AM
Hi EduU,
ok, so you don't get an error - you get a warning! That's a difference...
You have to check for code=4 in the "no error" case (as it's a warning!). Simply right-click the "error" case string and select "Make this no error case"...
Then test again
12-14-2009 09:24 AM
Hey Gerd, now it's almost fine
When the first file finish, LV open the box so I select the other file, but when I selected and click to open
the program stop =/
Why this now?
12-14-2009 09:31 AM