Forums › VSG Series Discussions › VSG25A and Matlab
- This topic has 1 reply, 2 voices, and was last updated 8 years, 9 months ago by
Andrew.
- AuthorPosts
JosueParejaParticipantHello, I have a new VSG25A and I want to work it on Matlab, the problem is that I do not know how, where can I find the libraries, and how I can make it generate something in Matlab (I could not find any Matlab tutorial). Also I am using the “Shortcut to VSG25”, I want to use a .csv file that I generate in Matlab (it is sine wave with 1000 Hz of frecuency) but every time I generate it the program stops working.
AndrewModeratorHello JosuePareja,
The VSG is not directly able to be controlled in Matlab. You will need to write a small interface between Matlab and our C interface to the VSG to get this to work. The API files are located in the installation directory on your PC, which is probably in the folder C:\ProgramFiles(x86)\SignalHound\VSG25\api. Take a look at the loadlibrary and calllib functions in Matlab for calling into a C DLL on Windows.
If you wish to use Matlab to generate IQ data that you can then load via ARB CSV files, you can do this also. You will need to generate the IQ data in Matlab and then create a compatible CSV file that can be read into our software. You can find several examples of CSV files in the installation directory as well, in the arb_examples folder. Take a look at the “BPSKUnfiltered” or “Chirp” examples for basic examples with text explanations. You will need to adhere to the format exactly otherwise the software will be unable to read the file.
Let us know if you have further questions.
Regards,
A.J.- AuthorPosts
You must be logged in to reply to this topic.