Reply To: VSG60A Windows C API

Forums VSG Series Discussions VSG60A Windows C API Reply To: VSG60A Windows C API

#236269
Mike D
Participant

Hello Andrew,

Thank you for your quick reply. I can confirm that your sample code is running just fine, thank you. I modified your sample code to do what I was trying to do. In the code below, I see the output for a second and then never again.

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);

    vsgSetRFOutputState(handle, vsgTrue);
    vsgOutputCW(handle);

    while(true) {
        Sleep(1000);
        vsgSetRFOutputState(handle, vsgFalse);
        Sleep(1000);
        vsgSetRFOutputState(handle, vsgTrue);
    }
}

I thought that the vsgSetRFOutputState was a function I could use to quickly gate the output without having to generate a new waveform, which could potentially be an expensive operation. At any rate, I think I have everything I need so thank you for the help!

Regards,
Mike.