Rigol DS2000 Series Dokumentacja Strona 574

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 616
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 573
RIGOL 2 Command System
2-556 DS2000 Programming Guide
2-556
}
stpWatch.Start();
s32ReadByte = TestReadWfm(viSession, args[0], args[1] );
stpWatch.Stop();
Console.WriteLine( "Speed is {0} KB/s",
s32ReadByte/stpWatch.ElapsedMilliseconds );
DeInitVisa(viDef, viSession);
Console.WriteLine( "Press any key to continue.");
Console.ReadKey();
}
static Int32 TestReadWfm(Int32 viSession, string strChan, string strFile )
{
byte []wfmBuf;
Int32 readCnt = 0;
Int32 readSum = 0;
Int32 readTim = 0;
Int32 maxPacket=0;
StringBuilder strBuild;
Stream streamOut;
BinaryWriter wfmStream;
wfmBuf = new byte[1024*1024*10];
strBuild = new StringBuilder(256);
visa32.viPrintf(viSession, ":STOP\n");
visa32.viPrintf(viSession, ":WAV:MODE RAW\n");
visa32.viPrintf(viSession, ":WAV:SOURce %s\n", strChan );
visa32.viPrintf(viSession, ":WAV:RESet\n");
visa32.viPrintf(viSession, ":WAV:BEGin\n");
//read buffer to WFM
streamOut = File.Create( strFile , 10000000);
wfmStream = new BinaryWriter(streamOut);
while (true)
{
//Thread.Sleep( 10000 );
visa32.viPrintf(viSession, ":WAV:STATus?\n");
visa32.viScanf(viSession, "%s", strBuild);
Przeglądanie stron 573
1 2 ... 569 570 571 572 573 574 575 576 577 578 579 ... 615 616

Komentarze do niniejszej Instrukcji

Brak uwag