Forums › VSG Series Discussions › VSG60A External Trigger in MATLAB
- This topic has 3 replies, 3 voices, and was last updated 2 weeks, 5 days ago by
Andrew.
- AuthorPosts
SaltyMonarchParticipantIs there any documentation or guides on how to modify the VSG60 class? I am trying to utilize the external trigger on a VSG60A, but I am having trouble in MATLAB as the VSG60 class doesn’t expose the trigger like the .py API does. Or are there alternatives to generate a trigger that I have simply missed?
AndrewModeratorOur MATLAB examples are convenience classes that wrap and call the functions in the DLL. You can see everywhere we call a DLL function, the “calllib” function is used. It’s all just standard MATLAB code. As to which functions to call in the DLL, you would want to reference the VSG60 API (link below). What I recommend, is looking at the C++ examples in the SDK, creating your own example, then porting that to MATLAB. Writing your initial example in C++ is even better as you can prove functionality before the port.
https://signalhound.com/sigdownloads/SDK/online_docs/vsg60_api/index.html
PKParticipantHello,
I am working with the Signal Hound VSG25A signal generator and using the VSG25 software. I would like to know if it is possible to control the device using SCPI commands directly, without going through the VSG25 software interface.
Specifically, I want to:
1) Send SCPI commands (e.g., set frequency, set power level, enable/disable output, burst mode, or frequency hopping).
2) Understand whether the VSG25A hardware has a built-in SCPI interface (USB or TCP/IP), or if control is only available through the provided API/SDK.
3) If SCPI is not supported directly, what is the recommended method for automation? (For example, should I use the API instead, or is there a way to use SCPI through the VSG25 software as a communication layer?)
Any guidance, example commands, or documentation links would be greatly appreciated.
Thank you!
AndrewModeratorPK,
The API would be the recommended way to automate with the VSG25. The VSG25 software and device does not support SCPI. SCPI automation is only supported on the VSG60 software.
The VSG25 API exposes most of the functionality of the user interface. It can be found in our SDK, linked below. See the user manual for programming examples.
https://signalhound.com/software/signal-hound-software-development-kit-sdk/
Let us know if you have follow up questions.
- AuthorPosts
You must be logged in to reply to this topic.