JAVA GPIB 简单操作

zfh1005 10年前

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Gpib;

import com.sun.jna.Library;
import com.sun.jna.Native;

public class GpibOper {
   
    public interface GpibLibrary extends Library{
       
        GpibLibrary INSTANCE =(GpibLibrary)Native.loadLibrary("gpib-32", GpibLibrary.class);
       
        int ibdev(int boardID, int pad, int sad, int tmo, int eot, int eos);
        int ibwrt(int ud, char[] buf, long cnt);
        int ibwrt(int ud, String buf, long cnt);
        int ibrd(int ud, char[] buf, long cnt);
    }
}