Forums › TG Series Discussions › API for standalone TG44?
- This topic has 11 replies, 6 voices, and was last updated 7 years, 9 months ago by
Justin Crooks.
- AuthorPosts
Ivan IonovParticipantHi,
Is there any API for standalone TG44\124?
I’ve looked at API in Spike folder and haven’t found any ability to connect and control TG44 without SA44.I want to write a simple windows application for this device, to make a frequency sweep (both linear and logarithmic) with specified number of points and output power, and ideally to raise sync out to high at sweep begin, and reset sync to low at sweep end. So I can synchronize power meter output with the sweep.
Justin CrooksModeratorYes, there is. It is aptly named the TG standalone API. Email support at signalhound dot com for a copy of this.
Ivan IonovParticipantThank you for API!
A small app is written, sweep function is working now. If you want, I can send you source files so you can put it on your site for somebody else. Or if you don’t mind, I can attach here a compiled exe.
Attachments:
You must be logged in to view attached files.
Yopie DParticipantHi,
I interrested to app written by Ivan Ionov, it seems like matched with my purpose.
i need this copy of app. Can i get this from your site or directly from Ivan.Thanks
Ivan IonovParticipant- This reply was modified 9 years, 5 months ago by
Ivan Ionov.
Hi,
I’ve attached my application with source code (written with MS Studio 2010). Feel free to use it as you need.Button Sweep starts the sweep from start to end frequency.
Button “Set” sets fixed frequency and power.Frequency boxes recognize mnemonics like “4g4”, “100m1” or “10k” mnemonics to set frequency in GHz, Mhz or KHz.
Attachments:
You must be logged in to view attached files.
Yopie DParticipantHi Ivan,
tg_app.zip already downladed and unziped succesfully, i will try to used it soon.
thanks and have a nice day.
jams90ParticipantHi, i’ve read about the StandAlone API and downloaded it with the PDF file wich explains the functions but i can’t get the API to work on C#.
is it posible to use it on a C# forms project?
AndrewModeratorHi jams90,
Calling C DLLs through the PInvoke mechanism should work for any C functions. I see the extern “C” declaration was used on the functions so it should play nice with C#. Unfortunately we don’t develop here in C# so we can’t be of much assistance. Last time I needed to call a C DLL from C# though, I found a lot of information online about doing so with many examples.
Regards,
A.J.
jams90ParticipantI get my TG44A to work on C# with the TG_API.dll
thanks!
DannyParticipantDear All,
Is there a function call to mute the output of the TG? I am attempting to perform some OOSK Pulse modulated tests. The fastest I can accomplish this at present is by calling:-
tgSetFreqAmp(device, 1000000.0, -10.0) tgSetFreqAmp(device, 1000000.0, -100.0)
Which changes the output amplitude but will only yield a 10 millisecond toggle rate when viewed on an oscilloscope. Any suggestions would be gratefully appreciated.
AndrewModeratorHi Danny,
There is not a direct method to mute the output. We usually suggest changing the frequency outside your range of interest.
There is no method that I would think would be adequate or repeatable enough for OOSK.
We do sell a VSG that would be capable of OOSK, but the pattern memory is limited (2048 IQ samples) as well as the available samples rates. If you think you would be interested in this, we can talk about your requirements and ensure it would fit them.
Let me know if you have further questions.
Regards,
Andrew
Justin CrooksModeratorThe best way to mute the output is to set the frequency to 0 Hz, amplitude to -30 dBm.
- This reply was modified 9 years, 5 months ago by
- AuthorPosts
You must be logged in to reply to this topic.