From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-18-2006 11:18 AM
07-19-2006 02:41 AM
07-19-2006 06:39 AM
Gerd,
I appreciate your help in this matter. After a phone converstation with the support at SRS, it is clear to me that either 1) they don't want me to know what the number system is or 2) they simply don't know what it is. Several times during my converstation the various support personnel used terms like "well I think they did this".. so maybe the people who wrote the original firmware are gone, or maybe they just don't want that information out.
They did stress the fact that they have their own software that works just fine, so I guess they just want me to use that rather than Labview :).
I am now at the point where I will use Labview to call their program to convert the data, then bring it back in to Labview and go from there. This should be fairly easy as they offer command lines to do this.
Thanks VERY much for taking the time to look at this.
Regards.
Jeff
07-19-2006 06:51 AM
07-22-2006 04:47 AM
Hi Jeff,
This vi seems to convert your data - which appears to be stored as a signed 32-bit integer. To convert the int to a float, a constant scaling-factor is applied.
The scaling factor is 1 / 10814087050, or 2.517850848 / 2**32 ???
Unless you recognize the scaling factor, I wouldn't trust this conversion since a unique scaling-factor may be stored in the file-header, .
It seems silly that SRS didn't/wouldn't allow you to obtain the binary-data simply!
Cheers
07-24-2006 07:06 AM
Thanks tbd!
Hmm now I'm more intereseted again. So what you're saying is maybe they put some scaling factor on the number BEFORE it's stored inside the instrument? So then when you retreive the numbers from the file, you have to know that scaling factor?
Thanks again for continuing with this. I had stopped working on this last week to pursue some other things but I will try this once again..
Maybe in the header somewhere is the scaling factor..
It's like the "Enigma" code in world war 2 lol...
Jeff
07-24-2006 07:15 AM
07-24-2006 02:00 PM
07-24-2006 02:16 PM
07-25-2006 03:15 AM
Hi Lynn, Jeff
I was curious to look at your decoder, Lynn, but can't open it (LV7.1 here). In the .dat that Jeff posted, it appears that data starts with byte #76 leaving a byte (EOF / 0x0A) at the end of the file. The bytes are stored "Little endian" so need to be swapped if casting to a LabVIEW I32. It's probably faster to index the individual bytes and assemble the I32s using "Join Numbers", but SR785Convert shows a casting method just for fun.
Yeah Jeff, without more information, or a lot more testing, I'd be worried that the scaling-factor might change from .dat to .dat. - maybe with some seldom used instrument setting that you'll change right before demo-ing the "data play-back" feature of your software.
If we could figure-out what the scaling-factor means - like is it related to displayed scales? a logrithim? It's probably very simple - once you know the answer.
Cheers.