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

SA_TG_SWEEP Flag

Forums › SA Series Discussions › SA_TG_SWEEP Flag

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #245387
    ANguyen
    Participant

    Hello there!

    I am attempting to control the SA124B and perform a scalar network analysis via LabVIEW. Whenever I run the program, a -4 error always occurs at the saInitiate module, indicating an invalid parameter error.

    According to the API reference, I am supposed to pass the SA_TG_SWEEP flag as the mode as well as set the flag to 0. I have tried passing int 5 and int 6 as the SA_TG_SWEEP flag, but the error continues to persist. What is the integer value of the flag, and where can the int values for other flags for future reference? Thank you!

    Attachments:
    You must be logged in to view attached files.
    #245389
    RogerRoger
    Moderator

    Hi ANguyen,

    The value of SA_TG_SWEEP is 4 (source: API docs). Any value above that will trigger the invalid param error.

    Definitions can be found in the API docs at the link above and/or in the source code.

    – Roger

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