Forums › VSG Series Discussions › VSG60A Windows C API › Reply To: VSG60A Windows C API
February 12, 2020 at 2:55 pm #236260
Moderator
Hi Mike,
You are correct about the float* parameter. It should be const, and the data is not modified by the API. I will see about getting this in a future update. Yes, you are safe to cast.
I can’t reproduce the issue you are seeing regarding RF output on/off. I wrote a short script to attempt to reproduce. Maybe you could try to run this? If all else fails, maybe you could whip up a simple script I could try to run and reproduce? See code below.
This function simply turns on and off the RF output in 1 second intervals. I observed the power going on and off at these intervals.
void testRFOutput()
{
int handle = -1;
VsgStatus vsgSts = vsgOpenDevice(&handle);
if(vsgSts != vsgNoError) {
printf("Unable to open VSG\n");
return;
}
vsgSetFrequency(handle, 1.0e9);
vsgSetLevel(handle, -40.0);
while(true) {
vsgSetRFOutputState(handle, vsgTrue);
vsgOutputCW(handle);
Sleep(1000);
vsgSetRFOutputState(handle, vsgFalse);
Sleep(1000);
}
}
Look forward to your response.
Regards,
Andrew
- This reply was modified 6 years, 7 months ago by
Andrew.