EasyManua.ls Logo

Pendulum CNT-91 - Page 55

Default Icon
264 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
return (_isnan(Val) ||
Val < Args.RefVal - Args.Delta || Val > Args.RefVal
+ Args.Delta);
}
// check for keypress and exit if any
inline void CheckUserCancel()
{
if ( kbhit() )
{
if(0==getch() ) getch();
QuitMsg("\nCancelled by the user...\n");
}
}
// Create a buffer that should fit 10000 samples in FORMat
// PACKed.
#define BUFSIZE 170000
char Buffer[BUFSIZE];
int main(int argc, char* argv[])
{
ViStatus Status;
ViUInt32 ReadLength;
ViFindList fList;
ViChar Desc[VI_FIND_BUFLEN];
ViUInt32 numInstrs;
double Val;
bool Failed;
int Samples, Digits, i;
__int64 TSVal, PrevTSVal, Count;
char *pBuf, Command[200];
// Begin by initializing the system
Status = viOpenDefaultRM(&defaultRM);
if (Status != VI_SUCCESS)
{
fprintf(stderr, "Initialization failed\n");
return -1;
}
// Parse cmdline
CmdArgs Args;
if ( ! ParseCmdArgs(&Args, argc, argv) )
{
viClose(defaultRM);
return -1;
}
Programming Examples
Error Code 4-19

Table of Contents

Other manuals for Pendulum CNT-91

Related product manuals