Fluke Norma 4000 User Manual page 178

Guide for remote control for power analyzer
Hide thumbs Also See for Norma 4000:
Table of Contents

Advertisement

Remote Control
Users Guide
6-20
#endif
/* !_MFC_VER */
#endif
#include <stdio.h>
/*
* "\\.\com<num>" in order to support "COM10" and above.
*
* More info: MSKB article Q115831:
*
*
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q115831
*/
#define SIO_PORT
#define SIO_BAUDRATE
#define SIO_INPUT_BUFSIZE
#define SIO_OUTPUT_BUFSIZE
#define MAX(a,b)
( (a) > (b) ? (a) : (b) )
#if WIN
/* serial port handle ('CreateFile("COMx:",...)'): */
typedef HANDLE
#endif
typedef unsigned char byte;
typedef struct {
sio_handle_t handle;
/*
* I/O buffer (similar to 'FILE'):
*/
struct {
byte *base; /* address of allocated buffer */
byte *ptr;
/* pointer to first available byte in buffer 'base' */
int size;
/* size in bytes of allocated buffer 'base' */
int cnt;
/* current number of bytes available in buffer at 'ptr'
*/
} buf;
} sio_t;
/****************************************************************************
**/
static void Delay(double seconds)
{
Sleep((DWORD)(seconds * 1000));
}
/****************************************************************************
**/
static void sio_error(char *func)
{
fprintf(stderr,"%s() failed, error %ld\n",func,GetLastError());
}
"\\\\.\\com1"
115200
4096
4096
sio_handle_t;

Advertisement

Table of Contents
loading

This manual is also suitable for:

Norma 5000

Table of Contents