Esp_Open_System(Void) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_open_system Initialize PCI Communications
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_open_system(void)
None
\esp6000.dll
esp_open_system() initializes the ESP6000 PCI bus communication, but does not
invoke a board hardware reset.
ESPOK, ESPERROR
Hint:
Always evaluate returned value from esp_open_system()
# include <stdio.h>
# include <stdlib.h>
# include "esp6000.h"
void tell_error(int esp_error)
{
char buffer[MAX_ERROR_LEN];
switch (esp_error)
{
case ESP_OK: /* ESP6000 and communications OK */
default:
(%d).\n", buffer,
esp_error);
}
}
int
main()
{
int esp_error;
esp_error = esp_open_system();
ESP6000 */
tell_error(esp_error);
return (0);
}
esp_init_system()
break;
error_msg(error_code, buffer) ;
fprintf(stderr, "ERROR: %s
exit(1);
break;
/* initialize
/* report errors (if any) */
5-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents