GPIB_USB_HS_Interface.hh

00001 
00008 #ifndef _GPIB_USB_HS_INTERFACE_
00009 #define _GPIB_USB_HS_INTERFACE_
00010 
00011 
00012 #include <string>
00013 
00014 // National Instruments GPIB-USB-HS Header
00015 #ifdef __NI_GPIB_DRV__
00016 #include "ni488.h"
00017 #endif
00018 
00019 namespace GPIB_USB_HS {
00020 
00021       
00030    int OpenDevice(int board_idx, int primary_add, int secondary_add);
00031 
00038    int ClearDevice(int ud);
00039 
00040 
00048    bool CheckDevice(int ud, int primary_add, int secondary_add);
00049 
00057    int WriteData(int ud, const std::string cmq);
00058    
00066    int ReadData(int ud, std::string& answer);
00067 
00075    int CloseDevice(int ud);
00076 
00081    std::string DecodeStatus();
00082    
00087    std::string DecodeError();
00088    
00092    int GetStatusCode();
00093 
00097    int GetErrorCode();
00098 
00102    bool IsError();
00103 
00104 
00108    int LocalMode(int ud);
00109    
00110    
00111 }; // end of the namespace GPIB_USB_HS
00112 
00113 
00114 
00115 #endif // _GPIB_USB_HS_INTERFACE_
00116 //if an error occurred a message with the description is returned  

Generated on Tue Nov 16 10:49:54 2010 for CUORE Software by  doxygen 1.5.6