You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-13
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Linux GPIB
2
2
3
-
The brand new General Purpose Interface Bus (GPIB, IEC-625-Bus), introduced by Hewlet-Packard in the late 1960s, can be accessed via [linux-gpib](http://linux-gpib.sourceforge.net/). This module offers native bindings to the very fundamental read and write methods (```ibrd()``` and ```ibwrt()```). So if you want to access your lab bench devices using JavaScript, this module will be your solution.
3
+
The brand new General Purpose Interface Bus (GPIB, IEC-625-Bus), introduced by Hewlet-Packard in the late 1960s, can be accessed via [linux-gpib](http://linux-gpib.sourceforge.net/). This module offers native bindings to the very fundamental read and write methods (`ibrd()` and `ibwrt()`). So if you want to access your lab bench devices using JavaScript, this module will be your solution.
@@ -88,35 +88,42 @@ Disconnects from all connected devices. Returns a promise.
88
88
dev.write( data ).then( ... );
89
89
```
90
90
91
-
Sends data to the connected device. Returns a promise. If ```data``` is a string, it is just transmitted. If ```data``` is an array, each item is successively transmitted, starting with the first item.
91
+
Sends data to the connected device. Returns a promise. If `data` is a string, it is just transmitted. If `data` is an array, each item is transmitted successively, starting with the first item.
92
92
93
93
#### Method: read
94
94
95
95
```javascript
96
96
dev.read().then( ... );
97
97
```
98
98
99
-
Reads data from the connected device. Returns a promise that will be resolved with the recieved data.
99
+
Reads data from the connected device. Returns a promise that will be resolved with the received data.
100
100
101
101
#### Method: query
102
102
103
103
```javascript
104
104
dev.query( data ).then( ... );
105
105
```
106
106
107
-
Fristly writes data to and then reads data from the connected device. Returns a promise that will be resolved with the recieved data.
107
+
Fristly writes data to and then reads data from the connected device. Returns a promise that will be resolved with the received data.
108
108
109
109
#### Method: disconnect
110
110
111
111
```javascript
112
112
dev.disconnect( goToLocalMode ).then( ... );
113
113
```
114
114
115
-
Disconencts from device. Returns a promise. If ```goToLocalMode``` is true (default), it will bring the device back to local mode before disconnecting.
115
+
Disconencts from device. Returns a promise. If `goToLocalMode` is true (default), it will bring the device back to local mode before disconnecting.
116
116
117
117
118
118
## Requirements
119
119
120
120
Beside a GPIB-capbale measurement instrument you need a GPIB interface that is compatibile with linux-gpib. Furthermore linux-gpib must be installed and the GPIB-device must be fully configured. (Some of them need a firmware downloaded onto the device before beeing used. Google is your friend!)
121
121
122
122
Node.js must be available in version 4 or later.
123
+
124
+
## Acknowledgement
125
+
126
+
Special thanks to:
127
+
128
+
*[68ec020](https://github.com/68ec020) for establishing Node.js 12 compatibility.
0 commit comments