03-01-2012 03:05 PM
One question that has come up with respect to the RF Multi-Channel software has to do with the binary data saved as part of a Record process.
The binary data that is saved when recording with the RF analyzers uses the following format:
In order to convert the binary samples from the data file back to scaled voltage values, we must know the analyzer gain value. In normal analyzer operation, the binary values fetched from the analyzer ADCs are converted to floating point voltage data automatically by NI-RFSA ('under the hood') using this gain value. We must perform this process manually.
The RF Multi-Channel software saves this gain value for each channel into the XML metadata file indirectly, as the RFSG Playback Level. We can use this value from the XML data file and convert it back to the analyzer gain value for offline analysis purposes with some simple math.
Atached is a simple example demonstrating how to convert binary data to floating point data using the saved XML metadata values that are saved during the Record process. In addition, this example saves the IQ data to an Excel (.xls) file.