THM1176InstrumentManager  1.0
Qt Object abstraction for Metrolab THM1176
visa.h
Go to the documentation of this file.
1 // Copyright (c) 2020 Metrolab Technology S.A., Geneva, Switzerland (www.metrolab.com)
2 // See the included file LICENSE.txt for the licensing conditions.
3 
4 /*---------------------------------------------------------------------------*/
5 /* Distributed by IVI Foundation Inc. */
6 /* Contains National Instruments extensions. */
7 /* Do not modify the contents of this file. */
8 /*---------------------------------------------------------------------------*/
9 /* */
10 /* Title : VISA.H */
11 /* Date : 04-21-2014 */
12 /* Purpose : Include file for the VISA Library 5.4 specification */
13 /* */
14 /*---------------------------------------------------------------------------*/
15 /* When using NI-VISA extensions, you must link with the VISA library that */
16 /* comes with NI-VISA. Currently, the extensions provided by NI-VISA are: */
17 /* */
18 /* PXI (Compact PCI eXtensions for Instrumentation) and PCI support. To use */
19 /* this, you must define the macro NIVISA_PXI before including this header. */
20 /* You must also create an INF file with the VISA Driver Development Wizard. */
21 /* */
22 /* A fast set of macros for viPeekXX/viPokeXX that guarantees binary */
23 /* compatibility with other implementations of VISA. To use this, you must */
24 /* define the macro NIVISA_PEEKPOKE before including this header. */
25 /* */
26 /* Support for USB devices that do not conform to a specific class. To use */
27 /* this, you must define the macro NIVISA_USB before including this header. */
28 /* You must also create an INF file with the VISA Driver Development Wizard. */
29 /*---------------------------------------------------------------------------*/
30 
31 #ifndef __VISA_HEADER__
32 #define __VISA_HEADER__
33 
34 #include <stdarg.h>
35 
36 #if !defined(__VISATYPE_HEADER__)
37 #include "visatype.h"
38 #endif
39 
40 #define VI_SPEC_VERSION (0x00500400UL)
41 
42 #if defined(__cplusplus) || defined(__cplusplus__)
43  extern "C" {
44 #endif
45 
46 #if defined(_CVI_)
47 #pragma EnableLibraryRuntimeChecking
48 #endif
49 
50 /*- VISA Types --------------------------------------------------------------*/
51 
52 typedef ViObject ViEvent;
56 
57 #if defined(_VI_INT64_UINT64_DEFINED) && defined(_VISA_ENV_IS_64_BIT)
58 typedef ViUInt64 ViBusAddress;
59 typedef ViUInt64 ViBusSize;
60 typedef ViUInt64 ViAttrState;
61 #else
65 #endif
66 
67 #if defined(_VI_INT64_UINT64_DEFINED)
68 typedef ViUInt64 ViBusAddress64;
69 typedef ViBusAddress64 _VI_PTR ViPBusAddress64;
70 #endif
71 
75 typedef void _VI_PTR ViPAttrState;
78 
79 typedef ViString ViKeyId;
81 typedef ViUInt32 ViJobId;
87 
88 typedef va_list ViVAList;
89 
90 typedef ViStatus (_VI_FUNCH _VI_PTR ViHndlr)
92 
93 /*- Resource Manager Functions and Operations -------------------------------*/
94 
97  ViPUInt32 retCnt, ViChar _VI_FAR desc[]);
100  ViPUInt16 intfType, ViPUInt16 intfNum);
102  ViPUInt16 intfNum, ViChar _VI_FAR rsrcClass[],
103  ViChar _VI_FAR expandedUnaliasedName[],
104  ViChar _VI_FAR aliasIfExists[]);
106  ViUInt32 timeout, ViPSession vi);
107 
108 /*- Resource Template Operations --------------------------------------------*/
109 
112 ViStatus _VI_FUNC viGetAttribute (ViObject vi, ViAttr attrName, void _VI_PTR attrValue);
115 
117  ViKeyId requestedKey, ViChar _VI_FAR accessKey[]);
120  ViEventFilter context);
124  ViPEventType outEventType, ViPEvent outContext);
129 
130 /*- Basic I/O Operations ----------------------------------------------------*/
131 
135  ViPUInt32 retCnt);
139  ViPUInt32 retCnt);
143 
144 /*- Formatted and Buffered I/O Operations -----------------------------------*/
145 
148 
151 
156  ViVAList parms);
157 
162  ViVAList parms);
163 
164 ViStatus _VI_FUNCC viQueryf (ViSession vi, ViString writeFmt, ViString readFmt, ...);
166  ViVAList params);
167 
168 /*- Memory I/O Operations ---------------------------------------------------*/
169 
171  ViBusAddress offset, ViPUInt8 val8);
173  ViBusAddress offset, ViUInt8 val8);
175  ViBusAddress offset, ViPUInt16 val16);
177  ViBusAddress offset, ViUInt16 val16);
179  ViBusAddress offset, ViPUInt32 val32);
181  ViBusAddress offset, ViUInt32 val32);
182 
183 #if defined(_VI_INT64_UINT64_DEFINED)
184 ViStatus _VI_FUNC viIn64 (ViSession vi, ViUInt16 space,
185  ViBusAddress offset, ViPUInt64 val64);
186 ViStatus _VI_FUNC viOut64 (ViSession vi, ViUInt16 space,
187  ViBusAddress offset, ViUInt64 val64);
188 
189 ViStatus _VI_FUNC viIn8Ex (ViSession vi, ViUInt16 space,
190  ViBusAddress64 offset, ViPUInt8 val8);
191 ViStatus _VI_FUNC viOut8Ex (ViSession vi, ViUInt16 space,
192  ViBusAddress64 offset, ViUInt8 val8);
193 ViStatus _VI_FUNC viIn16Ex (ViSession vi, ViUInt16 space,
194  ViBusAddress64 offset, ViPUInt16 val16);
195 ViStatus _VI_FUNC viOut16Ex (ViSession vi, ViUInt16 space,
196  ViBusAddress64 offset, ViUInt16 val16);
197 ViStatus _VI_FUNC viIn32Ex (ViSession vi, ViUInt16 space,
198  ViBusAddress64 offset, ViPUInt32 val32);
199 ViStatus _VI_FUNC viOut32Ex (ViSession vi, ViUInt16 space,
200  ViBusAddress64 offset, ViUInt32 val32);
201 ViStatus _VI_FUNC viIn64Ex (ViSession vi, ViUInt16 space,
202  ViBusAddress64 offset, ViPUInt64 val64);
203 ViStatus _VI_FUNC viOut64Ex (ViSession vi, ViUInt16 space,
204  ViBusAddress64 offset, ViUInt64 val64);
205 #endif
206 
208  ViBusSize length, ViAUInt8 buf8);
210  ViBusSize length, ViAUInt8 buf8);
212  ViBusSize length, ViAUInt16 buf16);
214  ViBusSize length, ViAUInt16 buf16);
216  ViBusSize length, ViAUInt32 buf32);
218  ViBusSize length, ViAUInt32 buf32);
219 
220 #if defined(_VI_INT64_UINT64_DEFINED)
221 ViStatus _VI_FUNC viMoveIn64 (ViSession vi, ViUInt16 space, ViBusAddress offset,
222  ViBusSize length, ViAUInt64 buf64);
223 ViStatus _VI_FUNC viMoveOut64 (ViSession vi, ViUInt16 space, ViBusAddress offset,
224  ViBusSize length, ViAUInt64 buf64);
225 
226 ViStatus _VI_FUNC viMoveIn8Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
227  ViBusSize length, ViAUInt8 buf8);
228 ViStatus _VI_FUNC viMoveOut8Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
229  ViBusSize length, ViAUInt8 buf8);
230 ViStatus _VI_FUNC viMoveIn16Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
231  ViBusSize length, ViAUInt16 buf16);
232 ViStatus _VI_FUNC viMoveOut16Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
233  ViBusSize length, ViAUInt16 buf16);
234 ViStatus _VI_FUNC viMoveIn32Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
235  ViBusSize length, ViAUInt32 buf32);
236 ViStatus _VI_FUNC viMoveOut32Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
237  ViBusSize length, ViAUInt32 buf32);
238 ViStatus _VI_FUNC viMoveIn64Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
239  ViBusSize length, ViAUInt64 buf64);
240 ViStatus _VI_FUNC viMoveOut64Ex (ViSession vi, ViUInt16 space, ViBusAddress64 offset,
241  ViBusSize length, ViAUInt64 buf64);
242 #endif
243 
245  ViUInt16 srcWidth, ViUInt16 destSpace,
246  ViBusAddress destOffset, ViUInt16 destWidth,
247  ViBusSize srcLength);
249  ViUInt16 srcWidth, ViUInt16 destSpace,
250  ViBusAddress destOffset, ViUInt16 destWidth,
251  ViBusSize srcLength, ViPJobId jobId);
252 
253 #if defined(_VI_INT64_UINT64_DEFINED)
254 ViStatus _VI_FUNC viMoveEx (ViSession vi, ViUInt16 srcSpace, ViBusAddress64 srcOffset,
255  ViUInt16 srcWidth, ViUInt16 destSpace,
256  ViBusAddress64 destOffset, ViUInt16 destWidth,
257  ViBusSize srcLength);
258 ViStatus _VI_FUNC viMoveAsyncEx (ViSession vi, ViUInt16 srcSpace, ViBusAddress64 srcOffset,
259  ViUInt16 srcWidth, ViUInt16 destSpace,
260  ViBusAddress64 destOffset, ViUInt16 destWidth,
261  ViBusSize srcLength, ViPJobId jobId);
262 #endif
263 
265  ViBusSize mapSize, ViBoolean access,
266  ViAddr suggested, ViPAddr address);
268 
269 #if defined(_VI_INT64_UINT64_DEFINED)
270 ViStatus _VI_FUNC viMapAddressEx (ViSession vi, ViUInt16 mapSpace, ViBusAddress64 mapOffset,
271  ViBusSize mapSize, ViBoolean access,
272  ViAddr suggested, ViPAddr address);
273 #endif
274 
275 void _VI_FUNC viPeek8 (ViSession vi, ViAddr address, ViPUInt8 val8);
276 void _VI_FUNC viPoke8 (ViSession vi, ViAddr address, ViUInt8 val8);
277 void _VI_FUNC viPeek16 (ViSession vi, ViAddr address, ViPUInt16 val16);
278 void _VI_FUNC viPoke16 (ViSession vi, ViAddr address, ViUInt16 val16);
279 void _VI_FUNC viPeek32 (ViSession vi, ViAddr address, ViPUInt32 val32);
280 void _VI_FUNC viPoke32 (ViSession vi, ViAddr address, ViUInt32 val32);
281 
282 #if defined(_VI_INT64_UINT64_DEFINED)
283 void _VI_FUNC viPeek64 (ViSession vi, ViAddr address, ViPUInt64 val64);
284 void _VI_FUNC viPoke64 (ViSession vi, ViAddr address, ViUInt64 val64);
285 #endif
286 
287 /*- Shared Memory Operations ------------------------------------------------*/
288 
291 
292 #if defined(_VI_INT64_UINT64_DEFINED)
293 ViStatus _VI_FUNC viMemAllocEx (ViSession vi, ViBusSize size, ViPBusAddress64 offset);
294 ViStatus _VI_FUNC viMemFreeEx (ViSession vi, ViBusAddress64 offset);
295 #endif
296 
297 /*- Interface Specific Operations -------------------------------------------*/
298 
304 
306  ViPUInt32 response);
310  ViUInt16 mode);
313  ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength,
314  ViBuf buf);
316  ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength,
317  ViPBuf buf, ViPUInt16 retCnt);
319  ViAInt16 trigLines, ViPInt16 failureIndex);
320 
321 /*- Attributes (platform independent size) ----------------------------------*/
322 
323 #define VI_ATTR_RSRC_CLASS (0xBFFF0001UL)
324 #define VI_ATTR_RSRC_NAME (0xBFFF0002UL)
325 #define VI_ATTR_RSRC_IMPL_VERSION (0x3FFF0003UL)
326 #define VI_ATTR_RSRC_LOCK_STATE (0x3FFF0004UL)
327 #define VI_ATTR_MAX_QUEUE_LENGTH (0x3FFF0005UL)
328 #define VI_ATTR_USER_DATA_32 (0x3FFF0007UL)
329 #define VI_ATTR_FDC_CHNL (0x3FFF000DUL)
330 #define VI_ATTR_FDC_MODE (0x3FFF000FUL)
331 #define VI_ATTR_FDC_GEN_SIGNAL_EN (0x3FFF0011UL)
332 #define VI_ATTR_FDC_USE_PAIR (0x3FFF0013UL)
333 #define VI_ATTR_SEND_END_EN (0x3FFF0016UL)
334 #define VI_ATTR_TERMCHAR (0x3FFF0018UL)
335 #define VI_ATTR_TMO_VALUE (0x3FFF001AUL)
336 #define VI_ATTR_GPIB_READDR_EN (0x3FFF001BUL)
337 #define VI_ATTR_IO_PROT (0x3FFF001CUL)
338 #define VI_ATTR_DMA_ALLOW_EN (0x3FFF001EUL)
339 #define VI_ATTR_ASRL_BAUD (0x3FFF0021UL)
340 #define VI_ATTR_ASRL_DATA_BITS (0x3FFF0022UL)
341 #define VI_ATTR_ASRL_PARITY (0x3FFF0023UL)
342 #define VI_ATTR_ASRL_STOP_BITS (0x3FFF0024UL)
343 #define VI_ATTR_ASRL_FLOW_CNTRL (0x3FFF0025UL)
344 #define VI_ATTR_RD_BUF_OPER_MODE (0x3FFF002AUL)
345 #define VI_ATTR_RD_BUF_SIZE (0x3FFF002BUL)
346 #define VI_ATTR_WR_BUF_OPER_MODE (0x3FFF002DUL)
347 #define VI_ATTR_WR_BUF_SIZE (0x3FFF002EUL)
348 #define VI_ATTR_SUPPRESS_END_EN (0x3FFF0036UL)
349 #define VI_ATTR_TERMCHAR_EN (0x3FFF0038UL)
350 #define VI_ATTR_DEST_ACCESS_PRIV (0x3FFF0039UL)
351 #define VI_ATTR_DEST_BYTE_ORDER (0x3FFF003AUL)
352 #define VI_ATTR_SRC_ACCESS_PRIV (0x3FFF003CUL)
353 #define VI_ATTR_SRC_BYTE_ORDER (0x3FFF003DUL)
354 #define VI_ATTR_SRC_INCREMENT (0x3FFF0040UL)
355 #define VI_ATTR_DEST_INCREMENT (0x3FFF0041UL)
356 #define VI_ATTR_WIN_ACCESS_PRIV (0x3FFF0045UL)
357 #define VI_ATTR_WIN_BYTE_ORDER (0x3FFF0047UL)
358 #define VI_ATTR_GPIB_ATN_STATE (0x3FFF0057UL)
359 #define VI_ATTR_GPIB_ADDR_STATE (0x3FFF005CUL)
360 #define VI_ATTR_GPIB_CIC_STATE (0x3FFF005EUL)
361 #define VI_ATTR_GPIB_NDAC_STATE (0x3FFF0062UL)
362 #define VI_ATTR_GPIB_SRQ_STATE (0x3FFF0067UL)
363 #define VI_ATTR_GPIB_SYS_CNTRL_STATE (0x3FFF0068UL)
364 #define VI_ATTR_GPIB_HS488_CBL_LEN (0x3FFF0069UL)
365 #define VI_ATTR_CMDR_LA (0x3FFF006BUL)
366 #define VI_ATTR_VXI_DEV_CLASS (0x3FFF006CUL)
367 #define VI_ATTR_MAINFRAME_LA (0x3FFF0070UL)
368 #define VI_ATTR_MANF_NAME (0xBFFF0072UL)
369 #define VI_ATTR_MODEL_NAME (0xBFFF0077UL)
370 #define VI_ATTR_VXI_VME_INTR_STATUS (0x3FFF008BUL)
371 #define VI_ATTR_VXI_TRIG_STATUS (0x3FFF008DUL)
372 #define VI_ATTR_VXI_VME_SYSFAIL_STATE (0x3FFF0094UL)
373 #define VI_ATTR_WIN_BASE_ADDR_32 (0x3FFF0098UL)
374 #define VI_ATTR_WIN_SIZE_32 (0x3FFF009AUL)
375 #define VI_ATTR_ASRL_AVAIL_NUM (0x3FFF00ACUL)
376 #define VI_ATTR_MEM_BASE_32 (0x3FFF00ADUL)
377 #define VI_ATTR_ASRL_CTS_STATE (0x3FFF00AEUL)
378 #define VI_ATTR_ASRL_DCD_STATE (0x3FFF00AFUL)
379 #define VI_ATTR_ASRL_DSR_STATE (0x3FFF00B1UL)
380 #define VI_ATTR_ASRL_DTR_STATE (0x3FFF00B2UL)
381 #define VI_ATTR_ASRL_END_IN (0x3FFF00B3UL)
382 #define VI_ATTR_ASRL_END_OUT (0x3FFF00B4UL)
383 #define VI_ATTR_ASRL_REPLACE_CHAR (0x3FFF00BEUL)
384 #define VI_ATTR_ASRL_RI_STATE (0x3FFF00BFUL)
385 #define VI_ATTR_ASRL_RTS_STATE (0x3FFF00C0UL)
386 #define VI_ATTR_ASRL_XON_CHAR (0x3FFF00C1UL)
387 #define VI_ATTR_ASRL_XOFF_CHAR (0x3FFF00C2UL)
388 #define VI_ATTR_WIN_ACCESS (0x3FFF00C3UL)
389 #define VI_ATTR_RM_SESSION (0x3FFF00C4UL)
390 #define VI_ATTR_VXI_LA (0x3FFF00D5UL)
391 #define VI_ATTR_MANF_ID (0x3FFF00D9UL)
392 #define VI_ATTR_MEM_SIZE_32 (0x3FFF00DDUL)
393 #define VI_ATTR_MEM_SPACE (0x3FFF00DEUL)
394 #define VI_ATTR_MODEL_CODE (0x3FFF00DFUL)
395 #define VI_ATTR_SLOT (0x3FFF00E8UL)
396 #define VI_ATTR_INTF_INST_NAME (0xBFFF00E9UL)
397 #define VI_ATTR_IMMEDIATE_SERV (0x3FFF0100UL)
398 #define VI_ATTR_INTF_PARENT_NUM (0x3FFF0101UL)
399 #define VI_ATTR_RSRC_SPEC_VERSION (0x3FFF0170UL)
400 #define VI_ATTR_INTF_TYPE (0x3FFF0171UL)
401 #define VI_ATTR_GPIB_PRIMARY_ADDR (0x3FFF0172UL)
402 #define VI_ATTR_GPIB_SECONDARY_ADDR (0x3FFF0173UL)
403 #define VI_ATTR_RSRC_MANF_NAME (0xBFFF0174UL)
404 #define VI_ATTR_RSRC_MANF_ID (0x3FFF0175UL)
405 #define VI_ATTR_INTF_NUM (0x3FFF0176UL)
406 #define VI_ATTR_TRIG_ID (0x3FFF0177UL)
407 #define VI_ATTR_GPIB_REN_STATE (0x3FFF0181UL)
408 #define VI_ATTR_GPIB_UNADDR_EN (0x3FFF0184UL)
409 #define VI_ATTR_DEV_STATUS_BYTE (0x3FFF0189UL)
410 #define VI_ATTR_FILE_APPEND_EN (0x3FFF0192UL)
411 #define VI_ATTR_VXI_TRIG_SUPPORT (0x3FFF0194UL)
412 #define VI_ATTR_TCPIP_ADDR (0xBFFF0195UL)
413 #define VI_ATTR_TCPIP_HOSTNAME (0xBFFF0196UL)
414 #define VI_ATTR_TCPIP_PORT (0x3FFF0197UL)
415 #define VI_ATTR_TCPIP_DEVICE_NAME (0xBFFF0199UL)
416 #define VI_ATTR_TCPIP_NODELAY (0x3FFF019AUL)
417 #define VI_ATTR_TCPIP_KEEPALIVE (0x3FFF019BUL)
418 #define VI_ATTR_4882_COMPLIANT (0x3FFF019FUL)
419 #define VI_ATTR_USB_SERIAL_NUM (0xBFFF01A0UL)
420 #define VI_ATTR_USB_INTFC_NUM (0x3FFF01A1UL)
421 #define VI_ATTR_USB_PROTOCOL (0x3FFF01A7UL)
422 #define VI_ATTR_USB_MAX_INTR_SIZE (0x3FFF01AFUL)
423 #define VI_ATTR_PXI_DEV_NUM (0x3FFF0201UL)
424 #define VI_ATTR_PXI_FUNC_NUM (0x3FFF0202UL)
425 #define VI_ATTR_PXI_BUS_NUM (0x3FFF0205UL)
426 #define VI_ATTR_PXI_CHASSIS (0x3FFF0206UL)
427 #define VI_ATTR_PXI_SLOTPATH (0xBFFF0207UL)
428 #define VI_ATTR_PXI_SLOT_LBUS_LEFT (0x3FFF0208UL)
429 #define VI_ATTR_PXI_SLOT_LBUS_RIGHT (0x3FFF0209UL)
430 #define VI_ATTR_PXI_TRIG_BUS (0x3FFF020AUL)
431 #define VI_ATTR_PXI_STAR_TRIG_BUS (0x3FFF020BUL)
432 #define VI_ATTR_PXI_STAR_TRIG_LINE (0x3FFF020CUL)
433 #define VI_ATTR_PXI_SRC_TRIG_BUS (0x3FFF020DUL)
434 #define VI_ATTR_PXI_DEST_TRIG_BUS (0x3FFF020EUL)
435 #define VI_ATTR_PXI_MEM_TYPE_BAR0 (0x3FFF0211UL)
436 #define VI_ATTR_PXI_MEM_TYPE_BAR1 (0x3FFF0212UL)
437 #define VI_ATTR_PXI_MEM_TYPE_BAR2 (0x3FFF0213UL)
438 #define VI_ATTR_PXI_MEM_TYPE_BAR3 (0x3FFF0214UL)
439 #define VI_ATTR_PXI_MEM_TYPE_BAR4 (0x3FFF0215UL)
440 #define VI_ATTR_PXI_MEM_TYPE_BAR5 (0x3FFF0216UL)
441 #define VI_ATTR_PXI_MEM_BASE_BAR0_32 (0x3FFF0221UL)
442 #define VI_ATTR_PXI_MEM_BASE_BAR1_32 (0x3FFF0222UL)
443 #define VI_ATTR_PXI_MEM_BASE_BAR2_32 (0x3FFF0223UL)
444 #define VI_ATTR_PXI_MEM_BASE_BAR3_32 (0x3FFF0224UL)
445 #define VI_ATTR_PXI_MEM_BASE_BAR4_32 (0x3FFF0225UL)
446 #define VI_ATTR_PXI_MEM_BASE_BAR5_32 (0x3FFF0226UL)
447 #define VI_ATTR_PXI_MEM_BASE_BAR0_64 (0x3FFF0228UL)
448 #define VI_ATTR_PXI_MEM_BASE_BAR1_64 (0x3FFF0229UL)
449 #define VI_ATTR_PXI_MEM_BASE_BAR2_64 (0x3FFF022AUL)
450 #define VI_ATTR_PXI_MEM_BASE_BAR3_64 (0x3FFF022BUL)
451 #define VI_ATTR_PXI_MEM_BASE_BAR4_64 (0x3FFF022CUL)
452 #define VI_ATTR_PXI_MEM_BASE_BAR5_64 (0x3FFF022DUL)
453 #define VI_ATTR_PXI_MEM_SIZE_BAR0_32 (0x3FFF0231UL)
454 #define VI_ATTR_PXI_MEM_SIZE_BAR1_32 (0x3FFF0232UL)
455 #define VI_ATTR_PXI_MEM_SIZE_BAR2_32 (0x3FFF0233UL)
456 #define VI_ATTR_PXI_MEM_SIZE_BAR3_32 (0x3FFF0234UL)
457 #define VI_ATTR_PXI_MEM_SIZE_BAR4_32 (0x3FFF0235UL)
458 #define VI_ATTR_PXI_MEM_SIZE_BAR5_32 (0x3FFF0236UL)
459 #define VI_ATTR_PXI_MEM_SIZE_BAR0_64 (0x3FFF0238UL)
460 #define VI_ATTR_PXI_MEM_SIZE_BAR1_64 (0x3FFF0239UL)
461 #define VI_ATTR_PXI_MEM_SIZE_BAR2_64 (0x3FFF023AUL)
462 #define VI_ATTR_PXI_MEM_SIZE_BAR3_64 (0x3FFF023BUL)
463 #define VI_ATTR_PXI_MEM_SIZE_BAR4_64 (0x3FFF023CUL)
464 #define VI_ATTR_PXI_MEM_SIZE_BAR5_64 (0x3FFF023DUL)
465 #define VI_ATTR_PXI_IS_EXPRESS (0x3FFF0240UL)
466 #define VI_ATTR_PXI_SLOT_LWIDTH (0x3FFF0241UL)
467 #define VI_ATTR_PXI_MAX_LWIDTH (0x3FFF0242UL)
468 #define VI_ATTR_PXI_ACTUAL_LWIDTH (0x3FFF0243UL)
469 #define VI_ATTR_PXI_DSTAR_BUS (0x3FFF0244UL)
470 #define VI_ATTR_PXI_DSTAR_SET (0x3FFF0245UL)
471 #define VI_ATTR_PXI_ALLOW_WRITE_COMBINE (0x3FFF0246UL)
472 #define VI_ATTR_TCPIP_HISLIP_OVERLAP_EN (0x3FFF0300UL)
473 #define VI_ATTR_TCPIP_HISLIP_VERSION (0x3FFF0301UL)
474 #define VI_ATTR_TCPIP_HISLIP_MAX_MESSAGE_KB (0x3FFF0302UL)
475 #define VI_ATTR_TCPIP_IS_HISLIP (0x3FFF0303UL)
476 
477 #define VI_ATTR_JOB_ID (0x3FFF4006UL)
478 #define VI_ATTR_EVENT_TYPE (0x3FFF4010UL)
479 #define VI_ATTR_SIGP_STATUS_ID (0x3FFF4011UL)
480 #define VI_ATTR_RECV_TRIG_ID (0x3FFF4012UL)
481 #define VI_ATTR_INTR_STATUS_ID (0x3FFF4023UL)
482 #define VI_ATTR_STATUS (0x3FFF4025UL)
483 #define VI_ATTR_RET_COUNT_32 (0x3FFF4026UL)
484 #define VI_ATTR_BUFFER (0x3FFF4027UL)
485 #define VI_ATTR_RECV_INTR_LEVEL (0x3FFF4041UL)
486 #define VI_ATTR_OPER_NAME (0xBFFF4042UL)
487 #define VI_ATTR_GPIB_RECV_CIC_STATE (0x3FFF4193UL)
488 #define VI_ATTR_RECV_TCPIP_ADDR (0xBFFF4198UL)
489 #define VI_ATTR_USB_RECV_INTR_SIZE (0x3FFF41B0UL)
490 #define VI_ATTR_USB_RECV_INTR_DATA (0xBFFF41B1UL)
491 #define VI_ATTR_PXI_RECV_INTR_SEQ (0x3FFF4240UL)
492 #define VI_ATTR_PXI_RECV_INTR_DATA (0x3FFF4241UL)
493 
494 /*- Attributes (platform dependent size) ------------------------------------*/
495 
496 #if defined(_VI_INT64_UINT64_DEFINED) && defined(_VISA_ENV_IS_64_BIT)
497 #define VI_ATTR_USER_DATA_64 (0x3FFF000AUL)
498 #define VI_ATTR_RET_COUNT_64 (0x3FFF4028UL)
499 #define VI_ATTR_USER_DATA (VI_ATTR_USER_DATA_64)
500 #define VI_ATTR_RET_COUNT (VI_ATTR_RET_COUNT_64)
501 #else
502 #define VI_ATTR_USER_DATA (VI_ATTR_USER_DATA_32)
503 #define VI_ATTR_RET_COUNT (VI_ATTR_RET_COUNT_32)
504 #endif
505 
506 #if defined(_VI_INT64_UINT64_DEFINED)
507 #define VI_ATTR_WIN_BASE_ADDR_64 (0x3FFF009BUL)
508 #define VI_ATTR_WIN_SIZE_64 (0x3FFF009CUL)
509 #define VI_ATTR_MEM_BASE_64 (0x3FFF00D0UL)
510 #define VI_ATTR_MEM_SIZE_64 (0x3FFF00D1UL)
511 #endif
512 #if defined(_VI_INT64_UINT64_DEFINED) && defined(_VISA_ENV_IS_64_BIT)
513 #define VI_ATTR_WIN_BASE_ADDR (VI_ATTR_WIN_BASE_ADDR_64)
514 #define VI_ATTR_WIN_SIZE (VI_ATTR_WIN_SIZE_64)
515 #define VI_ATTR_MEM_BASE (VI_ATTR_MEM_BASE_64)
516 #define VI_ATTR_MEM_SIZE (VI_ATTR_MEM_SIZE_64)
517 #define VI_ATTR_PXI_MEM_BASE_BAR0 (VI_ATTR_PXI_MEM_BASE_BAR0_64)
518 #define VI_ATTR_PXI_MEM_BASE_BAR1 (VI_ATTR_PXI_MEM_BASE_BAR1_64)
519 #define VI_ATTR_PXI_MEM_BASE_BAR2 (VI_ATTR_PXI_MEM_BASE_BAR2_64)
520 #define VI_ATTR_PXI_MEM_BASE_BAR3 (VI_ATTR_PXI_MEM_BASE_BAR3_64)
521 #define VI_ATTR_PXI_MEM_BASE_BAR4 (VI_ATTR_PXI_MEM_BASE_BAR4_64)
522 #define VI_ATTR_PXI_MEM_BASE_BAR5 (VI_ATTR_PXI_MEM_BASE_BAR5_64)
523 #define VI_ATTR_PXI_MEM_SIZE_BAR0 (VI_ATTR_PXI_MEM_SIZE_BAR0_64)
524 #define VI_ATTR_PXI_MEM_SIZE_BAR1 (VI_ATTR_PXI_MEM_SIZE_BAR1_64)
525 #define VI_ATTR_PXI_MEM_SIZE_BAR2 (VI_ATTR_PXI_MEM_SIZE_BAR2_64)
526 #define VI_ATTR_PXI_MEM_SIZE_BAR3 (VI_ATTR_PXI_MEM_SIZE_BAR3_64)
527 #define VI_ATTR_PXI_MEM_SIZE_BAR4 (VI_ATTR_PXI_MEM_SIZE_BAR4_64)
528 #define VI_ATTR_PXI_MEM_SIZE_BAR5 (VI_ATTR_PXI_MEM_SIZE_BAR5_64)
529 #else
530 #define VI_ATTR_WIN_BASE_ADDR (VI_ATTR_WIN_BASE_ADDR_32)
531 #define VI_ATTR_WIN_SIZE (VI_ATTR_WIN_SIZE_32)
532 #define VI_ATTR_MEM_BASE (VI_ATTR_MEM_BASE_32)
533 #define VI_ATTR_MEM_SIZE (VI_ATTR_MEM_SIZE_32)
534 #define VI_ATTR_PXI_MEM_BASE_BAR0 (VI_ATTR_PXI_MEM_BASE_BAR0_32)
535 #define VI_ATTR_PXI_MEM_BASE_BAR1 (VI_ATTR_PXI_MEM_BASE_BAR1_32)
536 #define VI_ATTR_PXI_MEM_BASE_BAR2 (VI_ATTR_PXI_MEM_BASE_BAR2_32)
537 #define VI_ATTR_PXI_MEM_BASE_BAR3 (VI_ATTR_PXI_MEM_BASE_BAR3_32)
538 #define VI_ATTR_PXI_MEM_BASE_BAR4 (VI_ATTR_PXI_MEM_BASE_BAR4_32)
539 #define VI_ATTR_PXI_MEM_BASE_BAR5 (VI_ATTR_PXI_MEM_BASE_BAR5_32)
540 #define VI_ATTR_PXI_MEM_SIZE_BAR0 (VI_ATTR_PXI_MEM_SIZE_BAR0_32)
541 #define VI_ATTR_PXI_MEM_SIZE_BAR1 (VI_ATTR_PXI_MEM_SIZE_BAR1_32)
542 #define VI_ATTR_PXI_MEM_SIZE_BAR2 (VI_ATTR_PXI_MEM_SIZE_BAR2_32)
543 #define VI_ATTR_PXI_MEM_SIZE_BAR3 (VI_ATTR_PXI_MEM_SIZE_BAR3_32)
544 #define VI_ATTR_PXI_MEM_SIZE_BAR4 (VI_ATTR_PXI_MEM_SIZE_BAR4_32)
545 #define VI_ATTR_PXI_MEM_SIZE_BAR5 (VI_ATTR_PXI_MEM_SIZE_BAR5_32)
546 #endif
547 
548 /*- Event Types -------------------------------------------------------------*/
549 
550 #define VI_EVENT_IO_COMPLETION (0x3FFF2009UL)
551 #define VI_EVENT_TRIG (0xBFFF200AUL)
552 #define VI_EVENT_SERVICE_REQ (0x3FFF200BUL)
553 #define VI_EVENT_CLEAR (0x3FFF200DUL)
554 #define VI_EVENT_EXCEPTION (0xBFFF200EUL)
555 #define VI_EVENT_GPIB_CIC (0x3FFF2012UL)
556 #define VI_EVENT_GPIB_TALK (0x3FFF2013UL)
557 #define VI_EVENT_GPIB_LISTEN (0x3FFF2014UL)
558 #define VI_EVENT_VXI_VME_SYSFAIL (0x3FFF201DUL)
559 #define VI_EVENT_VXI_VME_SYSRESET (0x3FFF201EUL)
560 #define VI_EVENT_VXI_SIGP (0x3FFF2020UL)
561 #define VI_EVENT_VXI_VME_INTR (0xBFFF2021UL)
562 #define VI_EVENT_PXI_INTR (0x3FFF2022UL)
563 #define VI_EVENT_TCPIP_CONNECT (0x3FFF2036UL)
564 #define VI_EVENT_USB_INTR (0x3FFF2037UL)
565 
566 #define VI_ALL_ENABLED_EVENTS (0x3FFF7FFFUL)
567 
568 /*- Completion and Error Codes ----------------------------------------------*/
569 
570 #define VI_SUCCESS_EVENT_EN (0x3FFF0002L) /* 3FFF0002, 1073676290 */
571 #define VI_SUCCESS_EVENT_DIS (0x3FFF0003L) /* 3FFF0003, 1073676291 */
572 #define VI_SUCCESS_QUEUE_EMPTY (0x3FFF0004L) /* 3FFF0004, 1073676292 */
573 #define VI_SUCCESS_TERM_CHAR (0x3FFF0005L) /* 3FFF0005, 1073676293 */
574 #define VI_SUCCESS_MAX_CNT (0x3FFF0006L) /* 3FFF0006, 1073676294 */
575 #define VI_SUCCESS_DEV_NPRESENT (0x3FFF007DL) /* 3FFF007D, 1073676413 */
576 #define VI_SUCCESS_TRIG_MAPPED (0x3FFF007EL) /* 3FFF007E, 1073676414 */
577 #define VI_SUCCESS_QUEUE_NEMPTY (0x3FFF0080L) /* 3FFF0080, 1073676416 */
578 #define VI_SUCCESS_NCHAIN (0x3FFF0098L) /* 3FFF0098, 1073676440 */
579 #define VI_SUCCESS_NESTED_SHARED (0x3FFF0099L) /* 3FFF0099, 1073676441 */
580 #define VI_SUCCESS_NESTED_EXCLUSIVE (0x3FFF009AL) /* 3FFF009A, 1073676442 */
581 #define VI_SUCCESS_SYNC (0x3FFF009BL) /* 3FFF009B, 1073676443 */
582 
583 #define VI_WARN_QUEUE_OVERFLOW (0x3FFF000CL) /* 3FFF000C, 1073676300 */
584 #define VI_WARN_CONFIG_NLOADED (0x3FFF0077L) /* 3FFF0077, 1073676407 */
585 #define VI_WARN_NULL_OBJECT (0x3FFF0082L) /* 3FFF0082, 1073676418 */
586 #define VI_WARN_NSUP_ATTR_STATE (0x3FFF0084L) /* 3FFF0084, 1073676420 */
587 #define VI_WARN_UNKNOWN_STATUS (0x3FFF0085L) /* 3FFF0085, 1073676421 */
588 #define VI_WARN_NSUP_BUF (0x3FFF0088L) /* 3FFF0088, 1073676424 */
589 #define VI_WARN_EXT_FUNC_NIMPL (0x3FFF00A9L) /* 3FFF00A9, 1073676457 */
590 
591 #define VI_ERROR_SYSTEM_ERROR (_VI_ERROR+0x3FFF0000L) /* BFFF0000, -1073807360 */
592 #define VI_ERROR_INV_OBJECT (_VI_ERROR+0x3FFF000EL) /* BFFF000E, -1073807346 */
593 #define VI_ERROR_RSRC_LOCKED (_VI_ERROR+0x3FFF000FL) /* BFFF000F, -1073807345 */
594 #define VI_ERROR_INV_EXPR (_VI_ERROR+0x3FFF0010L) /* BFFF0010, -1073807344 */
595 #define VI_ERROR_RSRC_NFOUND (_VI_ERROR+0x3FFF0011L) /* BFFF0011, -1073807343 */
596 #define VI_ERROR_INV_RSRC_NAME (_VI_ERROR+0x3FFF0012L) /* BFFF0012, -1073807342 */
597 #define VI_ERROR_INV_ACC_MODE (_VI_ERROR+0x3FFF0013L) /* BFFF0013, -1073807341 */
598 #define VI_ERROR_TMO (_VI_ERROR+0x3FFF0015L) /* BFFF0015, -1073807339 */
599 #define VI_ERROR_CLOSING_FAILED (_VI_ERROR+0x3FFF0016L) /* BFFF0016, -1073807338 */
600 #define VI_ERROR_INV_DEGREE (_VI_ERROR+0x3FFF001BL) /* BFFF001B, -1073807333 */
601 #define VI_ERROR_INV_JOB_ID (_VI_ERROR+0x3FFF001CL) /* BFFF001C, -1073807332 */
602 #define VI_ERROR_NSUP_ATTR (_VI_ERROR+0x3FFF001DL) /* BFFF001D, -1073807331 */
603 #define VI_ERROR_NSUP_ATTR_STATE (_VI_ERROR+0x3FFF001EL) /* BFFF001E, -1073807330 */
604 #define VI_ERROR_ATTR_READONLY (_VI_ERROR+0x3FFF001FL) /* BFFF001F, -1073807329 */
605 #define VI_ERROR_INV_LOCK_TYPE (_VI_ERROR+0x3FFF0020L) /* BFFF0020, -1073807328 */
606 #define VI_ERROR_INV_ACCESS_KEY (_VI_ERROR+0x3FFF0021L) /* BFFF0021, -1073807327 */
607 #define VI_ERROR_INV_EVENT (_VI_ERROR+0x3FFF0026L) /* BFFF0026, -1073807322 */
608 #define VI_ERROR_INV_MECH (_VI_ERROR+0x3FFF0027L) /* BFFF0027, -1073807321 */
609 #define VI_ERROR_HNDLR_NINSTALLED (_VI_ERROR+0x3FFF0028L) /* BFFF0028, -1073807320 */
610 #define VI_ERROR_INV_HNDLR_REF (_VI_ERROR+0x3FFF0029L) /* BFFF0029, -1073807319 */
611 #define VI_ERROR_INV_CONTEXT (_VI_ERROR+0x3FFF002AL) /* BFFF002A, -1073807318 */
612 #define VI_ERROR_QUEUE_OVERFLOW (_VI_ERROR+0x3FFF002DL) /* BFFF002D, -1073807315 */
613 #define VI_ERROR_NENABLED (_VI_ERROR+0x3FFF002FL) /* BFFF002F, -1073807313 */
614 #define VI_ERROR_ABORT (_VI_ERROR+0x3FFF0030L) /* BFFF0030, -1073807312 */
615 #define VI_ERROR_RAW_WR_PROT_VIOL (_VI_ERROR+0x3FFF0034L) /* BFFF0034, -1073807308 */
616 #define VI_ERROR_RAW_RD_PROT_VIOL (_VI_ERROR+0x3FFF0035L) /* BFFF0035, -1073807307 */
617 #define VI_ERROR_OUTP_PROT_VIOL (_VI_ERROR+0x3FFF0036L) /* BFFF0036, -1073807306 */
618 #define VI_ERROR_INP_PROT_VIOL (_VI_ERROR+0x3FFF0037L) /* BFFF0037, -1073807305 */
619 #define VI_ERROR_BERR (_VI_ERROR+0x3FFF0038L) /* BFFF0038, -1073807304 */
620 #define VI_ERROR_IN_PROGRESS (_VI_ERROR+0x3FFF0039L) /* BFFF0039, -1073807303 */
621 #define VI_ERROR_INV_SETUP (_VI_ERROR+0x3FFF003AL) /* BFFF003A, -1073807302 */
622 #define VI_ERROR_QUEUE_ERROR (_VI_ERROR+0x3FFF003BL) /* BFFF003B, -1073807301 */
623 #define VI_ERROR_ALLOC (_VI_ERROR+0x3FFF003CL) /* BFFF003C, -1073807300 */
624 #define VI_ERROR_INV_MASK (_VI_ERROR+0x3FFF003DL) /* BFFF003D, -1073807299 */
625 #define VI_ERROR_IO (_VI_ERROR+0x3FFF003EL) /* BFFF003E, -1073807298 */
626 #define VI_ERROR_INV_FMT (_VI_ERROR+0x3FFF003FL) /* BFFF003F, -1073807297 */
627 #define VI_ERROR_NSUP_FMT (_VI_ERROR+0x3FFF0041L) /* BFFF0041, -1073807295 */
628 #define VI_ERROR_LINE_IN_USE (_VI_ERROR+0x3FFF0042L) /* BFFF0042, -1073807294 */
629 #define VI_ERROR_LINE_NRESERVED (_VI_ERROR+0x3FFF0043L) /* BFFF0043, -1073807293 */
630 #define VI_ERROR_NSUP_MODE (_VI_ERROR+0x3FFF0046L) /* BFFF0046, -1073807290 */
631 #define VI_ERROR_SRQ_NOCCURRED (_VI_ERROR+0x3FFF004AL) /* BFFF004A, -1073807286 */
632 #define VI_ERROR_INV_SPACE (_VI_ERROR+0x3FFF004EL) /* BFFF004E, -1073807282 */
633 #define VI_ERROR_INV_OFFSET (_VI_ERROR+0x3FFF0051L) /* BFFF0051, -1073807279 */
634 #define VI_ERROR_INV_WIDTH (_VI_ERROR+0x3FFF0052L) /* BFFF0052, -1073807278 */
635 #define VI_ERROR_NSUP_OFFSET (_VI_ERROR+0x3FFF0054L) /* BFFF0054, -1073807276 */
636 #define VI_ERROR_NSUP_VAR_WIDTH (_VI_ERROR+0x3FFF0055L) /* BFFF0055, -1073807275 */
637 #define VI_ERROR_WINDOW_NMAPPED (_VI_ERROR+0x3FFF0057L) /* BFFF0057, -1073807273 */
638 #define VI_ERROR_RESP_PENDING (_VI_ERROR+0x3FFF0059L) /* BFFF0059, -1073807271 */
639 #define VI_ERROR_NLISTENERS (_VI_ERROR+0x3FFF005FL) /* BFFF005F, -1073807265 */
640 #define VI_ERROR_NCIC (_VI_ERROR+0x3FFF0060L) /* BFFF0060, -1073807264 */
641 #define VI_ERROR_NSYS_CNTLR (_VI_ERROR+0x3FFF0061L) /* BFFF0061, -1073807263 */
642 #define VI_ERROR_NSUP_OPER (_VI_ERROR+0x3FFF0067L) /* BFFF0067, -1073807257 */
643 #define VI_ERROR_INTR_PENDING (_VI_ERROR+0x3FFF0068L) /* BFFF0068, -1073807256 */
644 #define VI_ERROR_ASRL_PARITY (_VI_ERROR+0x3FFF006AL) /* BFFF006A, -1073807254 */
645 #define VI_ERROR_ASRL_FRAMING (_VI_ERROR+0x3FFF006BL) /* BFFF006B, -1073807253 */
646 #define VI_ERROR_ASRL_OVERRUN (_VI_ERROR+0x3FFF006CL) /* BFFF006C, -1073807252 */
647 #define VI_ERROR_TRIG_NMAPPED (_VI_ERROR+0x3FFF006EL) /* BFFF006E, -1073807250 */
648 #define VI_ERROR_NSUP_ALIGN_OFFSET (_VI_ERROR+0x3FFF0070L) /* BFFF0070, -1073807248 */
649 #define VI_ERROR_USER_BUF (_VI_ERROR+0x3FFF0071L) /* BFFF0071, -1073807247 */
650 #define VI_ERROR_RSRC_BUSY (_VI_ERROR+0x3FFF0072L) /* BFFF0072, -1073807246 */
651 #define VI_ERROR_NSUP_WIDTH (_VI_ERROR+0x3FFF0076L) /* BFFF0076, -1073807242 */
652 #define VI_ERROR_INV_PARAMETER (_VI_ERROR+0x3FFF0078L) /* BFFF0078, -1073807240 */
653 #define VI_ERROR_INV_PROT (_VI_ERROR+0x3FFF0079L) /* BFFF0079, -1073807239 */
654 #define VI_ERROR_INV_SIZE (_VI_ERROR+0x3FFF007BL) /* BFFF007B, -1073807237 */
655 #define VI_ERROR_WINDOW_MAPPED (_VI_ERROR+0x3FFF0080L) /* BFFF0080, -1073807232 */
656 #define VI_ERROR_NIMPL_OPER (_VI_ERROR+0x3FFF0081L) /* BFFF0081, -1073807231 */
657 #define VI_ERROR_INV_LENGTH (_VI_ERROR+0x3FFF0083L) /* BFFF0083, -1073807229 */
658 #define VI_ERROR_INV_MODE (_VI_ERROR+0x3FFF0091L) /* BFFF0091, -1073807215 */
659 #define VI_ERROR_SESN_NLOCKED (_VI_ERROR+0x3FFF009CL) /* BFFF009C, -1073807204 */
660 #define VI_ERROR_MEM_NSHARED (_VI_ERROR+0x3FFF009DL) /* BFFF009D, -1073807203 */
661 #define VI_ERROR_LIBRARY_NFOUND (_VI_ERROR+0x3FFF009EL) /* BFFF009E, -1073807202 */
662 #define VI_ERROR_NSUP_INTR (_VI_ERROR+0x3FFF009FL) /* BFFF009F, -1073807201 */
663 #define VI_ERROR_INV_LINE (_VI_ERROR+0x3FFF00A0L) /* BFFF00A0, -1073807200 */
664 #define VI_ERROR_FILE_ACCESS (_VI_ERROR+0x3FFF00A1L) /* BFFF00A1, -1073807199 */
665 #define VI_ERROR_FILE_IO (_VI_ERROR+0x3FFF00A2L) /* BFFF00A2, -1073807198 */
666 #define VI_ERROR_NSUP_LINE (_VI_ERROR+0x3FFF00A3L) /* BFFF00A3, -1073807197 */
667 #define VI_ERROR_NSUP_MECH (_VI_ERROR+0x3FFF00A4L) /* BFFF00A4, -1073807196 */
668 #define VI_ERROR_INTF_NUM_NCONFIG (_VI_ERROR+0x3FFF00A5L) /* BFFF00A5, -1073807195 */
669 #define VI_ERROR_CONN_LOST (_VI_ERROR+0x3FFF00A6L) /* BFFF00A6, -1073807194 */
670 #define VI_ERROR_MACHINE_NAVAIL (_VI_ERROR+0x3FFF00A7L) /* BFFF00A7, -1073807193 */
671 #define VI_ERROR_NPERMISSION (_VI_ERROR+0x3FFF00A8L) /* BFFF00A8, -1073807192 */
672 
673 /*- Other VISA Definitions --------------------------------------------------*/
674 
675 #define VI_VERSION_MAJOR(ver) ((((ViVersion)ver) & 0xFFF00000UL) >> 20)
676 #define VI_VERSION_MINOR(ver) ((((ViVersion)ver) & 0x000FFF00UL) >> 8)
677 #define VI_VERSION_SUBMINOR(ver) ((((ViVersion)ver) & 0x000000FFUL) )
678 
679 #define VI_FIND_BUFLEN (256)
680 
681 #define VI_INTF_GPIB (1)
682 #define VI_INTF_VXI (2)
683 #define VI_INTF_GPIB_VXI (3)
684 #define VI_INTF_ASRL (4)
685 #define VI_INTF_PXI (5)
686 #define VI_INTF_TCPIP (6)
687 #define VI_INTF_USB (7)
688 
689 #define VI_PROT_NORMAL (1)
690 #define VI_PROT_FDC (2)
691 #define VI_PROT_HS488 (3)
692 #define VI_PROT_4882_STRS (4)
693 #define VI_PROT_USBTMC_VENDOR (5)
694 
695 #define VI_FDC_NORMAL (1)
696 #define VI_FDC_STREAM (2)
697 
698 #define VI_LOCAL_SPACE (0)
699 #define VI_A16_SPACE (1)
700 #define VI_A24_SPACE (2)
701 #define VI_A32_SPACE (3)
702 #define VI_A64_SPACE (4)
703 #define VI_PXI_ALLOC_SPACE (9)
704 #define VI_PXI_CFG_SPACE (10)
705 #define VI_PXI_BAR0_SPACE (11)
706 #define VI_PXI_BAR1_SPACE (12)
707 #define VI_PXI_BAR2_SPACE (13)
708 #define VI_PXI_BAR3_SPACE (14)
709 #define VI_PXI_BAR4_SPACE (15)
710 #define VI_PXI_BAR5_SPACE (16)
711 #define VI_OPAQUE_SPACE (0xFFFF)
712 
713 #define VI_UNKNOWN_LA (-1)
714 #define VI_UNKNOWN_SLOT (-1)
715 #define VI_UNKNOWN_LEVEL (-1)
716 #define VI_UNKNOWN_CHASSIS (-1)
717 
718 #define VI_QUEUE (1)
719 #define VI_HNDLR (2)
720 #define VI_SUSPEND_HNDLR (4)
721 #define VI_ALL_MECH (0xFFFF)
722 
723 #define VI_ANY_HNDLR (0)
724 
725 #define VI_TRIG_ALL (-2)
726 #define VI_TRIG_SW (-1)
727 #define VI_TRIG_TTL0 (0)
728 #define VI_TRIG_TTL1 (1)
729 #define VI_TRIG_TTL2 (2)
730 #define VI_TRIG_TTL3 (3)
731 #define VI_TRIG_TTL4 (4)
732 #define VI_TRIG_TTL5 (5)
733 #define VI_TRIG_TTL6 (6)
734 #define VI_TRIG_TTL7 (7)
735 #define VI_TRIG_ECL0 (8)
736 #define VI_TRIG_ECL1 (9)
737 #define VI_TRIG_ECL2 (10)
738 #define VI_TRIG_ECL3 (11)
739 #define VI_TRIG_ECL4 (12)
740 #define VI_TRIG_ECL5 (13)
741 #define VI_TRIG_STAR_SLOT1 (14)
742 #define VI_TRIG_STAR_SLOT2 (15)
743 #define VI_TRIG_STAR_SLOT3 (16)
744 #define VI_TRIG_STAR_SLOT4 (17)
745 #define VI_TRIG_STAR_SLOT5 (18)
746 #define VI_TRIG_STAR_SLOT6 (19)
747 #define VI_TRIG_STAR_SLOT7 (20)
748 #define VI_TRIG_STAR_SLOT8 (21)
749 #define VI_TRIG_STAR_SLOT9 (22)
750 #define VI_TRIG_STAR_SLOT10 (23)
751 #define VI_TRIG_STAR_SLOT11 (24)
752 #define VI_TRIG_STAR_SLOT12 (25)
753 #define VI_TRIG_STAR_INSTR (26)
754 #define VI_TRIG_PANEL_IN (27)
755 #define VI_TRIG_PANEL_OUT (28)
756 #define VI_TRIG_STAR_VXI0 (29)
757 #define VI_TRIG_STAR_VXI1 (30)
758 #define VI_TRIG_STAR_VXI2 (31)
759 
760 #define VI_TRIG_PROT_DEFAULT (0)
761 #define VI_TRIG_PROT_ON (1)
762 #define VI_TRIG_PROT_OFF (2)
763 #define VI_TRIG_PROT_SYNC (5)
764 #define VI_TRIG_PROT_RESERVE (6)
765 #define VI_TRIG_PROT_UNRESERVE (7)
766 
767 #define VI_READ_BUF (1)
768 #define VI_WRITE_BUF (2)
769 #define VI_READ_BUF_DISCARD (4)
770 #define VI_WRITE_BUF_DISCARD (8)
771 #define VI_IO_IN_BUF (16)
772 #define VI_IO_OUT_BUF (32)
773 #define VI_IO_IN_BUF_DISCARD (64)
774 #define VI_IO_OUT_BUF_DISCARD (128)
775 
776 #define VI_FLUSH_ON_ACCESS (1)
777 #define VI_FLUSH_WHEN_FULL (2)
778 #define VI_FLUSH_DISABLE (3)
779 
780 #define VI_NMAPPED (1)
781 #define VI_USE_OPERS (2)
782 #define VI_DEREF_ADDR (3)
783 #define VI_DEREF_ADDR_BYTE_SWAP (4)
784 
785 #define VI_TMO_IMMEDIATE (0L)
786 #define VI_TMO_INFINITE (0xFFFFFFFFUL)
787 
788 #define VI_NO_LOCK (0)
789 #define VI_EXCLUSIVE_LOCK (1)
790 #define VI_SHARED_LOCK (2)
791 #define VI_LOAD_CONFIG (4)
792 
793 #define VI_NO_SEC_ADDR (0xFFFF)
794 
795 #define VI_ASRL_PAR_NONE (0)
796 #define VI_ASRL_PAR_ODD (1)
797 #define VI_ASRL_PAR_EVEN (2)
798 #define VI_ASRL_PAR_MARK (3)
799 #define VI_ASRL_PAR_SPACE (4)
800 
801 #define VI_ASRL_STOP_ONE (10)
802 #define VI_ASRL_STOP_ONE5 (15)
803 #define VI_ASRL_STOP_TWO (20)
804 
805 #define VI_ASRL_FLOW_NONE (0)
806 #define VI_ASRL_FLOW_XON_XOFF (1)
807 #define VI_ASRL_FLOW_RTS_CTS (2)
808 #define VI_ASRL_FLOW_DTR_DSR (4)
809 
810 #define VI_ASRL_END_NONE (0)
811 #define VI_ASRL_END_LAST_BIT (1)
812 #define VI_ASRL_END_TERMCHAR (2)
813 #define VI_ASRL_END_BREAK (3)
814 
815 #define VI_STATE_ASSERTED (1)
816 #define VI_STATE_UNASSERTED (0)
817 #define VI_STATE_UNKNOWN (-1)
818 
819 #define VI_BIG_ENDIAN (0)
820 #define VI_LITTLE_ENDIAN (1)
821 
822 #define VI_DATA_PRIV (0)
823 #define VI_DATA_NPRIV (1)
824 #define VI_PROG_PRIV (2)
825 #define VI_PROG_NPRIV (3)
826 #define VI_BLCK_PRIV (4)
827 #define VI_BLCK_NPRIV (5)
828 #define VI_D64_PRIV (6)
829 #define VI_D64_NPRIV (7)
830 #define VI_D64_2EVME (8)
831 #define VI_D64_SST160 (9)
832 #define VI_D64_SST267 (10)
833 #define VI_D64_SST320 (11)
834 
835 #define VI_WIDTH_8 (1)
836 #define VI_WIDTH_16 (2)
837 #define VI_WIDTH_32 (4)
838 #define VI_WIDTH_64 (8)
839 
840 #define VI_GPIB_REN_DEASSERT (0)
841 #define VI_GPIB_REN_ASSERT (1)
842 #define VI_GPIB_REN_DEASSERT_GTL (2)
843 #define VI_GPIB_REN_ASSERT_ADDRESS (3)
844 #define VI_GPIB_REN_ASSERT_LLO (4)
845 #define VI_GPIB_REN_ASSERT_ADDRESS_LLO (5)
846 #define VI_GPIB_REN_ADDRESS_GTL (6)
847 
848 #define VI_GPIB_ATN_DEASSERT (0)
849 #define VI_GPIB_ATN_ASSERT (1)
850 #define VI_GPIB_ATN_DEASSERT_HANDSHAKE (2)
851 #define VI_GPIB_ATN_ASSERT_IMMEDIATE (3)
852 
853 #define VI_GPIB_HS488_DISABLED (0)
854 #define VI_GPIB_HS488_NIMPL (-1)
855 
856 #define VI_GPIB_UNADDRESSED (0)
857 #define VI_GPIB_TALKER (1)
858 #define VI_GPIB_LISTENER (2)
859 
860 #define VI_VXI_CMD16 (0x0200)
861 #define VI_VXI_CMD16_RESP16 (0x0202)
862 #define VI_VXI_RESP16 (0x0002)
863 #define VI_VXI_CMD32 (0x0400)
864 #define VI_VXI_CMD32_RESP16 (0x0402)
865 #define VI_VXI_CMD32_RESP32 (0x0404)
866 #define VI_VXI_RESP32 (0x0004)
867 
868 #define VI_ASSERT_SIGNAL (-1)
869 #define VI_ASSERT_USE_ASSIGNED (0)
870 #define VI_ASSERT_IRQ1 (1)
871 #define VI_ASSERT_IRQ2 (2)
872 #define VI_ASSERT_IRQ3 (3)
873 #define VI_ASSERT_IRQ4 (4)
874 #define VI_ASSERT_IRQ5 (5)
875 #define VI_ASSERT_IRQ6 (6)
876 #define VI_ASSERT_IRQ7 (7)
877 
878 #define VI_UTIL_ASSERT_SYSRESET (1)
879 #define VI_UTIL_ASSERT_SYSFAIL (2)
880 #define VI_UTIL_DEASSERT_SYSFAIL (3)
881 
882 #define VI_VXI_CLASS_MEMORY (0)
883 #define VI_VXI_CLASS_EXTENDED (1)
884 #define VI_VXI_CLASS_MESSAGE (2)
885 #define VI_VXI_CLASS_REGISTER (3)
886 #define VI_VXI_CLASS_OTHER (4)
887 
888 #define VI_PXI_ADDR_NONE (0)
889 #define VI_PXI_ADDR_MEM (1)
890 #define VI_PXI_ADDR_IO (2)
891 #define VI_PXI_ADDR_CFG (3)
892 
893 #define VI_TRIG_UNKNOWN (-1)
894 
895 #define VI_PXI_LBUS_UNKNOWN (-1)
896 #define VI_PXI_LBUS_NONE (0)
897 #define VI_PXI_LBUS_STAR_TRIG_BUS_0 (1000)
898 #define VI_PXI_LBUS_STAR_TRIG_BUS_1 (1001)
899 #define VI_PXI_LBUS_STAR_TRIG_BUS_2 (1002)
900 #define VI_PXI_LBUS_STAR_TRIG_BUS_3 (1003)
901 #define VI_PXI_LBUS_STAR_TRIG_BUS_4 (1004)
902 #define VI_PXI_LBUS_STAR_TRIG_BUS_5 (1005)
903 #define VI_PXI_LBUS_STAR_TRIG_BUS_6 (1006)
904 #define VI_PXI_LBUS_STAR_TRIG_BUS_7 (1007)
905 #define VI_PXI_LBUS_STAR_TRIG_BUS_8 (1008)
906 #define VI_PXI_LBUS_STAR_TRIG_BUS_9 (1009)
907 #define VI_PXI_STAR_TRIG_CONTROLLER (1413)
908 
909 /*- Backward Compatibility Macros -------------------------------------------*/
910 
911 #define viGetDefaultRM(vi) viOpenDefaultRM(vi)
912 #define VI_ERROR_INV_SESSION (VI_ERROR_INV_OBJECT)
913 #define VI_INFINITE (VI_TMO_INFINITE)
914 #define VI_NORMAL (VI_PROT_NORMAL)
915 #define VI_FDC (VI_PROT_FDC)
916 #define VI_HS488 (VI_PROT_HS488)
917 #define VI_ASRL488 (VI_PROT_4882_STRS)
918 #define VI_ASRL_IN_BUF (VI_IO_IN_BUF)
919 #define VI_ASRL_OUT_BUF (VI_IO_OUT_BUF)
920 #define VI_ASRL_IN_BUF_DISCARD (VI_IO_IN_BUF_DISCARD)
921 #define VI_ASRL_OUT_BUF_DISCARD (VI_IO_OUT_BUF_DISCARD)
922 
923 /*- National Instruments ----------------------------------------------------*/
924 
925 #if defined(_CVI_DEBUG_)
926 #pragma soft_reference (viGetAttribute);
927 #endif
928 
929 #define VI_INTF_RIO (8)
930 #define VI_INTF_FIREWIRE (9)
931 
932 #define VI_ATTR_SYNC_MXI_ALLOW_EN (0x3FFF0161UL) /* ViBoolean, read/write */
933 
934 /* This is for VXI SERVANT resources */
935 
936 #define VI_EVENT_VXI_DEV_CMD (0xBFFF200FUL)
937 #define VI_ATTR_VXI_DEV_CMD_TYPE (0x3FFF4037UL) /* ViInt16, read-only */
938 #define VI_ATTR_VXI_DEV_CMD_VALUE (0x3FFF4038UL) /* ViUInt32, read-only */
939 
940 #define VI_VXI_DEV_CMD_TYPE_16 (16)
941 #define VI_VXI_DEV_CMD_TYPE_32 (32)
942 
944 /* mode values include VI_VXI_RESP16, VI_VXI_RESP32, and the next 2 values */
945 #define VI_VXI_RESP_NONE (0)
946 #define VI_VXI_RESP_PROT_ERROR (-1)
947 
948 /* This is for VXI TTL Trigger routing */
949 
950 #define VI_ATTR_VXI_TRIG_LINES_EN (0x3FFF4043UL)
951 #define VI_ATTR_VXI_TRIG_DIR (0x3FFF4044UL)
952 
953 /* This allows extended Serial support on Win32 and on NI ENET Serial products */
954 
955 #define VI_ATTR_ASRL_DISCARD_NULL (0x3FFF00B0UL)
956 #define VI_ATTR_ASRL_CONNECTED (0x3FFF01BBUL)
957 #define VI_ATTR_ASRL_BREAK_STATE (0x3FFF01BCUL)
958 #define VI_ATTR_ASRL_BREAK_LEN (0x3FFF01BDUL)
959 #define VI_ATTR_ASRL_ALLOW_TRANSMIT (0x3FFF01BEUL)
960 #define VI_ATTR_ASRL_WIRE_MODE (0x3FFF01BFUL)
961 
962 #define VI_ASRL_WIRE_485_4 (0)
963 #define VI_ASRL_WIRE_485_2_DTR_ECHO (1)
964 #define VI_ASRL_WIRE_485_2_DTR_CTRL (2)
965 #define VI_ASRL_WIRE_485_2_AUTO (3)
966 #define VI_ASRL_WIRE_232_DTE (128)
967 #define VI_ASRL_WIRE_232_DCE (129)
968 #define VI_ASRL_WIRE_232_AUTO (130)
969 
970 #define VI_EVENT_ASRL_BREAK (0x3FFF2023UL)
971 #define VI_EVENT_ASRL_CTS (0x3FFF2029UL)
972 #define VI_EVENT_ASRL_DSR (0x3FFF202AUL)
973 #define VI_EVENT_ASRL_DCD (0x3FFF202CUL)
974 #define VI_EVENT_ASRL_RI (0x3FFF202EUL)
975 #define VI_EVENT_ASRL_CHAR (0x3FFF2035UL)
976 #define VI_EVENT_ASRL_TERMCHAR (0x3FFF2024UL)
977 
978 /* This is for fast viPeek/viPoke macros */
979 
980 #if defined(NIVISA_PEEKPOKE)
981 
982 #if defined(NIVISA_PEEKPOKE_SUPP)
983 #undef NIVISA_PEEKPOKE_SUPP
984 #endif
985 
986 #if (defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)) && !defined(_NI_mswin16_)
987 /* This macro is supported for all Win32 compilers, including CVI. */
988 #define NIVISA_PEEKPOKE_SUPP
989 #elif (defined(_WINDOWS) || defined(_Windows)) && !defined(_CVI_) && !defined(_NI_mswin16_)
990 /* This macro is supported for Borland and Microsoft compilers on Win16, but not CVI. */
991 #define NIVISA_PEEKPOKE_SUPP
992 #elif defined(_CVI_) && defined(_NI_sparc_)
993 /* This macro is supported for Solaris 1 and 2, from CVI only. */
994 #define NIVISA_PEEKPOKE_SUPP
995 #else
996 /* This macro is not supported on other platforms. */
997 #endif
998 
999 #if defined(NIVISA_PEEKPOKE_SUPP)
1000 
1001 extern ViBoolean NI_viImplVISA1;
1002 ViStatus _VI_FUNC NI_viOpenDefaultRM (ViPSession vi);
1003 #define viOpenDefaultRM(vi) NI_viOpenDefaultRM(vi)
1004 
1005 #define viPeek8(vi,addr,val) \
1006  { \
1007  if ((NI_viImplVISA1) && (*((ViPUInt32)(vi)))) \
1008  { \
1009  do (*((ViPUInt8)(val)) = *((volatile ViUInt8 _VI_PTR)(addr))); \
1010  while (**((volatile ViUInt8 _VI_PTR _VI_PTR)(vi)) & 0x10); \
1011  } \
1012  else \
1013  { \
1014  (viPeek8)((vi),(addr),(val)); \
1015  } \
1016  }
1017 
1018 #define viPoke8(vi,addr,val) \
1019  { \
1020  if ((NI_viImplVISA1) && (*((ViPUInt32)(vi)))) \
1021  { \
1022  do (*((volatile ViUInt8 _VI_PTR)(addr)) = ((ViUInt8)(val))); \
1023  while (**((volatile ViUInt8 _VI_PTR _VI_PTR)(vi)) & 0x10); \
1024  } \
1025  else \
1026  { \
1027  (viPoke8)((vi),(addr),(val)); \
1028  } \
1029  }
1030 
1031 #define viPeek16(vi,addr,val) \
1032  { \
1033  if ((NI_viImplVISA1) && (*((ViPUInt32)(vi)))) \
1034  { \
1035  do (*((ViPUInt16)(val)) = *((volatile ViUInt16 _VI_PTR)(addr))); \
1036  while (**((volatile ViUInt8 _VI_PTR _VI_PTR)(vi)) & 0x10); \
1037  } \
1038  else \
1039  { \
1040  (viPeek16)((vi),(addr),(val)); \
1041  } \
1042  }
1043 
1044 #define viPoke16(vi,addr,val) \
1045  { \
1046  if ((NI_viImplVISA1) && (*((ViPUInt32)(vi)))) \
1047  { \
1048  do (*((volatile ViUInt16 _VI_PTR)(addr)) = ((ViUInt16)(val))); \
1049  while (**((volatile ViUInt8 _VI_PTR _VI_PTR)(vi)) & 0x10); \
1050  } \
1051  else \
1052  { \
1053  (viPoke16)((vi),(addr),(val)); \
1054  } \
1055  }
1056 
1057 #define viPeek32(vi,addr,val) \
1058  { \
1059  if ((NI_viImplVISA1) && (*((ViPUInt32)(vi)))) \
1060  { \
1061  do (*((ViPUInt32)(val)) = *((volatile ViUInt32 _VI_PTR)(addr))); \
1062  while (**((volatile ViUInt8 _VI_PTR _VI_PTR)(vi)) & 0x10); \
1063  } \
1064  else \
1065  { \
1066  (viPeek32)((vi),(addr),(val)); \
1067  } \
1068  }
1069 
1070 #define viPoke32(vi,addr,val) \
1071  { \
1072  if ((NI_viImplVISA1) && (*((ViPUInt32)(vi)))) \
1073  { \
1074  do (*((volatile ViUInt32 _VI_PTR)(addr)) = ((ViUInt32)(val))); \
1075  while (**((volatile ViUInt8 _VI_PTR _VI_PTR)(vi)) & 0x10); \
1076  } \
1077  else \
1078  { \
1079  (viPoke32)((vi),(addr),(val)); \
1080  } \
1081  }
1082 
1083 #endif
1084 
1085 #endif
1086 
1087 #if defined(NIVISA_PXI) || defined(PXISAVISA_PXI)
1088 
1089 #if 0
1090 /* The following 2 attributes were incorrectly implemented in earlier
1091  versions of NI-VISA. You should now query VI_ATTR_MANF_ID or
1092  VI_ATTR_MODEL_CODE. Those attributes contain sub-vendor information
1093  when it exists. To get both the actual primary and subvendor codes
1094  from the device, you should call viIn16 using VI_PXI_CFG_SPACE. */
1095 #define VI_ATTR_PXI_SUB_MANF_ID (0x3FFF0203UL)
1096 #define VI_ATTR_PXI_SUB_MODEL_CODE (0x3FFF0204UL)
1097 #endif
1098 
1099 #define VI_ATTR_PXI_USE_PREALLOC_POOL (0x3FFF020FUL)
1100 #endif
1101 
1102 #if defined(NIVISA_USB)
1103 
1104 #define VI_ATTR_USB_BULK_OUT_PIPE (0x3FFF01A2UL)
1105 #define VI_ATTR_USB_BULK_IN_PIPE (0x3FFF01A3UL)
1106 #define VI_ATTR_USB_INTR_IN_PIPE (0x3FFF01A4UL)
1107 #define VI_ATTR_USB_CLASS (0x3FFF01A5UL)
1108 #define VI_ATTR_USB_SUBCLASS (0x3FFF01A6UL)
1109 #define VI_ATTR_USB_ALT_SETTING (0x3FFF01A8UL)
1110 #define VI_ATTR_USB_END_IN (0x3FFF01A9UL)
1111 #define VI_ATTR_USB_NUM_INTFCS (0x3FFF01AAUL)
1112 #define VI_ATTR_USB_NUM_PIPES (0x3FFF01ABUL)
1113 #define VI_ATTR_USB_BULK_OUT_STATUS (0x3FFF01ACUL)
1114 #define VI_ATTR_USB_BULK_IN_STATUS (0x3FFF01ADUL)
1115 #define VI_ATTR_USB_INTR_IN_STATUS (0x3FFF01AEUL)
1116 #define VI_ATTR_USB_CTRL_PIPE (0x3FFF01B0UL)
1117 
1118 #define VI_USB_PIPE_STATE_UNKNOWN (-1)
1119 #define VI_USB_PIPE_READY (0)
1120 #define VI_USB_PIPE_STALLED (1)
1121 
1122 #define VI_USB_END_NONE (0)
1123 #define VI_USB_END_SHORT (4)
1124 #define VI_USB_END_SHORT_OR_COUNT (5)
1125 
1126 #endif
1127 
1128 #define VI_ATTR_FIREWIRE_DEST_UPPER_OFFSET (0x3FFF01F0UL)
1129 #define VI_ATTR_FIREWIRE_SRC_UPPER_OFFSET (0x3FFF01F1UL)
1130 #define VI_ATTR_FIREWIRE_WIN_UPPER_OFFSET (0x3FFF01F2UL)
1131 #define VI_ATTR_FIREWIRE_VENDOR_ID (0x3FFF01F3UL)
1132 #define VI_ATTR_FIREWIRE_LOWER_CHIP_ID (0x3FFF01F4UL)
1133 #define VI_ATTR_FIREWIRE_UPPER_CHIP_ID (0x3FFF01F5UL)
1134 
1135 #define VI_FIREWIRE_DFLT_SPACE (5)
1136 
1137 #if defined(__cplusplus) || defined(__cplusplus__)
1138  }
1139 #endif
1140 
1141 #endif
1142 
1143 /*- The End -----------------------------------------------------------------*/
ViPUInt16
ViUInt16 _VI_PTR ViPUInt16
Definition: visatype.h:115
viBufRead
ViStatus _VI_FUNC viBufRead(ViSession vi, ViPBuf buf, ViUInt32 cnt, ViPUInt32 retCnt)
viOpenDefaultRM
ViStatus _VI_FUNC viOpenDefaultRM(ViPSession vi)
viVSScanf
ViStatus _VI_FUNC viVSScanf(ViSession vi, ViBuf buf, ViString readFmt, ViVAList parms)
ViAUInt8
ViUInt8 _VI_PTR ViAUInt8
Definition: visatype.h:124
viFindNext
ViStatus _VI_FUNC viFindNext(ViFindList vi, ViChar _VI_FAR desc[])
ViStatus
typedef ViStatus(_VI_FUNCH _VI_PTR ViHndlr)(ViSession vi
viEnableEvent
ViStatus _VI_FUNC viEnableEvent(ViSession vi, ViEventType eventType, ViUInt16 mechanism, ViEventFilter context)
ViAddr
void _VI_PTR ViAddr
Definition: visatype.h:138
ViKeyId
ViString ViKeyId
Definition: visa.h:79
viReadToFile
ViStatus _VI_FUNC viReadToFile(ViSession vi, ViConstString filename, ViUInt32 cnt, ViPUInt32 retCnt)
viMapTrigger
ViStatus _VI_FUNC viMapTrigger(ViSession vi, ViInt16 trigSrc, ViInt16 trigDest, ViUInt16 mode)
viSetBuf
ViStatus _VI_FUNC viSetBuf(ViSession vi, ViUInt16 mask, ViUInt32 size)
ViUInt8
unsigned char ViUInt8
Definition: visatype.h:122
viUninstallHandler
ViStatus _VI_FUNC viUninstallHandler(ViSession vi, ViEventType eventType, ViHndlr handler, ViAddr userHandle)
viMapAddress
ViStatus _VI_FUNC viMapAddress(ViSession vi, ViUInt16 mapSpace, ViBusAddress mapOffset, ViBusSize mapSize, ViBoolean access, ViAddr suggested, ViPAddr address)
viInstallHandler
ViStatus _VI_FUNC viInstallHandler(ViSession vi, ViEventType eventType, ViHndlr handler, ViAddr userHandle)
viSetAttribute
ViStatus _VI_FUNC viSetAttribute(ViObject vi, ViAttr attrName, ViAttrState attrValue)
ViPAccessMode
ViAccessMode _VI_PTR ViPAccessMode
Definition: visa.h:84
viMemFree
ViStatus _VI_FUNC viMemFree(ViSession vi, ViBusAddress offset)
ViPKeyId
ViPString ViPKeyId
Definition: visa.h:80
ViObject
ViUInt32 ViObject
Definition: visatype.h:174
ViPBusAddress
ViBusAddress _VI_PTR ViPBusAddress
Definition: visa.h:85
ViPSession
ViSession _VI_PTR ViPSession
Definition: visatype.h:179
viMoveOut8
ViStatus _VI_FUNC viMoveOut8(ViSession vi, ViUInt16 space, ViBusAddress offset, ViBusSize length, ViAUInt8 buf8)
ViPEventType
ViEventType _VI_PTR ViPEventType
Definition: visa.h:73
viGpibCommand
ViStatus _VI_FUNC viGpibCommand(ViSession vi, ViBuf cmd, ViUInt32 cnt, ViPUInt32 retCnt)
viPoke16
void _VI_FUNC viPoke16(ViSession vi, ViAddr address, ViUInt16 val16)
viWaitOnEvent
ViStatus _VI_FUNC viWaitOnEvent(ViSession vi, ViEventType inEventType, ViUInt32 timeout, ViPEventType outEventType, ViPEvent outContext)
ViPBuf
ViPByte ViPBuf
Definition: visatype.h:151
viVSPrintf
ViStatus _VI_FUNC viVSPrintf(ViSession vi, ViPBuf buf, ViString writeFmt, ViVAList parms)
viParseRsrc
ViStatus _VI_FUNC viParseRsrc(ViSession rmSesn, ViRsrc rsrcName, ViPUInt16 intfType, ViPUInt16 intfNum)
ViAAttr
ViAttr _VI_PTR ViAAttr
Definition: visa.h:77
viMove
ViStatus _VI_FUNC viMove(ViSession vi, ViUInt16 srcSpace, ViBusAddress srcOffset, ViUInt16 srcWidth, ViUInt16 destSpace, ViBusAddress destOffset, ViUInt16 destWidth, ViBusSize srcLength)
viMemAlloc
ViStatus _VI_FUNC viMemAlloc(ViSession vi, ViBusSize size, ViPBusAddress offset)
viOut16
ViStatus _VI_FUNC viOut16(ViSession vi, ViUInt16 space, ViBusAddress offset, ViUInt16 val16)
viQueryf
ViStatus _VI_FUNCC viQueryf(ViSession vi, ViString writeFmt, ViString readFmt,...)
viDiscardEvents
ViStatus _VI_FUNC viDiscardEvents(ViSession vi, ViEventType eventType, ViUInt16 mechanism)
ViEvent
ViObject ViEvent
Definition: visa.h:52
ViString
ViPChar ViString
Definition: visatype.h:154
ViUInt32
unsigned long ViUInt32
Definition: visatype.h:105
visatype.h
_VI_FAR
#define _VI_FAR
Definition: visatype.h:54
viParseRsrcEx
ViStatus _VI_FUNC viParseRsrcEx(ViSession rmSesn, ViRsrc rsrcName, ViPUInt16 intfType, ViPUInt16 intfNum, ViChar _VI_FAR rsrcClass[], ViChar _VI_FAR expandedUnaliasedName[], ViChar _VI_FAR aliasIfExists[])
ViEventFilter
ViUInt32 ViEventFilter
Definition: visa.h:86
viGpibPassControl
ViStatus _VI_FUNC viGpibPassControl(ViSession vi, ViUInt16 primAddr, ViUInt16 secAddr)
viPrintf
ViStatus _VI_FUNCC viPrintf(ViSession vi, ViString writeFmt,...)
ViInt16
_VI_SIGNED short ViInt16
Definition: visatype.h:118
viWriteFromFile
ViStatus _VI_FUNC viWriteFromFile(ViSession vi, ViConstString filename, ViUInt32 cnt, ViPUInt32 retCnt)
viSPrintf
ViStatus _VI_FUNCC viSPrintf(ViSession vi, ViPBuf buf, ViString writeFmt,...)
eventType
ViEventType eventType
Definition: visa.h:91
ViAccessMode
ViUInt32 ViAccessMode
Definition: visa.h:83
viSScanf
ViStatus _VI_FUNCC viSScanf(ViSession vi, ViBuf buf, ViString readFmt,...)
ViSession
ViObject ViSession
Definition: visatype.h:178
ViEventType
ViUInt32 ViEventType
Definition: visa.h:72
viUnmapAddress
ViStatus _VI_FUNC viUnmapAddress(ViSession vi)
ViPUInt8
ViUInt8 _VI_PTR ViPUInt8
Definition: visatype.h:123
ViConstString
const ViChar * ViConstString
Definition: visatype.h:185
_VI_PTR
#define _VI_PTR
Definition: visatype.h:62
viOpen
ViStatus _VI_FUNC viOpen(ViSession sesn, ViRsrc name, ViAccessMode mode, ViUInt32 timeout, ViPSession vi)
ViPInt16
ViInt16 _VI_PTR ViPInt16
Definition: visatype.h:119
_VI_FUNCC
#define _VI_FUNCC
Definition: visatype.h:56
viVScanf
ViStatus _VI_FUNC viVScanf(ViSession vi, ViString readFmt, ViVAList params)
viBufWrite
ViStatus _VI_FUNC viBufWrite(ViSession vi, ViBuf buf, ViUInt32 cnt, ViPUInt32 retCnt)
ViBusAddress
ViUInt32 ViBusAddress
Definition: visa.h:62
viVxiCommandQuery
ViStatus _VI_FUNC viVxiCommandQuery(ViSession vi, ViUInt16 mode, ViUInt32 cmd, ViPUInt32 response)
ViPAttr
ViAttr _VI_PTR ViPAttr
Definition: visa.h:76
ViPFindList
ViFindList _VI_PTR ViPFindList
Definition: visa.h:55
ViPString
ViPChar ViPString
Definition: visatype.h:155
viUsbControlOut
ViStatus _VI_FUNC viUsbControlOut(ViSession vi, ViInt16 bmRequestType, ViInt16 bRequest, ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength, ViBuf buf)
viGpibControlATN
ViStatus _VI_FUNC viGpibControlATN(ViSession vi, ViUInt16 mode)
viStatusDesc
ViStatus _VI_FUNC viStatusDesc(ViObject vi, ViStatus status, ViChar _VI_FAR desc[])
ViFindList
ViObject ViFindList
Definition: visa.h:54
viGpibSendIFC
ViStatus _VI_FUNC viGpibSendIFC(ViSession vi)
viPxiReserveTriggers
ViStatus _VI_FUNC viPxiReserveTriggers(ViSession vi, ViInt16 cnt, ViAInt16 trigBuses, ViAInt16 trigLines, ViPInt16 failureIndex)
viAssertUtilSignal
ViStatus _VI_FUNC viAssertUtilSignal(ViSession vi, ViUInt16 line)
viFindRsrc
ViStatus _VI_FUNC viFindRsrc(ViSession sesn, ViString expr, ViPFindList vi, ViPUInt32 retCnt, ViChar _VI_FAR desc[])
viScanf
ViStatus _VI_FUNCC viScanf(ViSession vi, ViString readFmt,...)
ViAUInt16
ViUInt16 _VI_PTR ViAUInt16
Definition: visatype.h:116
ViChar
char ViChar
Definition: visatype.h:130
ViAInt16
ViInt16 _VI_PTR ViAInt16
Definition: visatype.h:120
event
ViEventType ViEvent event
Definition: visa.h:91
viDisableEvent
ViStatus _VI_FUNC viDisableEvent(ViSession vi, ViEventType eventType, ViUInt16 mechanism)
ViPJobId
ViJobId _VI_PTR ViPJobId
Definition: visa.h:82
viLock
ViStatus _VI_FUNC viLock(ViSession vi, ViAccessMode lockType, ViUInt32 timeout, ViKeyId requestedKey, ViChar _VI_FAR accessKey[])
viOut8
ViStatus _VI_FUNC viOut8(ViSession vi, ViUInt16 space, ViBusAddress offset, ViUInt8 val8)
viWrite
ViStatus _VI_FUNC viWrite(ViSession vi, ViBuf buf, ViUInt32 cnt, ViPUInt32 retCnt)
viAssertIntrSignal
ViStatus _VI_FUNC viAssertIntrSignal(ViSession vi, ViInt16 mode, ViUInt32 statusID)
viMoveOut16
ViStatus _VI_FUNC viMoveOut16(ViSession vi, ViUInt16 space, ViBusAddress offset, ViBusSize length, ViAUInt16 buf16)
viMoveIn8
ViStatus _VI_FUNC viMoveIn8(ViSession vi, ViUInt16 space, ViBusAddress offset, ViBusSize length, ViAUInt8 buf8)
viAssertTrigger
ViStatus _VI_FUNC viAssertTrigger(ViSession vi, ViUInt16 protocol)
viVPrintf
ViStatus _VI_FUNC viVPrintf(ViSession vi, ViString writeFmt, ViVAList params)
viFlush
ViStatus _VI_FUNC viFlush(ViSession vi, ViUInt16 mask)
ViBusSize
ViUInt32 ViBusSize
Definition: visa.h:63
viReadAsync
ViStatus _VI_FUNC viReadAsync(ViSession vi, ViPBuf buf, ViUInt32 cnt, ViPJobId jobId)
ViVAList
va_list ViVAList
Definition: visa.h:88
viClose
ViStatus _VI_FUNC viClose(ViObject vi)
viPoke32
void _VI_FUNC viPoke32(ViSession vi, ViAddr address, ViUInt32 val32)
ViBoolean
ViUInt16 ViBoolean
Definition: visatype.h:162
_VI_FUNC
#define _VI_FUNC
Definition: visatype.h:55
viTerminate
ViStatus _VI_FUNC viTerminate(ViObject vi, ViUInt16 degree, ViJobId jobId)
viVQueryf
ViStatus _VI_FUNC viVQueryf(ViSession vi, ViString writeFmt, ViString readFmt, ViVAList params)
ViRsrc
ViString ViRsrc
Definition: visatype.h:158
viPeek16
void _VI_FUNC viPeek16(ViSession vi, ViAddr address, ViPUInt16 val16)
ViAttrState
ViUInt32 ViAttrState
Definition: visa.h:64
viOut32
ViStatus _VI_FUNC viOut32(ViSession vi, ViUInt16 space, ViBusAddress offset, ViUInt32 val32)
ViPAttrState
void _VI_PTR ViPAttrState
Definition: visa.h:75
viRead
ViStatus _VI_FUNC viRead(ViSession vi, ViPBuf buf, ViUInt32 cnt, ViPUInt32 retCnt)
viPoke8
void _VI_FUNC viPoke8(ViSession vi, ViAddr address, ViUInt8 val8)
ViAttr
ViUInt32 ViAttr
Definition: visatype.h:182
viUsbControlIn
ViStatus _VI_FUNC viUsbControlIn(ViSession vi, ViInt16 bmRequestType, ViInt16 bRequest, ViUInt16 wValue, ViUInt16 wIndex, ViUInt16 wLength, ViPBuf buf, ViPUInt16 retCnt)
ViJobId
ViUInt32 ViJobId
Definition: visa.h:81
ViPUInt32
ViUInt32 _VI_PTR ViPUInt32
Definition: visatype.h:109
viUnlock
ViStatus _VI_FUNC viUnlock(ViSession vi)
viPeek8
void _VI_FUNC viPeek8(ViSession vi, ViAddr address, ViPUInt8 val8)
viPeek32
void _VI_FUNC viPeek32(ViSession vi, ViAddr address, ViPUInt32 val32)
viMoveIn16
ViStatus _VI_FUNC viMoveIn16(ViSession vi, ViUInt16 space, ViBusAddress offset, ViBusSize length, ViAUInt16 buf16)
ViStatus
ViInt32 ViStatus
Definition: visatype.h:166
ViPEvent
ViEvent _VI_PTR ViPEvent
Definition: visa.h:53
viReadSTB
ViStatus _VI_FUNC viReadSTB(ViSession vi, ViPUInt16 status)
viIn32
ViStatus _VI_FUNC viIn32(ViSession vi, ViUInt16 space, ViBusAddress offset, ViPUInt32 val32)
ViAUInt32
ViUInt32 _VI_PTR ViAUInt32
Definition: visatype.h:110
viVxiServantResponse
ViStatus _VI_FUNC viVxiServantResponse(ViSession vi, ViInt16 mode, ViUInt32 resp)
userHandle
ViEventType ViEvent ViAddr userHandle
Definition: visa.h:91
viMoveAsync
ViStatus _VI_FUNC viMoveAsync(ViSession vi, ViUInt16 srcSpace, ViBusAddress srcOffset, ViUInt16 srcWidth, ViUInt16 destSpace, ViBusAddress destOffset, ViUInt16 destWidth, ViBusSize srcLength, ViPJobId jobId)
viWriteAsync
ViStatus _VI_FUNC viWriteAsync(ViSession vi, ViBuf buf, ViUInt32 cnt, ViPJobId jobId)
viIn8
ViStatus _VI_FUNC viIn8(ViSession vi, ViUInt16 space, ViBusAddress offset, ViPUInt8 val8)
viGpibControlREN
ViStatus _VI_FUNC viGpibControlREN(ViSession vi, ViUInt16 mode)
ViUInt16
unsigned short ViUInt16
Definition: visatype.h:114
ViBuf
ViPByte ViBuf
Definition: visatype.h:150
ViAEventType
ViEventType _VI_PTR ViAEventType
Definition: visa.h:74
viClear
ViStatus _VI_FUNC viClear(ViSession vi)
viUnmapTrigger
ViStatus _VI_FUNC viUnmapTrigger(ViSession vi, ViInt16 trigSrc, ViInt16 trigDest)
ViPAddr
ViAddr _VI_PTR ViPAddr
Definition: visatype.h:139
_VI_FUNCH
#define _VI_FUNCH
Definition: visatype.h:57
viMoveIn32
ViStatus _VI_FUNC viMoveIn32(ViSession vi, ViUInt16 space, ViBusAddress offset, ViBusSize length, ViAUInt32 buf32)
viGetAttribute
ViStatus _VI_FUNC viGetAttribute(ViObject vi, ViAttr attrName, void _VI_PTR attrValue)
viIn16
ViStatus _VI_FUNC viIn16(ViSession vi, ViUInt16 space, ViBusAddress offset, ViPUInt16 val16)
viMoveOut32
ViStatus _VI_FUNC viMoveOut32(ViSession vi, ViUInt16 space, ViBusAddress offset, ViBusSize length, ViAUInt32 buf32)