03-30-2020 09:18 AM
I'm working with inherited code that calls in configuration data from a .sav file. I now need to open and edit the file to adjust the configuration to accommodate new hardware, but so far I've been unsuccessful in opening the file in a readable format. I've downloaded various 'SPSS' editors, but it appears the file may include some form of encryption.
If anyone has any experience with these types of files, any help would be greatly appreciated. I'm unable to upload the file here, but I'd be happy to email it to you if you think you can open it.
Thanks!
Solved! Go to Solution.
03-30-2020 09:34 AM
.sav is not a specific format. Just look at a bunch of video games (at least old computer games) and they all use a .sav file, each having their own format. So you need to know the format of the file in order to do something with it. Where did the sav file come from? You might want to consider changing to an ini, xml, or json format instead for you configurations.
03-30-2020 09:46 AM - edited 03-30-2020 09:51 AM
Unfortunately the guy who created it no longer works here, so I'm stuck trying to reverse engineer this.
Any ideas on how Labview would interpret a .sav file? If Labview can read it, there must be some way I can too (through Labview?).
03-30-2020 09:57 AM
This file could have any type of data in it. My first question would be if you open it in notepad can you read the file? If so then you might get lucky. If not all bets are off. There would really not be any way to know unless you have the code that it was written with.
I would suggest that you try to figure out what kinds of data this file contains. If you can figure that out you might be able to start getting the data format. Without knowing the structure you are going to have a real up hill battle to figure this out. Do you have the code that the code was developed from?
03-30-2020 09:57 AM
@JayWW wrote:Any ideas on how Labview would interpret a .sav file? If Labview can read it, there must be some way I can too (through Labview?).
We would have to see the code that reads the file.
03-30-2020 09:58 AM
If you post the file you might get one of these kind people that like a challenge to help you figure this out. It is a real long shot though.
03-30-2020 10:13 AM
Here's the .sav file. I had to Zip the file in order for it to be successfully uploaded.
Here's a section of the code that pulls data from that file.
03-30-2020 10:17 AM - edited 03-30-2020 10:18 AM
Ok it looks like you have everything you need to decode this file. I am not sure I understand what your problem is? What is your question?
If you look at the picture that you attached. In the binary file open you have a cluster attached tot he format at the top of the vi. This tells LabVIEW how to read this file. That is all you need to decode this file.
Right in the section that you circled in red.
03-30-2020 10:25 AM
I need to edit the file with new configuration data to accommodate for new hardware in the test station.
03-30-2020 10:29 AM
Read the file in. Change the format and save it to the new format. Then when you open the file moving forward all you have to do is replace the binary format cluster. It is that easy.