MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatic save in ascii format

Is there a way to set MATRIXx to save data in ascii format as default instead of binary (using command 'save')?
0 Kudos
Message 1 of 6
(8,305 Views)
Isn't there a Keyword {ascii}?
So I think the save would look something like:

save "mysbd.sbd" {ascii}

or something close. Should be in the online help.

Does this answer the Question?
Garrett Thurston
gthurston@foliage.com
Phone: 781.993.5540
0 Kudos
Message 2 of 6
(8,305 Views)
Ok! I have to refine my question.
I mean 'set MATRIXx to save in ascii without having to specify the keyword {ascii}'. So that the default is to save as ascii and if I want to save in binary i will specify {!ascii}.

PC
0 Kudos
Message 3 of 6
(8,305 Views)
Is there something in sbdefaults?

That is try showsbdefaults and see if there is something in there that would allow you to change this.

I have to appologise. I have no copy of Mx so it is a bit from memory.

if it is in there they you setsbdefaults and make the change. Not certain about the syntax there but should be in online help.
Garrett Thurston
gthurston@foliage.com
Phone: 781.993.5540
0 Kudos
Message 4 of 6
(8,305 Views)
Garret,

Thanks for your reply. It looks like setsbdefault cannot force the defaults of the 'save' command.

However, is interesting that the 'save' command help says:

"Binary files are smaller, but they are platform dependent and are not necessarily portable across platforms. Specify ASCII format if portability across platforms is desired."

I guess maybe somewhere there is a way of forcing 'save' to save in ascii.

PC
0 Kudos
Message 5 of 6
(8,305 Views)
PC123,
You could create an alias. For example replace save {ascii} with a new name, say savea.

alias savea save {ascii}

Then to save the variable x to the file "save.xmd" you would use:
savea x "save.xmd"

Carl L
National Instruments
0 Kudos
Message 6 of 6
(8,305 Views)