LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.mat file to .wfm file?

Hello all,

 

I have a .mat file (attached) with a BLE waveform which I would like to transform into a .wfm file so that I can download it to my Keysight E8663D PSG.

From reading online, I have installed the native MATLAB IO data plugin and managed to open the contents of the .mat file 

Airman_0-1737370118223.png

 

but I am not sure how I could transform it to a .wfm. This is something that the MATLAB IDE can do for you but I was wondering if LabVIEW has any kind of automation for that.
Has anyone encountered a similar task before?

 

Thank you,

Alex

 

0 Kudos
Message 1 of 2
(187 Views)

Hello Alex,

 

I cannot read your .mat file so cannot verify the following solution. However, have a look at using the 'build waveform' function block and then feeding the output into the MATLAB DataPlugin functions using the steps below:

 

  1. Open and Write Data Storage:

    • Use the data plugin’s Open Data Storage function to create or open a file where your waveform data will be stored.
    • With the data storage reference, you can use appropriate write functions to store the waveform data.
  2. Close Data Storage:

    • Remember to close the data storage reference once you’re done writing to ensure that all data is properly saved and to free up resources.

This link on creating/modifying .mat files may help: https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000001DmPyCAK&l=en-GB

 

0 Kudos
Message 2 of 2
(33 Views)