The brand-new PN400 Phase Noise Test System is available for purchase! →

API for standalone TG44?

Forums › TG Series Discussions › API for standalone TG44?

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #55884
    Ivan Ionov
    Participant

    Hi,
    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.

    #55941
    Justin CrooksJustin Crooks
    Moderator

    Yes, there is. It is aptly named the TG standalone API. Email support at signalhound dot com for a copy of this.

    #57092
    Ivan Ionov
    Participant

    Thank 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.
    #58508
    Yopie D
    Participant

    Hi,
    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

    #58799
    Ivan Ionov
    Participant

    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.

    • This reply was modified 11 years ago by Ivan Ionov.
    Attachments:
    You must be logged in to view attached files.
    #59222
    Yopie D
    Participant

    Hi Ivan,

    tg_app.zip already downladed and unziped succesfully, i will try to used it soon.

    thanks and have a nice day.

    #80865
    jams90
    Participant

    Hi, 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?

    #81271
    AndrewAndrew
    Moderator

    Hi 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.

    #81445
    jams90
    Participant

    I get my TG44A to work on C# with the TG_API.dll

    thanks!

    #156242
    Danny
    Participant

    Dear 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.

    #156243
    AndrewAndrew
    Moderator

    Hi 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

    #156252
    Justin CrooksJustin Crooks
    Moderator

    The best way to mute the output is to set the frequency to 0 Hz, amplitude to -30 dBm.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.