Preparing for Using the Examples
Complete the following steps to prepare for using the 6G SubTHz Waveform Research examples.
-
Connecting the System Components
-
Installing the Software
-
Generating TDMS Waveform Files
-
Generating MATLAB MAT Waveform Files
Connecting the System Components
To use the 6G SubTHz Waveform Research examples, connect system components as the following figure shows.
Note: You must complete all connections before applying the power, and transmit the IF and LO signals to the converters only after applying the power.
Installing the Software
-
Prepare a VDI library.
1.1Download the VDI PM5 File from https://www.vadiodes.com/en/resources/downloads.
1.2 Unzip the downloaded file to a folder named CD.
1.3 Copy CD\CDM 2.04.06 WHQL Certified\amd64\ftd2xx64.dll to the following folder: C:\Program Files\National Instruments\LabVIEW 2022\resource.
1.4 Run the Check PM5B Example.vi in the following directory: C:\Program Files\National Instruments\LabVIEW 2022\user.lib\6G SubTHz\Power Meter\Test. Make sure this VI does not return any error.
-
Install required software in Software Environment Section. MATLAB or MATLAB Runtime is not mandatory for using the 6G SubTHz Waveform Research examples as only need to read or to store waveform data from or to MAT files.
-
Install the 6G SubTHz Waveform Research examples. After installation, the examples are in the following directory: C:\Program Files\National Instruments\LabVIEW 2022\examples\6G SubTHz Research.
Generating TDMS Waveform Files
Use the existing default TDMS waveform file in “C:\Program Files\National Instruments\LabVIEW 2022\user.lib\6G SubTHz\Test App\Waveforms”.
Alternatively, you can use the RFmx Waveform Creator to generate TDMS waveform files that the 6G SubTHz Waveform Research example can directly play. To learn more about the RFmx Waveform Creator, visit the following link: https://www.ni.com/docs/en-US/bundle/rfmx-waveform-creator/page/user-manual-welcome.html.
Generating MATLAB MAT Waveform Files
The 6G SubTHz Waveform Research examples can read MAT waveform files with the same name and same type variables as the following table lists.
Variable name
|
Class
|
Description
|
SampleRate
|
double
|
Sample rate of the waveform
|
txBandwidth
|
double
|
Bandwidth of the waveform
|
txWaveform
|
single (complex)
|
OFDM waveform
|
Note: The variable name is case sensitive.
The following figure shows example variables settings loaded from the expected MAT file to the online MATLAB workspace. For more information about the online MATLAB, visit the following link: https://matlab.mathworks.com.

Use the following MATLAB APPs to generate the MAT waveform file.
MATLAB APP name
|
Introduction page
|
6G Exploration Library for 5G Toolbox®
|
https://ww2.mathworks.cn/matlabcentral/fileexchange/157771-6g-exploration-library-for-5g-toolbox
|
5G Waveform Generator®
|
https://ww2.mathworks.cn/help/5g/ref/5gwaveformgenerator-app.html
|
-
If you generate a MATLAB MAT waveform file with 6G Exploration Library for 5G Toolbox, follow the instructions in Get Started with 6G Exploration Library, and then save the MAT file from the workspace.
-
If you generate a MATLAB MAT waveform file with 5G Waveform Generator, complete the following steps after file generation.
2.1 Click the “Export” button and save an IQ mat file.
2.2 Import the IQ mat file to the baseband and combine the I array and Q array into a complex double variable called “txWaveform”.
2.3 Add two variables called “txBandwidth”and "SampleRate" on the workspace, store the bandwidth and sample rate separately.
2.4 Save a mat file from the workspace.
Note: The previous instructions may vary as the MathWorks company upgrades or maintains the 6G Exploration Library for 5G Toolbox or 5G Waveform Generator.
Note: MATLAB®, 6G Exploration Library for 5G Toolbox®, and 5G Waveform Generator® are registered trademarks of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.
Using SubTHz 2GHz BW Waveform record and playback (PXIe-7903) Example
This example works only when you use the PXIe-5842 VST assembly with PN: 135077x–01L or 138862x–yL (where x is hardware revision and y is one or more digits).
You can find this example in “C:\Program Files\National Instruments\LabVIEW 2022\examples\6G SubTHz Research\ SubTHz 2GHz BW Waveform\ SubTHz 2GHz BW Waveform.lvproj”.
-
Run LabVIEW 2022 as administrator, and launch 2GHz BW Waveform record and playback (PXIe-7903).vi in SubTHz 2GHz BW Waveform.lvproj.
-
Configure parameters by following the instructions on the VI front panel. Refer to Configuration Parameter Descriptions for more information.
-
Run the VI.
-
View measurement results.
-
Click the “Record” button to save the IQ data to the location you specify or click the “Stop” button to stop this VI.
-
Run the example again with new settings.
Using SubTHz 4GHz BW Waveform record and playback (PXIe-7903) Example
This example works only when you use the PXIe-5842 VST assembly with PN: 135077x–40L (where x is hardware revision B or later).
You can find this example in “C:\Program Files\National Instruments\LabVIEW 2022\examples\6G SubTHz Research\SubTHz 4GHz BW Waveform (PXIe-7903)\Host\SubTHz 4GHz BW Waveform (PXIe-7903) Host.lvproj”.
-
Run LabVIEW 2022 as administrator, and launch SubTHz 4GHz BW Waveform record and playback (PXIe-7903).vi in SubTHz 4GHz BW Waveform (PXIe-7903) Host.lvproj.
-
Configure parameters by following the instructions on the VI front panel. Refer to Configuration Parameter Descriptions for more information.
-
Run the VI.
-
View measurement results.
-
Click the “Record” button to save the IQ data to the location you specify or click the “Stop” button to stop this VI.
-
Run the example again with new settings.