LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS file viewer cancel error

I'm tidying up my code and implementing error checking. The final error I haven't managed to resolve is code 43 which (I think) occurrs when a user cancels a file read or write at the TDMS file viewer dialogue box. I have tried to supress 43, but the error occurrs within the TDMS file viewer vi. Any ideas?

 

Many thanks

 

 

 

0 Kudos
Message 1 of 2
(2,480 Views)

Hi Graham,

 

Good Morning and I hope your well today.

 

Thanks for your post. 

 

Have you seen the following KB...

 

Why do I get Error 43 when using the Open/Create/Replace File.vi?

 

This happens with the file viewer when the file input isn't wired. In your code if you have the file path then you can just wire this in and the user popup wont happen. The Viewer is using the lower level VIs to open the file the user has selected. (The file open VI generates error 43 when cancel with the popup.

 

The solution would be to test for error code 43, and then remove like below, 

 

error.JPG

 

I hope this helps,

 

Message Edited by Hillman on 06-23-2009 12:28 PM
Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
Message 2 of 2
(2,458 Views)