Forums › TG Series Discussions › API for standalone TG44?
- This topic has 11 replies, 6 voices, and was last updated 9 years, 5 months ago by
Justin Crooks.
- AuthorPosts
- August 28, 2015 at 4:03 am #55884
Ivan Ionov
ParticipantHi,
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.
August 28, 2015 at 11:59 am #55941
Justin CrooksModeratorYes, there is. It is aptly named the TG standalone API. Email support at signalhound dot com for a copy of this.
September 4, 2015 at 1:14 am #57092Ivan Ionov
ParticipantThank 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.September 12, 2015 at 5:41 pm #58508Yopie D
ParticipantHi,
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
September 14, 2015 at 3:36 pm #58799Ivan Ionov
ParticipantHi,
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.
- This reply was modified 11 years ago by
Ivan Ionov.
Attachments:
You must be logged in to view attached files.September 17, 2015 at 7:01 am #59222Yopie D
ParticipantHi Ivan,
tg_app.zip already downladed and unziped succesfully, i will try to used it soon.
thanks and have a nice day.
February 5, 2016 at 3:24 pm #80865jams90
ParticipantHi, 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?
February 8, 2016 at 11:08 am #81271
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.February 9, 2016 at 2:31 pm #81445jams90
ParticipantI get my TG44A to work on C# with the TG_API.dll
thanks!
April 24, 2017 at 6:56 am #156242Danny
ParticipantDear 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.
April 24, 2017 at 9:04 am #156243
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,
AndrewApril 26, 2017 at 9:48 am #156252
Justin CrooksModeratorThe best way to mute the output is to set the frequency to 0 Hz, amplitude to -30 dBm.
- This reply was modified 11 years ago by
- AuthorPosts
- You must be logged in to reply to this topic.
