EasyManuals Logo

Pendulum CNT-90 Series Programmer's Handbook

Pendulum CNT-90 Series
264 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #55 background imageLoading...
Page #55 background image
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-90 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Pendulum CNT-90 Series and is the answer not in the manual?

Pendulum CNT-90 Series Specifications

General IconGeneral
BrandPendulum
ModelCNT-90 Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals