Forums › SA Series Discussions › SA_TG_SWEEP Flag
- This topic has 1 reply, 2 voices, and was last updated 11 months ago by
Roger.
- AuthorPosts
ANguyenParticipantHello 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.
RogerModeratorHi 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
- AuthorPosts
You must be logged in to reply to this topic.