10-21-2006 03:54 AM - edited 10-21-2006 03:54 AM
Message Edited by Bill@NGC on 10-21-2006 03:55 AM
10-23-2006 12:30 PM
10-23-2006 01:54 PM - edited 10-23-2006 01:54 PM
Hello,
I of course see the same behavior you do. I agree that the functionality should change. I didn't find documentation of the issue being a "problem," but a product suggestion, as suggested and linked above, is a great idea - it's one of the only ways customers have access directly to R&D!
Best Regards,
JLS
Message Edited by JLS on 10-23-2006 01:56 PM
10-23-2006 03:10 PM
10-24-2006 02:08 PM
Great - this is great feedback, and it should be taken seriously!
Best Regards,
JLS
01-14-2009 10:25 AM
01-14-2009 02:40 PM
05-13-2009 04:18 PM
It doesn't help to wire a Case structure with a Clear Errors vi to the cancelled output (as SteveP suggested). HOWEVER, (in the Write TDMS File example vi) if I put the rest of the code in the False of the Case and the Clear Errors vi in the True (cancelled) case, then it works and suppresses the error (42).
Now get this: I then deletetd the Clear Errors vi and it still works! Then if I delete the Case structure (leaving the False case), the error on cancelling comes back!
You should be able to replicate this and seems to be a good work-around. Does anyone (NI Apps people?) know why this works?
05-14-2009 11:07 AM
Hi Edjsch,
Using a case structure works because error 43 is being handled by being wired into the case structure. Without the case structure, the error isn't being handled and pops up a dialog box. Another work around would be to wire an idicator to the error out from the File Dialog VI and hide the indicator on your front panel. The down side is you'll still get an error from the TDMS VI's because they are trying to access a file but you have not specified one.
05-14-2009 11:51 AM
Thank you, Olivia, for your input. I understand why the Case structure works, but ONLY if the rest of the code is in the false case (the true case being the Clear Errors vi). Maybe this is what SteveP meant to say.
Furthermore, you didn't address why, after I deleted the Clear Errors vi in the true Case, the error was STILL suppressed!
Also, wiring an indicator to the error out, as you suggested, doesn't suppress the error message, so it isn't a workaround.