DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

6200

I have just changed Desktops. Running XP on both.

I have a VBS script that worked beautifully writing out to Excel file using DataFilesavesel

 

With the new desktop it is giving me an error saying that the file cannot be wriiten to , error 6200.

I can write out PNG and TDM files from the script successfully.

 

Is it a file permission/Windows type problem?

I am using version Diadem 10.1

 

Thanks

 

Stagsden

0 Kudos
Message 1 of 7
(4,513 Views)

Hi Stagsden,

 

Thanks for using the NI Forums! This sounds like an interesting issue! Are you logged on as Administrator in both PC's? Also where is the script file and the file you are trying to save to located on the PC?

 

Do you have a small script I can try to see if I can reproduce this issue?

 

Ash

Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 2 of 7
(4,461 Views)

Hello Ashish,

 

I have narrowed the problem down to two lines of code;

 

FileParameters =                  "<filename>"  & FileNamePath &"</filename>"

FileParameters = FileParameters & "<delimiter>" & Delimiter    &"</delimiter>"

 

If I do not include these lines and just let the program use DATAFILESAVESEL with the filename and filepath, then the file generated is not a tab deliminated file. Excel open it with question marks in the gaps.

 

I am looking for a tab deliminated file.

 

Thanks

 

Stagsden

0 Kudos
Message 3 of 7
(4,458 Views)

Hello Ashish,

 

Yes I am logged on as administrator and I am trying to write the files to the hard drive and a memory stick in a USB port. I have tried removing the USB and/or hard drive, but nothing different happens.

 

Stagsden

0 Kudos
Message 4 of 7
(4,457 Views)

Hi there,

 

Hmm this seems like an odd one! Have you tried just writing to the local drive rather than an external HDD or USB? Also when specifying the FileParameters are you specifying the Delimiter = ","? This is described further here

 

Ash 

Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 5 of 7
(4,410 Views)

The problem has been solved by using the SP1 version of Diadem 2010.

 

Thanks

 

Stagsden

0 Kudos
Message 6 of 7
(4,407 Views)

Thanks for the reply Stagsden!

 

Ash

Ashish Naik
Automotive Business Development Manager
National Instruments UK
0 Kudos
Message 7 of 7
(4,405 Views)