Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
Mike DParticipantHello 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.- AuthorPosts
Viewing 1 post (of 1 total)