UL for Linux
User library to access and control supported MCC hardware over the Linux platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
uldaq.h
Go to the documentation of this file.
1 /*
2  * uldaq.h
3  *
4  * Author: Measurement Computing Corporation
5  */
6 
7 #ifndef UL_DAQ_H_
8 #define UL_DAQ_H_
9 
10 #ifdef __cplusplus
11 extern "C"
12 {
13 #endif
14 
15 
18 typedef enum
19 {
21  USB_IFC = 1 << 0,
22 
24  BLUETOOTH_IFC = 1 << 1,
25 
27  ETHERNET_IFC = 1 << 2,
28 
31 
33 
39 {
41  char productName[64];
42 
44  unsigned int productId;
45 
48 
50  char devString[64];
51 
53  char uniqueId[64];
54 
56  char reserved[512];
57 };
58 
61 
65 typedef long long DaqDeviceHandle;
66 
67 
73 {
75  unsigned long long currentScanCount;
76 
79  unsigned long long currentTotalCount;
80 
83  long long currentIndex;
84 
86  char reserved[64];
87 };
88 
91 
92 #define ERR_MSG_LEN 512
93 
95 typedef enum
96 {
99 
102 
105 
108 
111 
114 
117 
120 
123 
126 
129 
132 
135 
138 
141 
144 
147 
150 
153 
156 
159 
162 
165 
168 
171 
174 
177 
180 
183 
186 
189 
192 
195 
198 
201 
204 
207 
210 
213 
216 
219 
222 
225 
228 
231 
234 
237 
240 
243 
246 
249 
252 
255 
258 
261 
264 
267 
270 
273 
276 
279 
282 
285 
288 
291 
294 
297 
300 
303 
306 
309 
312 
315 
318 
321 
324 
327 
330 
333 
336 
339 
342 
345 
348 
351 
354 
357 
360 
363 
366 
369 
372 
375 
378 
381 
384 
387 
390 
393 
396 
399 
402 
405 
408 
411 
414 
417 
420 
423 
426 } UlError;
427 
429 typedef enum
430 {
433 
436 
439 }AiInputMode;
440 
447 typedef enum
448 {
450  AI_VOLTAGE = 1 << 0,
451 
453  AI_TC = 1 << 1,
454 
456  AI_RTD = 1 << 2,
457 
459  AI_THERMISTOR = 1 << 3,
460 
463 
465  AI_DISABLED = 1 << 30
466 }AiChanType;
467 
469 typedef enum
470 {
472  TC_J = 1,
473 
475  TC_K = 2,
476 
478  TC_T = 3,
479 
481  TC_E = 4,
482 
484  TC_R = 5,
485 
487  TC_S = 6,
488 
490  TC_B = 7,
491 
493  TC_N = 8
494 }TcType;
495 
497 typedef enum
498 {
501 
504 
507 
511 
515 typedef enum
516 {
519 
522 
525 
528 
531 
534 
537 
540 
543 
546 
548  BIP1VOLTS = 11,
549 
552 
555 
558 
561 
564 
567 
570 
573 
576 
579 
581  BIP3VOLTS = 22,
582 
585 
588 
589 
590 
591 
593  UNI60VOLTS = 1001,
594 
596  UNI30VOLTS = 1002,
597 
599  UNI15VOLTS = 1003,
600 
602  UNI20VOLTS = 1004,
603 
605  UNI10VOLTS = 1005,
606 
608  UNI5VOLTS = 1006,
609 
611  UNI4VOLTS = 1007,
612 
614  UNI2PT5VOLTS = 1008,
615 
617  UNI2VOLTS = 1009,
618 
621 
623  UNI1VOLTS = 1011,
624 
627 
629  UNIPT5VOLTS = 1013,
630 
632  UNIPT25VOLTS = 1014,
633 
636 
638  UNIPT2VOLTS = 1016,
639 
641  UNIPT1VOLTS = 1017,
642 
645 
647  UNIPT05VOLTS = 1019,
648 
650  UNIPT01VOLTS = 1020,
651 
654 
656  MA0TO20 = 2000
657 }Range;
658 
660 typedef enum
661 {
664 
667 
670 }TempUnit;
671 
673 typedef enum
674 {
677 
680 
683 
685  TS_VOLTS = 4,
686 
689 }TempScale;
690 
691 #ifndef doxy_skip
692 
693 typedef enum
694 {
696  AZM_NONE = 1,
697 
699  AZM_EVERY_SAMPLE = 2,
700 
702  AZM_ONCE = 3
703 }AutoZeroMode;
704 #endif /* doxy_skip */
705 
706 #ifndef doxy_skip
707 
708 typedef enum
709 {
711  ADC_TM_AUTO = 1,
712 
714  ADC_TM_HIGH_RES = 2,
715 
717  ADC_TM_HIGH_SPEED = 3
718 }AdcTimingMode;
719 #endif /* doxy_skip */
720 
722 typedef enum
723 {
726 
729 }IepeMode;
730 
732 typedef enum
733 {
735  CM_DC = 1,
736 
738  CM_AC = 2
739 }CouplingMode;
740 
742 typedef enum
743 {
746 
749 }OtdMode;
750 
752 typedef enum
753 {
755  CHAN_QUEUE = 1 << 0,
756 
758  GAIN_QUEUE = 1 << 1,
759 
761  MODE_QUEUE = 1 << 2
762 }AiQueueType;
763 
770 typedef enum
771 {
773  UNIQUE_CHAN = 1 << 0,
774 
776  ASCENDING_CHAN = 1 << 1,
777 
781 
783 typedef enum
784 {
787 
791 
793 typedef enum
794 {
797 
801 
802 
804 typedef enum
805 {
807  AUXPORT = 1,
808 
810  AUXPORT0 = 1,
811 
813  AUXPORT1 = 2,
814 
816  AUXPORT2 = 3,
817 
820 
823 
826 
829 
832 
835 
838 
841 
844 
847 
850 
853 
856 
859 
862 
865 
868 
871 
874 
877 
880 
883 
886 
889 
892 
895 
898 
901 
904 
907 
910 
913 
917 
919 typedef enum
920 {
922  DPIOT_IN = 1,
923 
926 
928  DPIOT_IO = 3,
929 
932 
936 
938 typedef enum
939 {
941  DD_INPUT = 1,
942 
946 
948 typedef enum
949 {
952 
955 }TimerType;
956 
958 typedef enum
959 {
962 
965 }TmrIdleState;
966 
968 typedef enum
969 {
972 
975 }TmrStatus;
976 
983 typedef enum
984 {
986  TRIG_NONE = 0,
987 
991  TRIG_POS_EDGE = 1 << 0,
992 
995  TRIG_NEG_EDGE = 1 << 1,
996 
998  TRIG_HIGH = 1 << 2,
999 
1001  TRIG_LOW = 1 << 3,
1002 
1004  GATE_HIGH = 1 << 4,
1005 
1007  GATE_LOW = 1 << 5,
1008 
1012  TRIG_RISING = 1 << 6,
1013 
1017  TRIG_FALLING = 1 << 7,
1018 
1021  TRIG_ABOVE = 1 << 8,
1022 
1025  TRIG_BELOW = 1 << 9,
1026 
1029  GATE_ABOVE = 1 << 10,
1030 
1033  GATE_BELOW = 1 << 11,
1034 
1037  GATE_IN_WINDOW = 1 << 12,
1038 
1041  GATE_OUT_WINDOW = 1 << 13,
1042 
1047  TRIG_PATTERN_EQ = 1 << 14,
1048 
1053  TRIG_PATTERN_NE = 1 << 15,
1054 
1060 
1066 }TriggerType;
1067 
1073 {
1075  int channel;
1076 
1079 
1082 
1084  char reserved[64];
1085 };
1086 
1089 
1091 typedef enum
1092 {
1094  SS_IDLE = 0,
1095 
1098 }ScanStatus;
1099 
1100 #ifndef doxy_skip
1101 #define NOSCALEDATA 1 << 0
1102 #define NOCALIBRATEDATA 1 << 1
1103 #define SIMULTANEOUS 1 << 2
1104 #define NOCLEAR 1 << 3
1105 #endif /*doxy_skip */
1106 
1110 typedef enum
1111 {
1114 
1116  SO_SINGLEIO = 1 << 0,
1117 
1119  SO_BLOCKIO = 1 << 1,
1120 
1123  SO_BURSTIO = 1 << 2,
1124 
1126  SO_CONTINUOUS = 1 << 3,
1127 
1129  SO_EXTCLOCK = 1 << 4,
1130 
1132  SO_EXTTRIGGER = 1 << 5,
1133 
1135  SO_RETRIGGER = 1 << 6,
1136 
1138  SO_BURSTMODE = 1 << 7,
1139 
1141  SO_PACEROUT = 1 << 8,
1142 
1144  SO_EXTTIMEBASE = 1 << 9,
1145 
1147  SO_TIMEBASEOUT = 1 << 10
1148 
1149 }ScanOption;
1150 
1152 typedef enum
1153 {
1156 
1158  AINSCAN_FF_NOSCALEDATA = NOSCALEDATA,
1159 
1161  AINSCAN_FF_NOCALIBRATEDATA = NOCALIBRATEDATA
1162 }AInScanFlag;
1163 
1165 typedef enum
1166 {
1169 
1171  AIN_FF_NOSCALEDATA = NOSCALEDATA,
1172 
1174  AIN_FF_NOCALIBRATEDATA = NOCALIBRATEDATA
1175 }AInFlag;
1176 
1178 typedef enum
1179 {
1182 
1184  AOUTSCAN_FF_NOSCALEDATA = NOSCALEDATA,
1185 
1187  AOUTSCAN_FF_NOCALIBRATEDATA = NOCALIBRATEDATA
1188 }AOutScanFlag;
1189 
1191 typedef enum
1192 {
1195 
1198 }TInFlag;
1199 
1201 typedef enum
1202 {
1205 
1208 }TInArrayFlag;
1209 
1211 typedef enum
1212 {
1215 
1217  AOUT_FF_NOSCALEDATA = NOSCALEDATA,
1218 
1220  AOUT_FF_NOCALIBRATEDATA = NOCALIBRATEDATA
1221 }AOutFlag;
1222 
1224 typedef enum
1225 {
1228 
1231 
1233  AOUTARRAY_FF_NOCALIBRATEDATA = NOCALIBRATEDATA ,
1234 
1237 }AOutArrayFlag;
1238 
1240 typedef enum
1241 {
1244 
1247 }AOutSyncMode;
1248 
1250 typedef enum
1251 {
1254 
1257 }AOutSenseMode;
1258 
1259 
1260 
1262 typedef enum
1263 {
1266 
1269 
1272 
1275 
1278 
1281 }CInScanFlag;
1282 
1284 typedef enum
1285 {
1288 }DInScanFlag;
1289 
1291 typedef enum
1292 {
1295 }DOutScanFlag;
1296 
1298 typedef enum
1299 {
1302 
1305 
1307  DAQINSCAN_FF_NOCALIBRATEDATA = NOCALIBRATEDATA,
1308 
1311 }DaqInScanFlag;
1312 
1314 typedef enum
1315 {
1318 
1321 
1325 
1329 typedef enum
1330 {
1332  CMT_COUNT = 1 << 0,
1333 
1336  CMT_PERIOD = 1 << 1,
1337 
1342 
1346  CMT_TIMING = 1 << 3,
1347 
1349  CMT_ENCODER = 1 << 4
1351 
1353 typedef enum
1354 {
1357 
1360 
1362  CMM_COUNT_DOWN = 1 << 1,
1363 
1367 
1370 
1374 
1378  CMM_OUTPUT_ON = 1 << 5,
1379 
1382 
1385  CMM_NO_RECYCLE = 1 << 7,
1386 
1394 
1396  CMM_GATING_ON = 1 << 9,
1397 
1399  CMM_INVERT_GATE = 1 << 10,
1400 
1403 
1405  CMM_PERIOD_X10 = 1 << 11,
1406 
1408  CMM_PERIOD_X100 = 1 << 12,
1409 
1411  CMM_PERIOD_X1000 = 1 << 13,
1412 
1415 
1418 
1421 
1424 
1427 
1430 
1433 
1436 
1438  CMM_ENCODER_X2 = 1 << 19,
1439 
1441  CMM_ENCODER_X4 = 1 << 20,
1442 
1445 
1448 
1452 
1455 
1458 
1461 
1465 
1469 
1471 typedef enum
1472 {
1475 
1479 
1483 
1487 
1491 
1495 
1499 
1503 
1507 
1511 
1515 
1519 
1523 
1527 
1531 
1535 
1540 
1542 typedef enum
1543 {
1546 
1549 
1554 
1556 typedef enum
1557 {
1560 
1564 
1568 typedef enum
1569 {
1572 
1575 
1578 
1581 
1584 
1587 
1590 
1594 
1596 typedef enum
1597 {
1600 }
1602 
1604 typedef enum
1605 {
1607  CRT_COUNT = 1 << 0,
1608 
1610  CRT_LOAD = 1 << 1,
1611 
1613  CRT_MIN_LIMIT = 1 << 2,
1614 
1616  CRT_MAX_LIMIT = 1 << 3,
1617 
1620 
1624 
1628 typedef enum
1629 {
1632 
1634  DAQI_ANALOG_SE = 1 << 1,
1635 
1637  DAQI_DIGITAL = 1 << 2,
1638 
1640  DAQI_CTR16 = 1 << 3,
1641 
1643  DAQI_CTR32 = 1 << 4,
1644 
1646  DAQI_CTR48 = 1 << 5,
1649  DAQI_DAC = 1 << 7
1650 }DaqInChanType;
1651 
1657 {
1659  int channel;
1660 
1663 
1666 
1668  char reserved[64];
1669 };
1670 
1673 
1676 typedef enum
1677 {
1679  DAQO_ANALOG = 1 << 0,
1680 
1682  DAQO_DIGITAL = 1 << 1
1684 
1685 
1691 {
1693  int channel;
1694 
1697 
1700 
1702  char reserved[64];
1703 };
1704 
1707 
1709 typedef enum
1710 {
1713 
1716  PO_EXTTRIGGER = 1 << 5,
1717 
1722  PO_RETRIGGER = 1 << 6
1723 } PulseOutOption;
1724 
1728 typedef enum
1729 {
1732  DE_NONE = 0,
1733 
1737 
1740 
1744 
1747 
1751 
1752 }DaqEventType;
1753 
1755 typedef enum
1756 {
1758  MR_CAL = 1 << 0,
1759 
1761  MR_USER = 1 << 1,
1762 
1764  MR_SETTINGS = 1 << 2,
1765 
1767  MR_RESERVED0 = 1 << 3
1768 }MemRegion;
1769 
1772 typedef enum
1773 {
1775  MA_READ = 1 << 0,
1776 
1778  MA_WRITE = 1 << 1
1779 }MemAccessType;
1780 
1782 typedef void (*DaqEventCallback)(DaqDeviceHandle, DaqEventType, unsigned long long, void*);
1783 
1785 typedef enum
1786 {
1789 }WaitType;
1790 
1791 #ifndef doxy_skip
1792 
1793 typedef enum
1794 {
1795  UL_INFO_VER_STR = 2000
1796 }UlInfoItemStr;
1797 
1798 typedef enum
1799 {
1800  UL_CFG_USB_XFER_PRIORITY = 1
1801 }UlConfigItem;
1802 #endif /* doxy_skip */
1803 
1805 typedef enum
1806 {
1809 
1812 
1815 
1818 
1821 
1824 
1827 
1830 
1833 }DevInfoItem;
1834 
1838 typedef enum
1839 {
1842 
1847 
1850 
1853 
1854 }DevConfigItem;
1855 
1859 typedef enum
1860 {
1863 
1866 
1870 
1872 typedef enum
1873 {
1876 
1879 
1882 
1885 
1889 
1892 typedef enum
1893 {
1896 
1899 
1902 
1905 
1908 
1911 
1914 
1917 
1920 
1925 
1930 
1933 
1937 
1940 
1943 
1946 
1949 
1950 }AiInfoItem;
1951 
1954 typedef enum
1955 {
1958 
1961 
1964 
1967 
1970 }AiInfoItemDbl;
1971 
1973 typedef enum
1974 {
1977 
1980 
1981 #ifndef doxy_skip
1982 
1983  AI_CFG_SCAN_CHAN_TEMP_UNIT = 3,
1984 #endif /* doxy_skip */
1985 
1987 
1988 #ifndef doxy_skip
1989 
1990  AI_CFG_ADC_TIMING_MODE = 5,
1991 
1993  AI_CFG_AUTO_ZERO_MODE = 6,
1994 
1998  AI_CFG_CAL_DATE = 7,
1999 #endif /* doxy_skip */
2000 
2003 
2006 
2009 
2012 
2015 
2018 
2021 
2022 #ifndef doxy_skip
2023 
2026  AI_CFG_EXP_CAL_DATE = 15,
2027 #endif /* doxy_skip */
2028 
2029 }AiConfigItem;
2030 
2032 typedef enum
2033 {
2036 
2039 
2042 
2046 
2049 typedef enum
2050 {
2054 
2057 
2061 
2063 
2066 typedef enum
2067 {
2070 
2073 
2076 
2079 
2082 
2086 
2089 
2092 }AoInfoItem;
2093 
2096 typedef enum
2097 {
2100 
2103 
2106 }AoInfoItemDbl;
2107 
2109 typedef enum
2110 {
2113 
2116 }AoConfigItem;
2117 
2119 typedef enum
2120 {
2123 
2129 
2135 
2141 
2146 
2152 
2157 
2161 }DioInfoItem;
2162 
2164 typedef enum
2165 {
2169 
2173 
2178 
2182 typedef enum
2183 {
2190 
2195 
2200 
2203 }DioConfigItem;
2204 
2208 typedef enum
2209 {
2212 
2216 
2220 
2224 
2227 
2231 
2235 
2239 
2242 }CtrInfoItem;
2243 
2247 typedef enum
2248 {
2251 
2254 
2258 
2260 typedef enum
2261 {
2264 }CtrConfigItem;
2265 
2267 typedef enum
2268 {
2271 
2275 }TmrInfoItem;
2276 
2278 typedef enum
2279 {
2283 
2288 
2292 typedef enum
2293 {
2297 
2301 
2305 
2308 }DaqIInfoItem;
2309 
2313 typedef enum
2314 {
2317 
2320 
2324 
2328 typedef enum
2329 {
2332 
2335 
2338 
2341 }DaqOInfoItem;
2342 
2346 typedef enum
2347 {
2350 
2353 
2357 
2363 {
2366 
2368  unsigned int address;
2369 
2371  unsigned int size;
2372 
2375 
2377  char reserved[64];
2378 };
2379 
2382 
2397 UlError ulGetDaqDeviceInventory(DaqDeviceInterface interfaceTypes, DaqDeviceDescriptor daqDevDescriptors[], unsigned int* numDescriptors );
2398 
2410 UlError ulGetNetDaqDeviceDescriptor(const char* host, unsigned short port, const char* ifcName, DaqDeviceDescriptor* daqDevDescriptor, double timeout);
2411 
2417 DaqDeviceHandle ulCreateDaqDevice(DaqDeviceDescriptor daqDevDescriptor);
2418 
2426 UlError ulGetDaqDeviceDescriptor(DaqDeviceHandle daqDeviceHandle, DaqDeviceDescriptor* daqDeviceDescriptor);
2427 
2433 UlError ulConnectDaqDevice(DaqDeviceHandle daqDeviceHandle);
2434 
2440 UlError ulDisconnectDaqDevice(DaqDeviceHandle daqDeviceHandle);
2441 
2447 UlError ulReleaseDaqDevice(DaqDeviceHandle daqDeviceHandle);
2448 
2455 UlError ulIsDaqDeviceConnected(DaqDeviceHandle daqDeviceHandle, int* connected);
2456 
2463 UlError ulDaqDeviceConnectionCode(DaqDeviceHandle daqDeviceHandle, long long code);
2464 
2465 
2475 UlError ulFlashLed(DaqDeviceHandle daqDeviceHandle, int flashCount);
2476 
2493 UlError ulAIn(DaqDeviceHandle daqDeviceHandle, int channel, AiInputMode inputMode, Range range, AInFlag flags, double* data);
2494 
2509 UlError ulAInScan(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, AiInputMode inputMode, Range range, int samplesPerChan, double* rate, ScanOption options, AInScanFlag flags, double data[]);
2510 
2519 UlError ulAInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
2520 
2526 UlError ulAInScanStop(DaqDeviceHandle daqDeviceHandle);
2527 
2536 UlError ulAInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
2537 
2545 UlError ulAInLoadQueue(DaqDeviceHandle daqDeviceHandle, AiQueueElement queue[], unsigned int numElements);
2546 
2561 UlError ulAInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount);
2562 
2572 UlError ulTIn(DaqDeviceHandle daqDeviceHandle, int channel, TempScale scale, TInFlag flags, double* data);
2573 
2585 UlError ulTInArray(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, TempScale scale, TInArrayFlag flags, double data[]);
2586 
2604 UlError ulAOut(DaqDeviceHandle daqDeviceHandle, int channel, Range range, AOutFlag flags, double data);
2605 
2616 UlError ulAOutArray(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, Range range[], AOutArrayFlag flags, double data[]);
2617 
2631 UlError ulAOutScan(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, Range range, int samplesPerChan, double* rate, ScanOption options, AOutScanFlag flags, double data[]);
2632 
2641 UlError ulAOutScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
2642 
2651 UlError ulAOutScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
2652 
2658 UlError ulAOutScanStop(DaqDeviceHandle daqDeviceHandle);
2659 
2674 UlError ulAOutSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount);
2675 
2691 UlError ulDConfigPort(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, DigitalDirection direction);
2692 
2701 UlError ulDConfigBit(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, int bitNum, DigitalDirection direction);
2702 
2710 UlError ulDIn(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, unsigned long long* data);
2711 
2719 UlError ulDOut(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, unsigned long long data);
2720 
2729 UlError ulDInArray(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, unsigned long long data[]);
2730 
2739 UlError ulDOutArray(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, unsigned long long data[]);
2740 
2749 UlError ulDBitIn(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, int bitNum, unsigned int* bitValue);
2750 
2759 UlError ulDBitOut(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, int bitNum, unsigned int bitValue);
2760 
2773 UlError ulDInScan(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, int samplesPerPort, double* rate, ScanOption options, DInScanFlag flags, unsigned long long data[]);
2774 
2783 UlError ulDInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
2784 
2790 UlError ulDInScanStop(DaqDeviceHandle daqDeviceHandle);
2791 
2800 UlError ulDInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
2801 
2816 UlError ulDInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount);
2817 
2829 UlError ulDOutScan(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, int samplesPerPort, double* rate, ScanOption options, DOutScanFlag flags, unsigned long long data[]);
2830 
2838 UlError ulDOutScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
2839 
2845 UlError ulDOutScanStop(DaqDeviceHandle daqDeviceHandle);
2846 
2855 UlError ulDOutScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
2856 
2871 UlError ulDOutSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount);
2872 
2880 UlError ulDClearAlarm(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, unsigned long long mask);
2881 
2897 UlError ulCIn(DaqDeviceHandle daqDeviceHandle, int counterNum, unsigned long long* data);
2898 
2907 UlError ulCRead(DaqDeviceHandle daqDeviceHandle, int counterNum, CounterRegisterType regType, unsigned long long* data);
2908 
2917 UlError ulCLoad(DaqDeviceHandle daqDeviceHandle, int counterNum, CounterRegisterType registerType, unsigned long long loadValue);
2918 
2925 UlError ulCClear(DaqDeviceHandle daqDeviceHandle, int counterNum);
2926 
2940 UlError ulCConfigScan(DaqDeviceHandle daqDeviceHandle, int counterNum, CounterMeasurementType type, CounterMeasurementMode mode,
2941  CounterEdgeDetection edgeDetection, CounterTickSize tickSize,
2942  CounterDebounceMode debounceMode, CounterDebounceTime debounceTime, CConfigScanFlag flags);
2943 
2956 UlError ulCInScan(DaqDeviceHandle daqDeviceHandle, int lowCounterNum, int highCounterNum, int samplesPerCounter, double* rate, ScanOption options, CInScanFlag flags, unsigned long long data[]);
2957 
2972 UlError ulCInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount);
2973 
2982 UlError ulCInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
2983 
2989 UlError ulCInScanStop(DaqDeviceHandle daqDeviceHandle);
2990 
2999 UlError ulCInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
3000 
3021 UlError ulTmrPulseOutStart(DaqDeviceHandle daqDeviceHandle, int timerNum, double* frequency, double* dutyCycle, unsigned long long pulseCount, double* initialDelay, TmrIdleState idleState, PulseOutOption options);
3022 
3029 UlError ulTmrPulseOutStop(DaqDeviceHandle daqDeviceHandle, int timerNum);
3030 
3038 UlError ulTmrPulseOutStatus(DaqDeviceHandle daqDeviceHandle, int timerNum, TmrStatus* status);
3039 
3050 UlError ulTmrSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount);
3051 
3074 UlError ulDaqInScan(DaqDeviceHandle daqDeviceHandle, DaqInChanDescriptor chanDescriptors[], int numChans, int samplesPerChan, double* rate, ScanOption options, DaqInScanFlag flags, double data[]);
3075 
3084 UlError ulDaqInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
3085 
3091 UlError ulDaqInScanStop(DaqDeviceHandle daqDeviceHandle);
3092 
3101 UlError ulDaqInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
3102 
3116 UlError ulDaqInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, DaqInChanDescriptor trigChanDescriptor, double level, double variance, unsigned int retriggerSampleCount);
3117 
3132 UlError ulDaqOutScan(DaqDeviceHandle daqDeviceHandle, DaqOutChanDescriptor chanDescriptors[], int numChans, int samplesPerChan, double* rate, ScanOption options, DaqOutScanFlag flags, double data[]);
3133 
3142 UlError ulDaqOutScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus* status, TransferStatus* xferStatus);
3143 
3149 UlError ulDaqOutScanStop(DaqDeviceHandle daqDeviceHandle);
3150 
3159 UlError ulDaqOutScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout);
3160 
3174 UlError ulDaqOutSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, DaqInChanDescriptor trigChanDescriptor, double level, double variance, unsigned int retriggerSampleCount);
3175 
3194 UlError ulEnableEvent(DaqDeviceHandle daqDeviceHandle, DaqEventType eventTypes, unsigned long long eventParameter, DaqEventCallback eventCallbackFunction, void* userData);
3195 
3202 UlError ulDisableEvent(DaqDeviceHandle daqDeviceHandle, DaqEventType eventTypes);
3203 
3213 UlError ulMemRead(DaqDeviceHandle daqDeviceHandle, MemRegion memRegion, unsigned int address, unsigned char* buffer, unsigned int count);
3214 
3225 UlError ulMemWrite(DaqDeviceHandle daqDeviceHandle, MemRegion memRegion, unsigned int address, unsigned char* buffer, unsigned int count);
3226 
3234 UlError ulGetErrMsg(UlError errCode, char errMsg[ERR_MSG_LEN]);
3235 
3244 #ifndef doxy_skip
3245 
3253 UlError ulGetInfoStr(UlInfoItemStr infoItem, unsigned int index, char* infoStr, unsigned int* maxConfigLen);
3254 
3255 
3263 UlError ulSetConfig(UlConfigItem configItem, unsigned int index, long long configValue);
3264 
3265 
3273 UlError ulGetConfig(UlConfigItem configItem, unsigned int index, long long* configValue);
3274 #endif /* doxy_skip */
3275 
3284 UlError ulDevGetInfo(DaqDeviceHandle daqDeviceHandle, DevInfoItem infoItem, unsigned int index, long long* infoValue);
3285 
3294 UlError ulDevSetConfig(DaqDeviceHandle daqDeviceHandle, DevConfigItem configItem, unsigned int index, long long configValue);
3295 
3304 UlError ulDevGetConfig(DaqDeviceHandle daqDeviceHandle, DevConfigItem configItem, unsigned int index, long long* configValue);
3305 
3316 UlError ulDevGetConfigStr(DaqDeviceHandle daqDeviceHandle, DevConfigItemStr configItem, unsigned int index, char* configStr, unsigned int* maxConfigLen);
3317 
3331 UlError ulAIGetInfo(DaqDeviceHandle daqDeviceHandle, AiInfoItem infoItem, unsigned int index, long long* infoValue);
3332 
3343 UlError ulAIGetInfoDbl(DaqDeviceHandle daqDeviceHandle, AiInfoItemDbl infoItem, unsigned int index, double* infoValue);
3344 
3354 UlError ulAISetConfig(DaqDeviceHandle daqDeviceHandle, AiConfigItem configItem, unsigned int index, long long configValue);
3355 
3365 UlError ulAIGetConfig(DaqDeviceHandle daqDeviceHandle, AiConfigItem configItem, unsigned int index, long long* configValue);
3366 
3376 UlError ulAISetConfigDbl(DaqDeviceHandle daqDeviceHandle, AiConfigItemDbl configItem, unsigned int index, double configValue);
3377 
3387 UlError ulAIGetConfigDbl(DaqDeviceHandle daqDeviceHandle, AiConfigItemDbl configItem, unsigned int index, double* configValue);
3388 
3399 UlError ulAIGetConfigStr(DaqDeviceHandle daqDeviceHandle, AiConfigItemStr configItem, unsigned int index, char* configStr, unsigned int* maxConfigLen);
3400 
3410 UlError ulAOGetInfo(DaqDeviceHandle daqDeviceHandle, AoInfoItem infoItem, unsigned int index, long long* infoValue);
3411 
3421 UlError ulAOGetInfoDbl(DaqDeviceHandle daqDeviceHandle, AoInfoItemDbl infoItem, unsigned int index, double* infoValue);
3422 
3432 UlError ulAOSetConfig(DaqDeviceHandle daqDeviceHandle, AoConfigItem configItem, unsigned int index, long long configValue);
3433 
3443 UlError ulAOGetConfig(DaqDeviceHandle daqDeviceHandle, AoConfigItem configItem, unsigned int index, long long* configValue);
3444 
3455 UlError ulDIOGetInfo(DaqDeviceHandle daqDeviceHandle, DioInfoItem infoItem, unsigned int index, long long* infoValue);
3456 
3466 UlError ulDIOGetInfoDbl(DaqDeviceHandle daqDeviceHandle, DioInfoItemDbl infoItem, unsigned int index, double* infoValue);
3467 
3477 UlError ulDIOSetConfig(DaqDeviceHandle daqDeviceHandle, DioConfigItem configItem, unsigned int index, long long configValue);
3478 
3488 UlError ulDIOGetConfig(DaqDeviceHandle daqDeviceHandle, DioConfigItem configItem, unsigned int index, long long* configValue);
3489 
3499 UlError ulCtrGetInfo(DaqDeviceHandle daqDeviceHandle, CtrInfoItem infoItem, unsigned int index, long long* infoValue);
3500 
3510 UlError ulCtrGetInfoDbl(DaqDeviceHandle daqDeviceHandle, CtrInfoItemDbl infoItem, unsigned int index, double* infoValue);
3511 
3521 UlError ulCtrGetConfig(DaqDeviceHandle daqDeviceHandle, CtrConfigItem configItem, unsigned int index, long long* configValue);
3522 
3532 UlError ulCtrSetConfig(DaqDeviceHandle daqDeviceHandle, CtrConfigItem configItem, unsigned int index, long long configValue);
3533 
3543 UlError ulTmrGetInfo(DaqDeviceHandle daqDeviceHandle, TmrInfoItem infoItem, unsigned int index, long long* infoValue);
3544 
3554 UlError ulTmrGetInfoDbl(DaqDeviceHandle daqDeviceHandle, TmrInfoItemDbl infoItem, unsigned int index, double* infoValue);
3555 
3565 UlError ulDaqIGetInfo(DaqDeviceHandle daqDeviceHandle, DaqIInfoItem infoItem, unsigned int index, long long* infoValue);
3566 
3576 UlError ulDaqIGetInfoDbl(DaqDeviceHandle daqDeviceHandle, DaqIInfoItemDbl infoItem, unsigned int index, double* infoValue);
3577 
3587 UlError ulDaqOGetInfo(DaqDeviceHandle daqDeviceHandle, DaqOInfoItem infoItem, unsigned int index, long long* infoValue);
3588 
3598 UlError ulDaqOGetInfoDbl(DaqDeviceHandle daqDeviceHandle, DaqOInfoItemDbl infoItem, unsigned int index, double* infoValue);
3599 
3609 UlError ulMemGetInfo(DaqDeviceHandle daqDeviceHandle, MemRegion memRegion, MemDescriptor* memDescriptor);
3610 
3611 #ifndef doxy_skip
3612 
3618 DaqDeviceHandle ulCreateDaqDevicePtr(DaqDeviceDescriptor* daqDevDescriptor);
3619 
3620 #endif /* doxy_skip */
3621 
3622 #ifdef __cplusplus
3623 }
3624 #endif
3625 
3626 #endif /* UL_DAQ_H_ */
The calibration table type.
Definition: uldaq.h:2017
Configures the counter to decrement by the signal on the mapped channel for the CMT_COUNT measurement...
Definition: uldaq.h:1467
Returns the IP address of the Ethernet DAQ device.
Definition: uldaq.h:1865
Placeholder value.
Definition: uldaq.h:1194
Returns a bitmask of AiChanQueueLimitation values to the infoValue argument that apply to the queue...
Definition: uldaq.h:1942
UlError ulAOGetConfig(DaqDeviceHandle daqDeviceHandle, AoConfigItem configItem, unsigned int index, long long *configValue)
Use with AoConfigItem to retrieve configuration options set for a device.
FirstPortA.
Definition: uldaq.h:819
UlError ulDConfigPort(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, DigitalDirection direction)
Configures a digital port as input or output.
UlError ulAOutScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
Returns the status, count, and index of a D/A scan operation.
2-wire with a single sensor per differential channel pair
Definition: uldaq.h:500
UlError ulAInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
Returns the status, count, and index of an A/D scan operation.
SensorConnectionType
Sensor connection types.
Definition: uldaq.h:497
unsigned int size
A numeric value that specifies the size of the memory area at the specified address.
Definition: uldaq.h:2371
Scaled data is supplied and calibration factors are applied to output.
Definition: uldaq.h:1181
DigitalDirection
Used with ulDConfigPort() and ulDConfigBit() as the direction argument value.
Definition: uldaq.h:938
Data for analog channels is returned in native format, without scaling applied.
Definition: uldaq.h:1304
TempUnit
Temperature units.
Definition: uldaq.h:660
Encoder measurement.
Definition: uldaq.h:1349
AC coupling.
Definition: uldaq.h:738
Volts.
Definition: uldaq.h:685
AiInputMode
A/D channel input modes.
Definition: uldaq.h:429
4-wire with a single sensor per differential channel pair
Definition: uldaq.h:509
Returns a zero or non-zero value to the infoValue argument.
Definition: uldaq.h:1913
UlError ulDIOSetConfig(DaqDeviceHandle daqDeviceHandle, DioConfigItem configItem, unsigned int index, long long configValue)
Use with DioConfigItem to retrieve information about the DIO subsystem.
-.1 to +.1 Volts
Definition: uldaq.h:566
char reserved[64]
Reserved for future use.
Definition: uldaq.h:1084
Thermocouple.
Definition: uldaq.h:453
No error has occurred.
Definition: uldaq.h:98
UlError ulFlashLed(DaqDeviceHandle daqDeviceHandle, int flashCount)
Causes the LED on a DAQ device to flash.
Invalid analog input channel specified.
Definition: uldaq.h:140
Bitwise configurable.
Definition: uldaq.h:931
FirstPortC.
Definition: uldaq.h:825
Invalid configuration value.
Definition: uldaq.h:173
UlError ulAOutScan(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, Range range, int samplesPerChan, double *rate, ScanOption options, AOutScanFlag flags, double data[])
Writes values to a range of D/A channels.
Falling edge.
Definition: uldaq.h:1562
Sets the tick size to 2083.3 ns.
Definition: uldaq.h:1577
CounterMeasurementMode
Use as the value for the mode argument for ulCConfigScan().
Definition: uldaq.h:1353
AOutSenseMode
Use with AoConfigItem to set configuration options at runtime.
Definition: uldaq.h:1250
DaqDeviceInterface devInterface
The enumeration indicating the type of interface in use by the device referenced by the DaqDeviceDesc...
Definition: uldaq.h:47
AiInputMode inputMode
The input mode to use for the specified channel for the queue element.
Definition: uldaq.h:1078
Enables or disables the internal timebase output on a DAQ device.
Definition: uldaq.h:1147
UlError ulDaqOGetInfoDbl(DaqDeviceHandle daqDeviceHandle, DaqOInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with DaqOInfoItemDbl to retrieve information about the synchronous output subsystem.
Returns the channel coefficients used for the configured sensor.
Definition: uldaq.h:2056
Wait for new data before returning.
Definition: uldaq.h:1207
UlError ulAInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulAInScan() is called with the SO_RETRIGGER ...
AuxPort.
Definition: uldaq.h:807
Sets up the counter as a 32-bit counter channel.
Definition: uldaq.h:1271
Returns the maximum scan rate to the infoValue argument for the specified digital direction...
Definition: uldaq.h:2172
A digital pattern trigger.
Definition: uldaq.h:1059
Returns a bitmask of supported CounterMeasurementMode values compatible with the CounterMeasurementTy...
Definition: uldaq.h:2219
Rising edge.
Definition: uldaq.h:1559
The sense mode for the specified channel.
Definition: uldaq.h:2115
A structure that defines an input channel and its properties.
Definition: uldaq.h:1656
CounterTickSize
Use as the value for the tickSize argument for ulCConfigScan() when CounterDebounceMode is CMT_PERIOD...
Definition: uldaq.h:1568
MemAccessType accessTypes
A bitmask indicating the access rights to the memory at the specified address (read, write, or both).
Definition: uldaq.h:2374
Range range
The range to be used for the specified channel; ignored if not analog.
Definition: uldaq.h:1699
The register that sets the count value at which the counter output will reset to its original state...
Definition: uldaq.h:1622
Maximum offset value reached.
Definition: uldaq.h:245
Data for analog channels is returned without calibration factors applied.
Definition: uldaq.h:1307
Returns a bitmask of supported TriggerType values to the infoValue argument.
Definition: uldaq.h:2304
DaqDeviceHandle ulCreateDaqDevice(DaqDeviceDescriptor daqDevDescriptor)
Create a device object within the Universal Library for the DAQ device specified by the descriptor...
Invalid edge detection mode specified.
Definition: uldaq.h:308
DaqOutChanType
A bitmask used with synchronous output scanning operations as a field in the DaqOutChanDescriptor str...
Definition: uldaq.h:1676
DAQI_CTR64.
Definition: uldaq.h:1649
Configures the counter for default counting modes for the CMT_COUNT measurement type.
Definition: uldaq.h:1356
AoConfigItem
Use with ulAOSetConfig() and ulAOGetConfig() to configure the AO subsystem.
Definition: uldaq.h:2109
Invalid memory region.
Definition: uldaq.h:134
Invalid thermocouple type specified.
Definition: uldaq.h:182
UlError ulDaqDeviceConnectionCode(DaqDeviceHandle daqDeviceHandle, long long code)
Specifies connection code of a DAQ device.
Field calibration table.
Definition: uldaq.h:789
Fahrenheit.
Definition: uldaq.h:679
Scanning is enabled as long as the external analog trigger is outside the region defined by the level...
Definition: uldaq.h:1041
Memory access denied.
Definition: uldaq.h:335
FPGA version installed on the current device is returned to the configStr argument.
Definition: uldaq.h:1878
Invalid trigger level specified.
Definition: uldaq.h:365
No trigger type.
Definition: uldaq.h:986
-0.125 to +0.125 Volts
Definition: uldaq.h:560
FPGA not loaded.
Definition: uldaq.h:230
EighthPortA.
Definition: uldaq.h:906
UlError ulTInArray(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, TempScale scale, TInArrayFlag flags, double data[])
Scans a range of A/D temperature channels, and stores the samples in an array.
UlError ulAInScan(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, AiInputMode inputMode, Range range, int samplesPerChan, double *rate, ScanOption options, AInScanFlag flags, double data[])
Scans a range of A/D channels, and stores the samples in an array.
TmrInfoItemDbl
Use with ulTmrGetInfoDbl() to obtain information about the timer subsystem for the specified device a...
Definition: uldaq.h:2278
Returns a non-zero value to infoValue if paced digital operation (scanning) is supported.
Definition: uldaq.h:2145
Firmware version installed on the current device is returned to the configStr argument.
Definition: uldaq.h:1875
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1498
Invalid gain queue specified.
Definition: uldaq.h:218
UlError ulDBitOut(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, int bitNum, unsigned int bitValue)
Writes a value to a digital bit.
FIFO overrun, data was not transferred from device fast enough.
Definition: uldaq.h:152
Output.
Definition: uldaq.h:944
PulseOutOption
Used with ulTmrPulseOutStart() as the options argument value to set advanced options for the specifie...
Definition: uldaq.h:1709
The connection type of the sensor connected to the specified channel.
Definition: uldaq.h:2008
The timer is currently running.
Definition: uldaq.h:974
UlError ulAOutScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
Common-mode voltage range exceeded.
Definition: uldaq.h:419
Analog input channel, differential mode.
Definition: uldaq.h:1631
TmrIdleState
Timer idle state.
Definition: uldaq.h:958
DaqIInfoItemDbl
Use with ulDaqIGetInfoDbl() to obtain information about the DAQ input subsystem for the specified dev...
Definition: uldaq.h:2313
Returns the maximum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2253
-.312 to +.312 Volts
Definition: uldaq.h:584
Data conversions are controlled by an external clock signal.
Definition: uldaq.h:1129
Operation timed out.
Definition: uldaq.h:158
MemAccessType
A bitmask used with ulMemGetInfo() as one of the field types returned in the MemDescriptor struct...
Definition: uldaq.h:1772
Invalid tick size specified.
Definition: uldaq.h:311
Input.
Definition: uldaq.h:941
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1538
Invalid number of channels specified.
Definition: uldaq.h:290
Indicates write access for the location specified by the memRegion argument.
Definition: uldaq.h:1778
IEPE excitation current is enabled.
Definition: uldaq.h:728
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1514
AOutArrayFlag
Use as the flags argument value for ulAOutArray() to set the properties of data supplied to the funct...
Definition: uldaq.h:1224
Invalid range.
Definition: uldaq.h:137
Returns the FIFO size in bytes to the infoValue argument.
Definition: uldaq.h:2307
EighthPortC Low.
Definition: uldaq.h:912
Programmable frequency timer, plus other attributes such as pulse width.
Definition: uldaq.h:954
Incompatible firmware version, firmware update required.
Definition: uldaq.h:377
The sync mode.
Definition: uldaq.h:2112
No PulseOut options are applied.
Definition: uldaq.h:1712
Defines an event trigger condition that occurs when an input scan error occurs.
Definition: uldaq.h:1739
-10 to +10 Volts
Definition: uldaq.h:530
Data is supplied in native format (usually, values ranging from 0 to 2resolution - 1)...
Definition: uldaq.h:1230
AiCalTableType
Analog input calibration table types.
Definition: uldaq.h:783
DaqEventType
A bitmask defining the types of conditions that trigger an event.
Definition: uldaq.h:1728
CounterRegisterType
Used for the ulCLoad() registerType argument, and as the value returned by ulCtrGetInfo() for the CTR...
Definition: uldaq.h:1604
Pulsewidth measurement.
Definition: uldaq.h:1341
UlError ulConnectDaqDevice(DaqDeviceHandle daqDeviceHandle)
Establish a connection to a physical DAQ device.
Returns a DigitalPortIoType value to the infoValue argument indicating the input, output...
Definition: uldaq.h:2134
Returns a bitmask of supported ScanOption values to the infoValue argument.
Definition: uldaq.h:2334
Invalid memory type.
Definition: uldaq.h:131
UlError ulTmrPulseOutStart(DaqDeviceHandle daqDeviceHandle, int timerNum, double *frequency, double *dutyCycle, unsigned long long pulseCount, double *initialDelay, TmrIdleState idleState, PulseOutOption options)
Starts a timer to generate digital pulses at a specified frequency and duty cycle.
Data is returned in native format, without scaling applied.
Definition: uldaq.h:1158
UlError ulDIOGetInfoDbl(DaqDeviceHandle daqDeviceHandle, DioInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with DioInfoItemDbl to retrieve information about the DIO subsystem.
FifthPortB.
Definition: uldaq.h:873
UlError ulAIGetConfigStr(DaqDeviceHandle daqDeviceHandle, AiConfigItemStr configItem, unsigned int index, char *configStr, unsigned int *maxConfigLen)
Use with AiConfigItemStr to retrieve configuration options as a null-terminated string.
Load register.
Definition: uldaq.h:1610
Returns a bitmask of supported TriggerType values to the infoValue argument.
Definition: uldaq.h:2088
UlError ulDClearAlarm(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, unsigned long long mask)
Clears the alarm state for specified bits when alarms are configured to latch.
TInFlag
Use as the flags argument value for ulTIn() to set the properties of data returned; reserved for futu...
Definition: uldaq.h:1191
UlError ulMemWrite(DaqDeviceHandle daqDeviceHandle, MemRegion memRegion, unsigned int address, unsigned char *buffer, unsigned int count)
Writes a value to a specified region in memory.
UlError ulCIn(DaqDeviceHandle daqDeviceHandle, int counterNum, unsigned long long *data)
Reads the value of a count register.
DaqOutChanType type
The type of the specified channel, such as analog or digital.
Definition: uldaq.h:1696
SixthPortC High.
Definition: uldaq.h:891
Fixed output port.
Definition: uldaq.h:925
AiChanQueueLimitation
Device queue limitations.
Definition: uldaq.h:770
FifthPortA.
Definition: uldaq.h:870
Returns a bitmask of supported ScanOption values to the infoValue argument.
Definition: uldaq.h:1910
Returns the minimum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:1957
UlError ulTmrPulseOutStatus(DaqDeviceHandle daqDeviceHandle, int timerNum, TmrStatus *status)
The status of the timer output operation, if supported.
Returns a non-zero value to infoValue if synchronous output is supported.
Definition: uldaq.h:1826
A digital gate.
Definition: uldaq.h:1004
A digital pattern trigger.
Definition: uldaq.h:1053
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1510
Returns the number of analog output ranges supported to the infoValue argument.
Definition: uldaq.h:2081
DioConfigItem
Use with ulDIOGetConfig() and/or ulDIOSetConfig() as a configItem argument value to get the current c...
Definition: uldaq.h:2182
No scale (Raw)
Definition: uldaq.h:688
Returns the minimum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2349
Bluetooth interface.
Definition: uldaq.h:24
An event handler has already been enabled for this event type.
Definition: uldaq.h:323
Configures the counter output to go high when the counter reaches the value of output register 0 for ...
Definition: uldaq.h:1378
Data is returned with scaling and calibration factors applied to analog channel data.
Definition: uldaq.h:1301
UlError ulAOGetInfo(DaqDeviceHandle daqDeviceHandle, AoInfoItem infoItem, unsigned int index, long long *infoValue)
Use with AoInfoItem to retrieve information about the AO subsystem.
-5 to +5 Volts
Definition: uldaq.h:533
Sets the tick size to 20.83 ns.
Definition: uldaq.h:1571
char reserved[64]
Reserved for future use.
Definition: uldaq.h:86
Kelvin.
Definition: uldaq.h:682
0 to 20 Milliamps
Definition: uldaq.h:656
AInFlag
Use as the flags argument value for ulAIn() to set the properties of data returned.
Definition: uldaq.h:1165
Invalid DAQ input channel type specified.
Definition: uldaq.h:287
void(* DaqEventCallback)(DaqDeviceHandle, DaqEventType, unsigned long long, void *)
The callback function called in response to an event condition.
Definition: uldaq.h:1782
Invalid channel order.
Definition: uldaq.h:368
AoInfoItem
Use with ulAOGetInfo() to obtain information about the analog output subsystem for the specified devi...
Definition: uldaq.h:2066
Maximum slope value reached.
Definition: uldaq.h:239
UlError ulDOutScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
Returns the status of the digital output operation.
SeventhPortB.
Definition: uldaq.h:897
Latches the counter measurement each time 100 complete periods are observed for the CMT_PERIOD measur...
Definition: uldaq.h:1408
UlError ulCInScan(DaqDeviceHandle daqDeviceHandle, int lowCounterNum, int highCounterNum, int samplesPerCounter, double *rate, ScanOption options, CInScanFlag flags, unsigned long long data[])
Reads a range of counter channels.
Counter register.
Definition: uldaq.h:1607
Invalid IEPE mode.
Definition: uldaq.h:212
CounterDebounceTime
Use as the value for the debounceTime argument for ulCConfigScan() when CounterDebounceMode is not CD...
Definition: uldaq.h:1471
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1486
AuxPort0.
Definition: uldaq.h:810
Sample count cannot be greater than FIFO size for BURSTIO scans.
Definition: uldaq.h:167
Data is returned in native format, without scaling applied.
Definition: uldaq.h:1171
Radio firmware version installed on the current device is returned to the configStr argument...
Definition: uldaq.h:1881
TmrStatus
Used with ulTmrPulseOutStatus() as the status argument value returned (if supported) for the specifie...
Definition: uldaq.h:968
ScanOption
Used with many analog input and output functions, as well as a return value for the infoValue argumen...
Definition: uldaq.h:1110
An analog trigger.
Definition: uldaq.h:1012
Returns a bitmask of supported TriggerType values to the infoValue argument for the specified digital...
Definition: uldaq.h:2156
One or more bits on the specified port are used for alarm.
Definition: uldaq.h:413
Unhandled internal exception.
Definition: uldaq.h:101
DaqOInfoItemDbl
Use with ulDaqOGetInfoDbl() to obtain information about the DAQ output subsystem for the specified de...
Definition: uldaq.h:2346
Data socket connection failed.
Definition: uldaq.h:410
Returns a bitmask of supported DaqInChanType values to the infoValue argument.
Definition: uldaq.h:2296
The rejection frequency type.
Definition: uldaq.h:2020
Returns a bitmask of supported TriggerType values to the infoValue argument.
Definition: uldaq.h:2238
Configures the counter to increment when the gate pin is high, and decrement when the gate pin is low...
Definition: uldaq.h:1366
Invalid port type specified.
Definition: uldaq.h:248
Scaled data is supplied and calibration factors are applied to output.
Definition: uldaq.h:1214
long long currentIndex
This marks the location in the buffer where the last scan of data values are stored.
Definition: uldaq.h:83
FirstPortC Low.
Definition: uldaq.h:828
0 to +30 Volts
Definition: uldaq.h:596
A digital gate.
Definition: uldaq.h:1007
The AI subsystem supports a gain queue.
Definition: uldaq.h:758
UlError ulDConfigBit(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, int bitNum, DigitalDirection direction)
Configures a digital bit as input or output.
Returns the maximum throughput to the infoValue argument for the specified digital direction...
Definition: uldaq.h:2176
Sets the encoder measurement mode to X4 for the CMT_ENCODER measurement type.
Definition: uldaq.h:1441
-2.0 to +2.0 Volts
Definition: uldaq.h:542
Counters are not cleared (set to 0) when a scan starts.
Definition: uldaq.h:1310
Receive the D/A Load signal from an external source.
Definition: uldaq.h:1243
ThirdPortA.
Definition: uldaq.h:846
An analog trigger.
Definition: uldaq.h:1025
UlError ulGetNetDaqDeviceDescriptor(const char *host, unsigned short port, const char *ifcName, DaqDeviceDescriptor *daqDevDescriptor, double timeout)
Get the descriptor of the remote network DAQ device.
Type K.
Definition: uldaq.h:475
UlError ulDaqOGetInfo(DaqDeviceHandle daqDeviceHandle, DaqOInfoItem infoItem, unsigned int index, long long *infoValue)
Use with DaqOInfoItem to retrieve information about the synchronous output subsystem.
Configures the counter to restart when a clear or load operation is performed, or the count direction...
Definition: uldaq.h:1385
Returns a bitmask of supported AiChanType values to the infoValue argument.
Definition: uldaq.h:1907
Returns the minimum throughput to the infoValue argument.
Definition: uldaq.h:2322
Invalid duty cycle specified.
Definition: uldaq.h:275
Data for analog channels is output without calibration factors applied.
Definition: uldaq.h:1323
Returns the FIFO size in bytes to the infoValue argument.
Definition: uldaq.h:1945
Returns a non-zero value to infoValue if digital I/O is supported; otherwise, returns zero...
Definition: uldaq.h:1814
Measurement firmware version installed on the current device is returned to the configStr argument...
Definition: uldaq.h:1884
Latches the counter measurement each time 1 complete period is observed for the CMT_PERIOD measuremen...
Definition: uldaq.h:1402
Returns the name of the network interface which is used to connect to the Ethernet DAQ device...
Definition: uldaq.h:1868
Fixed input port.
Definition: uldaq.h:922
Invalid info item specified.
Definition: uldaq.h:194
UlError ulDaqInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, DaqInChanDescriptor trigChanDescriptor, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulDaqInScan() is called with the SO_RETRIGGE...
Invalid frequency specified.
Definition: uldaq.h:272
DigitalPortIoType
Used with ulDIOGetInfo() as the infoValue argument value when used with DIO_INFO_PORT_IO_TYPE.
Definition: uldaq.h:919
FirstPortC High.
Definition: uldaq.h:831
Returns the maximum throughput in samples per second to the infoValue argument.
Definition: uldaq.h:2256
Network interface used to obtain the device descriptor not available or disconnected.
Definition: uldaq.h:389
AiConfigItemStr
Use with ulAIGetConfigStr() as a configItem argument value to get the current analog input configurat...
Definition: uldaq.h:2049
Returns a zero or non-zero value to the infoValue argument.
Definition: uldaq.h:2230
-1.25 to +1.25 Volts
Definition: uldaq.h:545
Invalid option specified.
Definition: uldaq.h:161
Returns the maximum throughput in samples per second to the infoValue argument.
Definition: uldaq.h:2355
Standard scan properties.
Definition: uldaq.h:1287
Invalid analog output channel specified.
Definition: uldaq.h:263
Invalid bit number.
Definition: uldaq.h:254
Type S.
Definition: uldaq.h:487
Invalid counter measurement type specified.
Definition: uldaq.h:296
TempScale
Temperature units.
Definition: uldaq.h:673
Type T.
Definition: uldaq.h:478
Counter measurement.
Definition: uldaq.h:1332
Defines an event trigger condition that occurs when a specified number of samples are available...
Definition: uldaq.h:1736
Returns a bitmask of supported ScanOption values to the infoValue argument for the specified digital ...
Definition: uldaq.h:2151
Returns the total number of A/D channels to the infoValue argument.
Definition: uldaq.h:1898
UlError ulDaqOutScan(DaqDeviceHandle daqDeviceHandle, DaqOutChanDescriptor chanDescriptors[], int numChans, int samplesPerChan, double *rate, ScanOption options, DaqOutScanFlag flags, double data[])
Outputs values synchronously to analog output channels and digital output ports.
Returns the FIFO size in bytes to the infoValue argument.
Definition: uldaq.h:2091
UlError ulDaqOutScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
UlError ulDInArray(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, unsigned long long data[])
Reads the specified digital ports, and Returns the data in an array.
Semiconductor.
Definition: uldaq.h:462
UlError ulAOutSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulAOutScan() is called with the SO_RETRIGGER...
0 to +2.5 Volts
Definition: uldaq.h:614
UlError ulTmrGetInfoDbl(DaqDeviceHandle daqDeviceHandle, TmrInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with TmrInfoItemDbl to retrieve information about the timer subsystem.
The counter is incremented on the first edge at the counter input, then waits for a stable period of ...
Definition: uldaq.h:1552
DaqOInfoItem
Use with ulDaqOGetInfo() to obtain information about the DAQ output subsystem for the specified devic...
Definition: uldaq.h:2328
DaqInChanType
A bitmask used with synchronous input scanning operations as a field in the DaqInChanDescriptor struc...
Definition: uldaq.h:1628
0 to +1 Volts
Definition: uldaq.h:623
Placeholder value.
Definition: uldaq.h:1599
#define ERR_MSG_LEN
Definition: uldaq.h:92
UlError ulCtrGetInfoDbl(DaqDeviceHandle daqDeviceHandle, CtrInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with CtrInfoItemDbl to retrieve information about the counter subsystem.
Enables upper and lower limits for the CMT_ENCODER measurement type.
Definition: uldaq.h:1454
FourthPortC Low.
Definition: uldaq.h:864
Specifies the data settings region information returned to the MemDescriptor struct.
Definition: uldaq.h:1764
Internal error.
Definition: uldaq.h:203
Invalid initial delay specified.
Definition: uldaq.h:278
SixthPortA.
Definition: uldaq.h:882
Returns the maximum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2102
Minimum offset value reached.
Definition: uldaq.h:242
Returns a bitmask of supported DaqOutChanType values to the infoValue argument.
Definition: uldaq.h:2331
TimerType
Types of timer channels.
Definition: uldaq.h:948
This function cannot be used with this device.
Definition: uldaq.h:107
Configures the initial state of the counter output pin high for the CMT_COUNT measurement type...
Definition: uldaq.h:1381
0 to +.625 Volts
Definition: uldaq.h:626
UlError ulDevGetInfo(DaqDeviceHandle daqDeviceHandle, DevInfoItem infoItem, unsigned int index, long long *infoValue)
Use with DevInfoItem to retrieve information about the device subsystem to determine which subsystem ...
UlError ulTmrPulseOutStop(DaqDeviceHandle daqDeviceHandle, int timerNum)
Stops a timer output.
An analog trigger.
Definition: uldaq.h:1017
Returns a DigitalPortType value to the infoValue argument indicating the type of the port specified b...
Definition: uldaq.h:2128
AiInfoItem
Use with ulAIGetInfo() to obtain information about the analog input subsystem for the specified devic...
Definition: uldaq.h:1892
Returns the A/D resolution in number of bits to the infoValue argument.
Definition: uldaq.h:1895
Returns the total number of counters to the infoValue argument.
Definition: uldaq.h:2211
Returns the FIFO size in bytes to the infoValue argument.
Definition: uldaq.h:2340
USB interface.
Definition: uldaq.h:21
TInArrayFlag
Use as the flags argument value for ulTInArray() to set the properties of data returned; reserved for...
Definition: uldaq.h:1201
Returns the maximum output frequency to the infoValue argument.
Definition: uldaq.h:2286
An analog trigger.
Definition: uldaq.h:1021
A particular channel number cannot appear more than once in the queue.
Definition: uldaq.h:773
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1490
SeventhPortC Low.
Definition: uldaq.h:900
Returns a value to the infoValue argument indicating the number of bits the specified port has...
Definition: uldaq.h:2140
Bidirectional (input or output) port.
Definition: uldaq.h:928
UlError ulDaqOutScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
Returns the status of a synchronous output operation.
Returns a bitmask of MemRegion values to infoValue, indicating memory regions available.
Definition: uldaq.h:1832
Invalid host specified.
Definition: uldaq.h:383
Inverts the polarity of the gate input for the CMT_TIMING measurement type.
Definition: uldaq.h:1432
Type E.
Definition: uldaq.h:481
Invalid counter specified.
Definition: uldaq.h:281
0 to +5 Volts
Definition: uldaq.h:608
UlError ulDevSetConfig(DaqDeviceHandle daqDeviceHandle, DevConfigItem configItem, unsigned int index, long long configValue)
Use with DevConfigItem to set configuration options at runtime.
DOutScanFlag
Use as the flags argument value for ulDOutScan() to set properties of data sent.
Definition: uldaq.h:1291
UlError ulGetErrMsg(UlError errCode, char errMsg[ERR_MSG_LEN])
Returns the error message associated with an error code.
Transfers A/D data from the FIFO after the scan completes.
Definition: uldaq.h:1123
Specifies the user data region information returned to the MemDescriptor struct.
Definition: uldaq.h:1761
0 to +.1 Volts
Definition: uldaq.h:641
The thermocouple type of the specified channel.
Definition: uldaq.h:1979
Returns a non-zero value to infoValue if timer output is supported; otherwise, returns zero...
Definition: uldaq.h:1820
Period measurement.
Definition: uldaq.h:1336
UlError ulGetDaqDeviceDescriptor(DaqDeviceHandle daqDeviceHandle, DaqDeviceDescriptor *daqDeviceDescriptor)
Get descriptor information for a device.
The custom slope of the specified channel.
Definition: uldaq.h:2035
UlError ulDOutArray(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, unsigned long long data[])
Sets the values of the specified digital ports.
Does not clear the counter to 0 at the start of each scan.
Definition: uldaq.h:1277
Configures the counter to clear when the gate input is high for the CMT_COUNT measurement type...
Definition: uldaq.h:1369
UlError ulDIOGetInfo(DaqDeviceHandle daqDeviceHandle, DioInfoItem infoItem, unsigned int index, long long *infoValue)
Use with DioInfoItem to retrieve information about the DIO subsystem.
Invalid timer specified.
Definition: uldaq.h:269
FIFO underrun, data was not transferred to device fast enough.
Definition: uldaq.h:155
AuxPort2.
Definition: uldaq.h:816
Invalid event parameter specified.
Definition: uldaq.h:326
Sets the tick size to 208.3 ns.
Definition: uldaq.h:1574
Returns the calibration date of expansion board.
Definition: uldaq.h:2060
32-bit counter channel.
Definition: uldaq.h:1643
UlError ulAInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
Defines an event trigger condition that occurs when an output scan error occurs.
Definition: uldaq.h:1746
int channel
The analog input channel number for the queue element.
Definition: uldaq.h:1075
Invalid sensor sensitivity.
Definition: uldaq.h:209
Placeholder value.
Definition: uldaq.h:1204
Enables the counter when the mapped channel or gate pin is high for the CMT_COUNT measurement type...
Definition: uldaq.h:1396
AiConfigItemDbl
Use with ulAISetConfigDbl() and ulAIGetConfigDbl() to configure the AI subsystem. ...
Definition: uldaq.h:2032
Returns the resolution to the infoValue argument.
Definition: uldaq.h:2226
DioInfoItem
Use with ulDIOGetInfo() to obtain information about the DIO subsystem for the specified device as an ...
Definition: uldaq.h:2119
Latches the counter measurement each time 10 complete periods are observed for the CMT_PERIOD measure...
Definition: uldaq.h:1405
0 to +4 Volts
Definition: uldaq.h:611
AiInfoItemDbl
Use with ulAIGetInfoDbl() to obtain information about the analog input subsystem for the specified de...
Definition: uldaq.h:1954
Invalid event type specified.
Definition: uldaq.h:320
Data is output without calibration factors applied.
Definition: uldaq.h:1233
Min Limit register.
Definition: uldaq.h:1616
CouplingMode
Coupling modes.
Definition: uldaq.h:732
Invalid memory address.
Definition: uldaq.h:332
Defines an event trigger condition that occurs upon completion of an output scan operation such as ul...
Definition: uldaq.h:1750
CtrInfoItemDbl
Use with ulCtrGetInfoDbl() to obtain information about the counter subsystem for the specified device...
Definition: uldaq.h:2247
Invalid flag specified.
Definition: uldaq.h:197
Wait for new data before returning.
Definition: uldaq.h:1197
UlError ulAOSetConfig(DaqDeviceHandle daqDeviceHandle, AoConfigItem configItem, unsigned int index, long long configValue)
Use with AoConfigItem to set configuration options at runtime.
This digital operation is not supported on the specified port.
Definition: uldaq.h:347
Channel numbers must be listed in contiguous order within the queue.
Definition: uldaq.h:779
Invalid network buffer.
Definition: uldaq.h:425
UlError ulEnableEvent(DaqDeviceHandle daqDeviceHandle, DaqEventType eventTypes, unsigned long long eventParameter, DaqEventCallback eventCallbackFunction, void *userData)
Binds one or more event conditions to a DaqEventCallback function.
Timing measurement.
Definition: uldaq.h:1346
Returns the calibration date.
Definition: uldaq.h:2053
FPGA file not found.
Definition: uldaq.h:224
The timer is currently idle.
Definition: uldaq.h:971
UlError ulDevGetConfigStr(DaqDeviceHandle daqDeviceHandle, DevConfigItemStr configItem, unsigned int index, char *configStr, unsigned int *maxConfigLen)
Use with DevConfigItemStr to retrieve the current configuration as a null-terminated string...
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1518
ThirdPortB.
Definition: uldaq.h:849
FourthPortC High.
Definition: uldaq.h:867
Invalid digital port index specified.
Definition: uldaq.h:350
Returns a Range value to the infoValue argument based on the value of the index argument specified...
Definition: uldaq.h:2085
A digital pattern trigger.
Definition: uldaq.h:1047
Digital output.
Definition: uldaq.h:1682
0 to +10 Volts
Definition: uldaq.h:605
UlError ulDOutScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the digital output operation currently running.
Configures the counter to increment when the phase B pin is high, and decrement when the phase B pin ...
Definition: uldaq.h:1464
UlError ulAInLoadQueue(DaqDeviceHandle daqDeviceHandle, AiQueueElement queue[], unsigned int numElements)
Loads the A/D queue of a specified device.
Returns a bitmask of supported CounterMeasurementType values of the counter specified by the index ar...
Definition: uldaq.h:2215
A structure that defines an output channel and its properties.
Definition: uldaq.h:1690
Minimum slope value reached.
Definition: uldaq.h:236
0 to +0.25 Volts
Definition: uldaq.h:632
Invalid DAQ output channel type specified.
Definition: uldaq.h:314
A structure containing information about the progress of the specified scan operation.
Definition: uldaq.h:72
Returns the maximum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2319
-60 to +60 Volts
Definition: uldaq.h:518
-30 to +30 Volts
Definition: uldaq.h:521
Invalid coupling mode.
Definition: uldaq.h:206
-.01 to +.01 Volts
Definition: uldaq.h:575
The counter is incremented only after the counter input is stable for a period of a length defined by...
Definition: uldaq.h:1548
AOutSyncMode
Use with AoConfigItem to set configuration options at runtime.
Definition: uldaq.h:1240
UlError ulAIGetConfigDbl(DaqDeviceHandle daqDeviceHandle, AiConfigItemDbl configItem, unsigned int index, double *configValue)
Use with AiConfigItem to retrieve configuration options set for a device.
Pseudo-differential.
Definition: uldaq.h:438
Configures the counter to be latched by the signal on the index pin for the CMT_COUNT measurement typ...
Definition: uldaq.h:1460
Returns the number of A/D channels for the specified channel type to the infoValue argument...
Definition: uldaq.h:1904
Disables debounce.
Definition: uldaq.h:1474
UlError ulDIOGetConfig(DaqDeviceHandle daqDeviceHandle, DioConfigItem configItem, unsigned int index, long long *configValue)
Use with DioConfigItem to retrieve the current configuration about the DIO subsystem.
A digital pattern trigger.
Definition: uldaq.h:1065
AOutScanFlag
Use as the flags argument value for ulAOutScan() to set the properties of data supplied to the functi...
Definition: uldaq.h:1178
Specified network interface is not available or disconnected.
Definition: uldaq.h:380
Programmable frequency timer.
Definition: uldaq.h:951
Invalid network frame.
Definition: uldaq.h:404
char productName[64]
The generic (unqualified) product name of the device referenced by the DaqDeviceDescriptor.
Definition: uldaq.h:41
The custom offset of the specified channel.
Definition: uldaq.h:2038
Invalid trigger channel specified.
Definition: uldaq.h:362
-4 to +4 Volts
Definition: uldaq.h:536
Returns a zero or non-zero value to the infoValue argument.
Definition: uldaq.h:2078
The AI subsystem supports a mode queue.
Definition: uldaq.h:761
unsigned long long currentTotalCount
The total number of samples transferred since the scan started.
Definition: uldaq.h:79
Data for analog channels is in native format, without scaling applied.
Definition: uldaq.h:1320
Device not connected or connection lost.
Definition: uldaq.h:119
A structure that defines the location and access properties of the physical memory of a device...
Definition: uldaq.h:2362
Invalid port value specified.
Definition: uldaq.h:257
Invalid config item specified.
Definition: uldaq.h:191
Sense mode is disabled.
Definition: uldaq.h:1253
Type J.
Definition: uldaq.h:472
Configuration not supported.
Definition: uldaq.h:170
UlError ulCtrGetConfig(DaqDeviceHandle daqDeviceHandle, CtrConfigItem configItem, unsigned int index, long long *configValue)
Use with CtrConfigItem to retrieve configuration options set for a device.
Disables the debounce feature.
Definition: uldaq.h:1545
Invalid mode queue specified.
Definition: uldaq.h:221
ScanStatus
Scan status.
Definition: uldaq.h:1091
WaitType
Used with the subsystem ScanWait functions as the waitType argument value for the specified device...
Definition: uldaq.h:1785
UlError ulAIn(DaqDeviceHandle daqDeviceHandle, int channel, AiInputMode inputMode, Range range, AInFlag flags, double *data)
Returns the value read from an A/D channel.
Latches the counter measurement each time 1000 complete periods are observed for the CMT_PERIOD measu...
Definition: uldaq.h:1411
UlError ulDBitIn(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, int bitNum, unsigned int *bitValue)
Returns the value of a digital bit.
SixthPortC Low.
Definition: uldaq.h:888
Output the internal D/A Load signal.
Definition: uldaq.h:1246
Invalid counter measurement mode specified.
Definition: uldaq.h:299
Returns the maximum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:1960
Enables the counter when the mapped channel or gate pin is high for the CMT_PULSE_WIDTH measurement t...
Definition: uldaq.h:1423
Configures the encoder Z mapped signal to latch the counter outputs for the CMT_ENCODER measurement t...
Definition: uldaq.h:1444
AInScanFlag
Use as the flags argument value for the ulAInScan() function to set properties of data returned...
Definition: uldaq.h:1152
Data is returned without calibration factors applied.
Definition: uldaq.h:1161
48-bit counter channel.
Definition: uldaq.h:1646
The data buffer contains scaled data for analog channels, and calibration factors are applied to anal...
Definition: uldaq.h:1317
DaqOutScanFlag
Use as the flags argument value for ulDaqOutScan() to set the properties of data sent.
Definition: uldaq.h:1314
Enables or disables the internal pacer output on a DAQ device.
Definition: uldaq.h:1141
EighthPortC High.
Definition: uldaq.h:915
Data is supplied in native format (usually, values ranging from 0 to 2resolution - 1)...
Definition: uldaq.h:1217
Device not found.
Definition: uldaq.h:116
Invalid re-trigger count.
Definition: uldaq.h:260
Network connection failed.
Definition: uldaq.h:392
Inverts the polarity of the gate input for the CMT_COUNT measurement type.
Definition: uldaq.h:1399
All of the specified channels will be updated simultaneously.
Definition: uldaq.h:1236
No event type.
Definition: uldaq.h:1732
Returns the minimum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2250
Data is output without calibration factors applied.
Definition: uldaq.h:1220
UlError
UL error codes.
Definition: uldaq.h:95
UlError ulCtrSetConfig(DaqDeviceHandle daqDeviceHandle, CtrConfigItem configItem, unsigned int index, long long configValue)
Use with CtrConfigItem to set configuration options at runtime.
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1522
Invalid port specified.
Definition: uldaq.h:386
Channel numbers must be listed in ascending order within the queue.
Definition: uldaq.h:776
UlError ulAOutArray(DaqDeviceHandle daqDeviceHandle, int lowChan, int highChan, Range range[], AOutArrayFlag flags, double data[])
Writes values to a range of D/A channels.
Sense mode is enable.
Definition: uldaq.h:1256
AiQueueType
Bitmask indicating supported queue types.
Definition: uldaq.h:752
0 to +.01 Volts
Definition: uldaq.h:650
DigitalPortType
Used with all digital I/O functions and with ulDIOGetInfo() as the infoValue argument value when used...
Definition: uldaq.h:804
Scans data in an endless loop.
Definition: uldaq.h:1126
UlError ulAIGetInfoDbl(DaqDeviceHandle daqDeviceHandle, AiInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with AiInfoItemDbl to retrieve information about the AI subsystem.
Pacer overrun, external clock rate too fast.
Definition: uldaq.h:359
Digital channel.
Definition: uldaq.h:1637
Returns a bitmask of supported ScanOption values to the infoValue argument.
Definition: uldaq.h:2300
2-wire with two sensors per differential channel pair
Definition: uldaq.h:503
Defines an event trigger condition that occurs upon completion of an input scan operation such as ulA...
Definition: uldaq.h:1743
Celcius.
Definition: uldaq.h:676
Sets the encoder measurement mode to X2 for the CMT_ENCODER measurement type.
Definition: uldaq.h:1438
Invalid counter register specified.
Definition: uldaq.h:293
UlError ulAOut(DaqDeviceHandle daqDeviceHandle, int channel, Range range, AOutFlag flags, double data)
Writes the value of a D/A output.
UlError ulDaqInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
Returns the status of a synchronous input operation.
The coupling mode for the specified device.
Definition: uldaq.h:2005
MemRegion
Used with ulMemGetInfo() as the memRegion argument value to specify the memory location on the specif...
Definition: uldaq.h:1755
long long DaqDeviceHandle
The DAQ device.
Definition: uldaq.h:65
0 to +60 Volts
Definition: uldaq.h:593
Invalid channel queue specified.
Definition: uldaq.h:215
Open Thermocouple detection modes is enabled.
Definition: uldaq.h:748
Configures the counter to start counting when the gate input goes active for the CMT_COUNT measuremen...
Definition: uldaq.h:1373
Sets up the counter as a 48-bit counter channel.
Definition: uldaq.h:1280
Returns a bitmask of supported ScanOption values to the infoValue argument.
Definition: uldaq.h:2075
-.156 to +.156 Volts
Definition: uldaq.h:587
OtdMode
Open Thermocouple detection modes.
Definition: uldaq.h:742
IepeMode
IEPE modes.
Definition: uldaq.h:722
Sampling begins when a trigger condition is met.
Definition: uldaq.h:1132
When counting up, configures the counter to roll over to the min limit when the max limit is reached ...
Definition: uldaq.h:1393
ThirdPortC Low.
Definition: uldaq.h:852
The register that sets the count value at which the counter output will change state from its origina...
Definition: uldaq.h:1619
Data is returned without calibration factors applied.
Definition: uldaq.h:1174
UlError ulMemGetInfo(DaqDeviceHandle daqDeviceHandle, MemRegion memRegion, MemDescriptor *memDescriptor)
Use with MemDescriptor to retrieve information about the memory region on a DAQ device.
CounterEdgeDetection
Use as the value for the edgeDetection argument for ulCConfigScan().
Definition: uldaq.h:1556
Disables the counter when a count overflow or underflow occurs for the CMT_ENCODER measurement type; ...
Definition: uldaq.h:1451
Data is output without calibration factors applied.
Definition: uldaq.h:1187
Returns the number of single-ended ranges supported to the infoValue argument.
Definition: uldaq.h:1919
Returns a bitmask of supported AiQueueType values to the infoValue argument.
Definition: uldaq.h:1939
UlError ulTIn(DaqDeviceHandle daqDeviceHandle, int channel, TempScale scale, TInFlag flags, double *data)
Returns a temperature value read from an A/D channel.
Returns a bitmask value to configValue indicating the current direction of all bits in the specified ...
Definition: uldaq.h:2189
-1 to +1 Volts
Definition: uldaq.h:548
DevVersionType
Used with ulDevGetConfigStr() as an index argument value with the infoItem argument set to DEV_CFG_VE...
Definition: uldaq.h:1872
Resets the DAQ device, this causes the DAQ device to disconnect from the host, ulConnectDaqDevice() m...
Definition: uldaq.h:1852
Idle low.
Definition: uldaq.h:961
Invalid counter value specified.
Definition: uldaq.h:284
Enables the counter when the mapped channel or gate pin is high for the CMT_PERIOD measurement type...
Definition: uldaq.h:1414
UlError ulDOutScan(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, int samplesPerPort, double *rate, ScanOption options, DOutScanFlag flags, unsigned long long data[])
Writes data to a range of digital ports.
Returns a non-zero value to configValue if an expansion board is attached; otherwise, returns zero.
Definition: uldaq.h:1841
Trigger threshold is out of range.
Definition: uldaq.h:374
-0.25 to +0.25 Volts
Definition: uldaq.h:557
0 to +15 Volts
Definition: uldaq.h:599
Insufficient permission to access this device.
Definition: uldaq.h:110
The open thermocouple detection mode.
Definition: uldaq.h:2014
FirstPortB.
Definition: uldaq.h:822
SecondPortB.
Definition: uldaq.h:837
-20 to +20 Volts
Definition: uldaq.h:527
Invalid sampling rate specified.
Definition: uldaq.h:164
An analog trigger.
Definition: uldaq.h:1029
CounterDebounceMode
Use as the value for the debounceTime argument for ulCConfigScan() to set the glitch rejection proper...
Definition: uldaq.h:1542
Returns a bitmask of DaqEventType values to infoValue if events are supported; otherwise, returns zero.
Definition: uldaq.h:1829
Returns the maximum length of the queue for the specified channel mode to the infoValue argument...
Definition: uldaq.h:1936
Configures the counter for default timing modes for the CMT_TIMING measurement type.
Definition: uldaq.h:1429
UlError ulDaqInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
Bidirectional (input or output) port; configuration is not required.
Definition: uldaq.h:934
Temperature input is out of range.
Definition: uldaq.h:371
0 to +2.0 Volts
Definition: uldaq.h:617
The sensitivity of the sensor connected to the specified channel.
Definition: uldaq.h:2041
Inverts the polarity of the gate input for the CMT_PERIOD measurement type.
Definition: uldaq.h:1417
Invalid input mode specified.
Definition: uldaq.h:143
UlError ulDaqOutSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, DaqInChanDescriptor trigChanDescriptor, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulDaqOutScan() is called with the SO_RETRIGG...
0 to +0.2 Volts
Definition: uldaq.h:638
Changes the internal clock's timebase to an external timebase source.
Definition: uldaq.h:1144
Type B.
Definition: uldaq.h:490
Specifies the calibration data region information returned to the MemDescriptor struct.
Definition: uldaq.h:1758
SixthPortB.
Definition: uldaq.h:885
Invalid device handle.
Definition: uldaq.h:104
FifthPortC High.
Definition: uldaq.h:879
FourthPortB.
Definition: uldaq.h:861
UlError ulCInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulCInScan() is called with the SO_RETRIGGER ...
DInScanFlag
Use as the flags argument value for ulDInScan() to set the properties of data returned.
Definition: uldaq.h:1284
TcType
Thermocouple types.
Definition: uldaq.h:469
DevConfigItem
Use with ulDevGetConfig() as a configItem argument value to get the current configuration of the spec...
Definition: uldaq.h:1838
UlError ulDevGetConfig(DaqDeviceHandle daqDeviceHandle, DevConfigItem configItem, unsigned int index, long long *configValue)
Use with DevConfigItem to retrieve the current configuration options set for a device.
Returns the maximum throughput in samples per second to the infoValue argument.
Definition: uldaq.h:2105
UlError ulMemRead(DaqDeviceHandle daqDeviceHandle, MemRegion memRegion, unsigned int address, unsigned char *buffer, unsigned int count)
Reads a value read from a specified region in memory; use with ulMemGetInfo() to retrieve information...
Sets the tick size to 20000 ns.
Definition: uldaq.h:1592
Inverts the polarity of the gate input for the CMT_PULSE_WIDTH measurement type.
Definition: uldaq.h:1426
Returns a Range value to the infoValue argument based on the value of the index argument specified...
Definition: uldaq.h:1929
0 to +.05 Volts
Definition: uldaq.h:647
Returns or writes a bitmask indicating the configuration of one or more counters. ...
Definition: uldaq.h:2263
DevConfigItemStr
Use with ulDevGetConfigStr() as a configItem argument value to get the current configuration of the s...
Definition: uldaq.h:1859
DaqInChanType type
The type of input for the specified channel, such as analog, digital, or counter. ...
Definition: uldaq.h:1662
IEPE excitation current is disabled.
Definition: uldaq.h:725
Returns the total number of timers to the infoValue argument.
Definition: uldaq.h:2270
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1494
60 Hz rejection frequency
Definition: uldaq.h:796
UlError ulDOut(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, unsigned long long data)
Writes the specified value to a digital output port.
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1534
Scaled data is supplied and calibration factors are applied to output.
Definition: uldaq.h:1227
USB interface is already claimed.
Definition: uldaq.h:113
Sets the tick size to 200 ns.
Definition: uldaq.h:1586
CConfigScanFlag
Use as the flags argument value for ulCConfigScan().
Definition: uldaq.h:1596
AiRejectFreqType
Analog input rejection frequency types.
Definition: uldaq.h:793
UlError ulDaqOutScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the synchronous output operation currently running.
TmrInfoItem
Use with ulTmrGetInfo() to obtain information about the timer subsystem for the specified device as a...
Definition: uldaq.h:2267
Single-ended.
Definition: uldaq.h:435
Indicates read access for the location specified by the memRegion argument.
Definition: uldaq.h:1775
Resistance Temperature Detector (RTD)
Definition: uldaq.h:456
FifthPortC Low.
Definition: uldaq.h:876
UlError ulDaqIGetInfoDbl(DaqDeviceHandle daqDeviceHandle, DaqIInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with DaqIInfoItemDbl to retrieve information about the synchronous input subsystem.
The analog input scan temperature unit.
Definition: uldaq.h:1986
UlError ulCInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
Buffer too small for operation.
Definition: uldaq.h:125
int channel
The channel number.
Definition: uldaq.h:1659
-.5 to +.5 Volts
Definition: uldaq.h:554
-.005 to +.005 Volts
Definition: uldaq.h:578
UlError ulGetDaqDeviceInventory(DaqDeviceInterface interfaceTypes, DaqDeviceDescriptor daqDevDescriptors[], unsigned int *numDescriptors)
Get the list of MCC devices available to the system.
Sets the tick size to 2000 ns.
Definition: uldaq.h:1589
EighthPortB.
Definition: uldaq.h:909
0 to +0.125 Volts
Definition: uldaq.h:635
Device no longer responding.
Definition: uldaq.h:122
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1506
Transfers A/D data based on the board type and sampling speed.
Definition: uldaq.h:1113
Unable to read FPGA file.
Definition: uldaq.h:227
This function cannot be used with this version of the device.
Definition: uldaq.h:344
Memory unlock code.
Definition: uldaq.h:1849
The channel type of the specified channel.
Definition: uldaq.h:1976
A digital trigger.
Definition: uldaq.h:998
Returns the number of A/D channels for the specified channel mode to the infoValue argument...
Definition: uldaq.h:1901
Configures the counter to count down for the CMT_COUNT measurement type.
Definition: uldaq.h:1362
Transfers one packet of data at a time.
Definition: uldaq.h:1116
Returns the port logic.
Definition: uldaq.h:2202
Returns a bitmask of supported ScanOption values to the infoValue argument.
Definition: uldaq.h:2234
Writes a value to the specified port number.
Definition: uldaq.h:2194
UlError ulAISetConfig(DaqDeviceHandle daqDeviceHandle, AiConfigItem configItem, unsigned int index, long long configValue)
Use with AiConfigItem to set configuration options at runtime.
Thermistor.
Definition: uldaq.h:459
Invalid debounce mode specified.
Definition: uldaq.h:305
Range range
The range to use for the specified channel for the queue element.
Definition: uldaq.h:1081
A structure that defines an analog input queue element.
Definition: uldaq.h:1072
Returns the minimum scan rate to the infoValue argument for the specified digital direction...
Definition: uldaq.h:2168
The open thermocouple detection mode for the specified channel.
Definition: uldaq.h:2011
Returns a bitmask of supported CounterRegisterType values to the infoValue argument.
Definition: uldaq.h:2223
Returns a bitmask of supported TriggerType values to the infoValue argument.
Definition: uldaq.h:1932
50 Hz rejection frequency
Definition: uldaq.h:799
char devString[64]
Similar to productname, but may contain additional information.
Definition: uldaq.h:50
Specifies the first reserved region information returned to the MemDescriptor struct.
Definition: uldaq.h:1767
Data is supplied in native format (usually, values ranging from 0 to 2resolution - 1...
Definition: uldaq.h:1184
Type N.
Definition: uldaq.h:493
UlError ulAIGetInfo(DaqDeviceHandle daqDeviceHandle, AiInfoItem infoItem, unsigned int index, long long *infoValue)
Use with AiInfoItem to retrieve information about the AI subsystem.
Ethernet interface.
Definition: uldaq.h:27
AuxPort1.
Definition: uldaq.h:813
Invalid buffer.
Definition: uldaq.h:128
Scan is running.
Definition: uldaq.h:1097
Returns a bitmask of supported TriggerType values to the infoValue argument.
Definition: uldaq.h:2337
Returns the number of differential ranges supported to the infoValue argument.
Definition: uldaq.h:1916
Returns the minimum output frequency to the infoValue argument.
Definition: uldaq.h:2282
-0.2 to +0.2 Volts
Definition: uldaq.h:563
UlError ulAISetConfigDbl(DaqDeviceHandle daqDeviceHandle, AiConfigItemDbl configItem, unsigned int index, double configValue)
Use with AiConfigItemDbl to set configuration options at runtime.
UlError ulDisconnectDaqDevice(DaqDeviceHandle daqDeviceHandle)
Disconnect from a device.
char uniqueId[64]
A string that uniquely identifies a specific device, usually with a serial number or MAC address...
Definition: uldaq.h:53
Standard scan properties.
Definition: uldaq.h:1294
UlError ulDInScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the digital input operation currently running.
unsigned long long currentScanCount
The number of samples per channel transferred since the scan started.
Definition: uldaq.h:75
SeventhPortA.
Definition: uldaq.h:894
Network buffer overrun, data was not transferred from buffer fast enough.
Definition: uldaq.h:422
CtrConfigItem
Use with ulCtrSetConfig() and ulCtrGetConfig() to configure the Ctr subsystem.
Definition: uldaq.h:2260
Invalid D/A output value specified.
Definition: uldaq.h:266
Range range
The range to be used for the specified channel; ignored if not analog.
Definition: uldaq.h:1665
Transfers A/D data in blocks.
Definition: uldaq.h:1119
0 to +20 Volts
Definition: uldaq.h:602
Sets the encoder measurement mode to X1 for the CMT_ENCODER measurement type.
Definition: uldaq.h:1435
Returns a non-zero value to infoValue if counter input is supported; otherwise, returns zero...
Definition: uldaq.h:1817
The AI subsystem supports a channel queue.
Definition: uldaq.h:755
Invalid analog input channel type specified.
Definition: uldaq.h:176
char reserved[64]
Reserved for future use.
Definition: uldaq.h:1702
0 to +.5 Volts
Definition: uldaq.h:629
UlError ulReleaseDaqDevice(DaqDeviceHandle daqDeviceHandle)
Remove a device from the Universal Library, and release all resources associated with that device...
No connection established.
Definition: uldaq.h:317
char reserved[64]
Reserved for future use.
Definition: uldaq.h:1668
Default counter behavior.
Definition: uldaq.h:1265
Data is returned with scaling and calibration factors applied.
Definition: uldaq.h:1168
Returns the maximum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2352
UlError ulCLoad(DaqDeviceHandle daqDeviceHandle, int counterNum, CounterRegisterType registerType, unsigned long long loadValue)
Loads a value into the specified counter register.
Sets up the counter as a 16-bit counter channel.
Definition: uldaq.h:1268
UlError ulTmrGetInfo(DaqDeviceHandle daqDeviceHandle, TmrInfoItem infoItem, unsigned int index, long long *infoValue)
Use with TmrInfoItem to retrieve information about the timer subsystem.
Returns the maximum throughput in samples per second when using the SO_BURSTIO ScanOption to the info...
Definition: uldaq.h:1969
TriggerType
Used as an individual value with the subsystem SetTrigger functions as the type argument value...
Definition: uldaq.h:983
Temperature input has open connection.
Definition: uldaq.h:353
Analog output.
Definition: uldaq.h:1679
CInScanFlag
Use as the flags argument value for ulCInScan() to set counter properties.
Definition: uldaq.h:1262
DaqIInfoItem
Use with ulDaqIGetInfo() to obtain information about the DAQ input subsystem for the specified device...
Definition: uldaq.h:2292
Kelvin.
Definition: uldaq.h:669
A digital trigger.
Definition: uldaq.h:995
An analog trigger.
Definition: uldaq.h:1033
ADC overrun occurred.
Definition: uldaq.h:179
int channel
The channel number.
Definition: uldaq.h:1693
Configures the counter to clear after every read for the CMT_COUNT measurement type.
Definition: uldaq.h:1359
Function returns when the scan operation completes or the time specified by the timeout argument valu...
Definition: uldaq.h:1788
Returns the FIFO size in bytes to the infoValue argument for the specified digital direction...
Definition: uldaq.h:2160
unsigned int address
A numeric value that specifies the address of the memory; used with ulMemRead() and ulMemWrite()...
Definition: uldaq.h:2368
UlError ulAIGetConfig(DaqDeviceHandle daqDeviceHandle, AiConfigItem configItem, unsigned int index, long long *configValue)
Use with AiConfigItem to retrieve configuration options set for a device.
Max Limit register.
Definition: uldaq.h:1613
Returns the maximum scan rate in samples per second when using the SO_BURSTIO ScanOption to the infoV...
Definition: uldaq.h:1966
UlError ulDInScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
Invalid trigger type specified.
Definition: uldaq.h:149
Connection code ignored.
Definition: uldaq.h:398
Analog input channel, single-ended mode.
Definition: uldaq.h:1634
Enables burst mode sampling, minimizing the channel skew.
Definition: uldaq.h:1138
Invalid debounce time specified.
Definition: uldaq.h:302
Invalid unit specified.
Definition: uldaq.h:185
Range
Used with many analog input and output functions, as well as a return value for the infoValue argumen...
Definition: uldaq.h:515
-.05 to +.05 Volts
Definition: uldaq.h:572
DioInfoItemDbl
Use with ulDIOGetInfoDbl() as an infoItem argument to obtain information about the DIO subsystem for ...
Definition: uldaq.h:2164
SecondPortC Low.
Definition: uldaq.h:840
AoInfoItemDbl
Use with ulAOGetInfoDbl() to obtain information about the analog output subsystem for the specified d...
Definition: uldaq.h:2096
Returns the D/A resolution in number of bits to the infoValue argument.
Definition: uldaq.h:2069
DC coupling.
Definition: uldaq.h:735
Returns a non-zero value to infoValue if synchronous input is supported; otherwise, returns zero.
Definition: uldaq.h:1823
-0.078 to +0.078 Volts
Definition: uldaq.h:569
char reserved[512]
Reserved for future use.
Definition: uldaq.h:56
Scanning is enabled as long as the external analog trigger is inside the region defined by the level ...
Definition: uldaq.h:1037
UlError ulCtrGetInfo(DaqDeviceHandle daqDeviceHandle, CtrInfoItem infoItem, unsigned int index, long long *infoValue)
Use with CtrInfoItem to retrieve information about the counter subsystem.
Returns the FIFO size in bytes to the infoValue argument.
Definition: uldaq.h:2241
Voltage.
Definition: uldaq.h:450
Returns the maximum throughput in samples per second to the infoValue argument.
Definition: uldaq.h:1963
FourthPortA.
Definition: uldaq.h:858
Device is not available at time of request.
Definition: uldaq.h:338
Network device did not respond within expected time.
Definition: uldaq.h:407
ThirdPortC High.
Definition: uldaq.h:855
Invalid queue size.
Definition: uldaq.h:188
3-wire with a single sensor per differential channel pair
Definition: uldaq.h:506
Invalid sample count specified.
Definition: uldaq.h:200
Differential.
Definition: uldaq.h:432
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1530
Re-trigger option is not supported for the specified trigger type.
Definition: uldaq.h:341
CounterMeasurementType
Use as the value for the type argument for ulCConfigScan().
Definition: uldaq.h:1329
Returns the version of the device system defined by the DevVersionType value of the index argument...
Definition: uldaq.h:1862
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1482
UlError ulCRead(DaqDeviceHandle daqDeviceHandle, int counterNum, CounterRegisterType regType, unsigned long long *data)
Reads the value of the specified counter register.
Returns a Range value to the infoValue argument based on the value of the index argument specified...
Definition: uldaq.h:1924
UlError ulAOGetInfoDbl(DaqDeviceHandle daqDeviceHandle, AoInfoItemDbl infoItem, unsigned int index, double *infoValue)
Use with AoInfoItemDbl to retrieve information about the AO subsystem.
Fahrenheit.
Definition: uldaq.h:666
UlError ulDIn(DaqDeviceHandle daqDeviceHandle, DigitalPortType portType, unsigned long long *data)
Returns the value read from a digital port.
AiChanType
Analog input channel types.
Definition: uldaq.h:447
UlError ulDInScan(DaqDeviceHandle daqDeviceHandle, DigitalPortType lowPort, DigitalPortType highPort, int samplesPerPort, double *rate, ScanOption options, DInScanFlag flags, unsigned long long data[])
Reads a range of digital ports.
Sets up the counter as a 64-bit counter channel.
Definition: uldaq.h:1274
Returns the total number of D/A channels to the infoValue argument.
Definition: uldaq.h:2072
UlError ulDaqInScan(DaqDeviceHandle daqDeviceHandle, DaqInChanDescriptor chanDescriptors[], int numChans, int samplesPerChan, double *rate, ScanOption options, DaqInScanFlag flags, double data[])
Allows scanning of multiple input subsystems, such as analog, digital, counter, and stores the sample...
The output operation is held off until the specified trigger condition is met.
Definition: uldaq.h:1716
-15 to +15 Volts
Definition: uldaq.h:524
Returns a non-zero value to infoValue if analog output is supported; otherwise, returns zero...
Definition: uldaq.h:1811
SecondPortC High.
Definition: uldaq.h:843
Sets the encoder Z signal as the active edge for the CMT_ENCODER measurement type.
Definition: uldaq.h:1457
SecondPortA.
Definition: uldaq.h:834
UlError ulDaqIGetInfo(DaqDeviceHandle daqDeviceHandle, DaqIInfoItem infoItem, unsigned int index, long long *infoValue)
Use with DaqIInfoItem to retrieve information about the synchronous input subsystem.
Returns or writes the low-pass filter setting.
Definition: uldaq.h:2199
unsigned int productId
The numeric string indicating the product type referenced by the DaqDeviceDescriptor.
Definition: uldaq.h:44
-.625 to +.625 Volts
Definition: uldaq.h:551
UlError ulCInScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the counter input operation currently running.
The IEPE current excitation mode for the specified channel.
Definition: uldaq.h:2002
UlError ulCInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
Returns the status of a counter input operation.
Configures the counter for default pulse width modes for the CMT_PULSE_WIDTH measurement type...
Definition: uldaq.h:1420
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1502
UlError ulAOutScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the analog output operation currently running.
Device is not ready to send data.
Definition: uldaq.h:356
DaqInScanFlag
Use as the flags argument value for ulDaqInScan() to set the properties of data returned.
Definition: uldaq.h:1298
MemRegion region
The enumeration indicating the region of the memory.
Definition: uldaq.h:2365
The connection code stored in EEPROM.
Definition: uldaq.h:1846
Any interface.
Definition: uldaq.h:30
0 to +0.078 Volts
Definition: uldaq.h:644
Network device already in use.
Definition: uldaq.h:401
UlError ulDisableEvent(DaqDeviceHandle daqDeviceHandle, DaqEventType eventTypes)
Disables one or more event conditions, and disconnects their user-defined handlers.
CtrInfoItem
Use with ulCtrGetInfo() to obtain information about the counter subsystem for the specified device as...
Definition: uldaq.h:2208
Disabled.
Definition: uldaq.h:465
Factory calibration table.
Definition: uldaq.h:786
Open Thermocouple detection modes is disabled.
Definition: uldaq.h:745
Sets the tick size to 20 ns.
Definition: uldaq.h:1583
SeventhPortC High.
Definition: uldaq.h:903
char reserved[64]
Reserved for future use.
Definition: uldaq.h:2377
The output operation is held off until the specified trigger condition is met.
Definition: uldaq.h:1722
Data is returned with scaling and calibration factors applied.
Definition: uldaq.h:1155
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1478
Invalid argument.
Definition: uldaq.h:233
Invalid callback function specified.
Definition: uldaq.h:329
UlError ulIsDaqDeviceConnected(DaqDeviceHandle daqDeviceHandle, int *connected)
The connection status of a DAQ device.
The data rate of the specified channel.
Definition: uldaq.h:2044
0 to +.005 Volts
Definition: uldaq.h:653
A structure that defines a particular DAQ device, usually obtained using ulGetDaqDeviceInventory().
Definition: uldaq.h:38
Returns the minimum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2099
Type R.
Definition: uldaq.h:484
A digital trigger.
Definition: uldaq.h:1001
UlError ulDInScanStatus(DaqDeviceHandle daqDeviceHandle, ScanStatus *status, TransferStatus *xferStatus)
The status of a digital scan operation.
Re-arms the trigger after a trigger event is performed.
Definition: uldaq.h:1135
AOutFlag
Use as the flags argument value for ulAOut() to set the properties of data supplied to the function...
Definition: uldaq.h:1211
Measurement firmware version installed on the expansion device attached to the current device is retu...
Definition: uldaq.h:1887
-2.5 to +2.5 Volts
Definition: uldaq.h:539
Sets the time period that the counter input must be stable when using CDM_TRIGGER_AFTER_STABLE or CDM...
Definition: uldaq.h:1526
UlError ulDOutSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulDOutScan() is called with the SO_RETRIGGER...
Celcius.
Definition: uldaq.h:663
UlError ulDInSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulDInScan() is called with the SO_RETRIGGER ...
Sets the tick size to 20833.3 ns.
Definition: uldaq.h:1580
UlError ulDOutScanWait(DaqDeviceHandle daqDeviceHandle, WaitType waitType, long long waitParam, double timeout)
Returns when the scan operation completes on the specified device, or the time specified by the timeo...
Returns the minimum scan rate in samples per second to the infoValue argument.
Definition: uldaq.h:2316
Returns a non-zero value to infoValue if analog input is supported; otherwise, returns zero...
Definition: uldaq.h:1808
Returns the total number of digital ports to the infoValue argument.
Definition: uldaq.h:2122
Invalid connection code.
Definition: uldaq.h:395
A digital trigger.
Definition: uldaq.h:991
Scan is idle.
Definition: uldaq.h:1094
UlError ulCClear(DaqDeviceHandle daqDeviceHandle, int counterNum)
Sets the count of the specified counter to 0.
Idle high.
Definition: uldaq.h:964
-3.0 to +3.0 Volts
Definition: uldaq.h:581
A background process is already in progress.
Definition: uldaq.h:146
Digital I/O is configured incorrectly.
Definition: uldaq.h:251
The specified bit is used for alarm.
Definition: uldaq.h:416
UlError ulCConfigScan(DaqDeviceHandle daqDeviceHandle, int counterNum, CounterMeasurementType type, CounterMeasurementMode mode, CounterEdgeDetection edgeDetection, CounterTickSize tickSize, CounterDebounceMode debounceMode, CounterDebounceTime debounceTime, CConfigScanFlag flags)
Configures a counter channel, for counters with programmable types.
Returns a TimerType value to the infoValue argument, indicating the type of the timer specified by th...
Definition: uldaq.h:2274
Returns a zero or non-zero value to the infoValue argument.
Definition: uldaq.h:1948
UlError ulAInScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the analog input operation currently running.
DevInfoItem
Use with ulDevGetInfo() as an infoItem argument value to obtain information for the specified device...
Definition: uldaq.h:1805
AiConfigItem
Use with ulAISetConfig() and ulAIGetConfig() to configure the AI subsystem.
Definition: uldaq.h:1973
0 to +1.25 Volts
Definition: uldaq.h:620
16-bit counter channel.
Definition: uldaq.h:1640
UlError ulDaqInScanStop(DaqDeviceHandle daqDeviceHandle)
Stops the synchronous input operation currently running.
Clears the counter when the index (Z input) goes active for the CMT_ENCODER measurement type...
Definition: uldaq.h:1447
UlError ulTmrSetTrigger(DaqDeviceHandle daqDeviceHandle, TriggerType type, int trigChan, double level, double variance, unsigned int retriggerSampleCount)
Configures the trigger parameters that will be used when ulTmrPulseOutStart() is called with the PO_R...
DaqDeviceInterface
A bitmask defining the physical connection interface used to communicate with a DAQ device...
Definition: uldaq.h:18