Rev 65 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 65 | Rev 137 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #include <utility.h> |
4 | #include <utility.h> |
5 | #include <tcpsupp.h> |
5 | #include <tcpsupp.h> |
6 | #include <cvirte.h> |
6 | #include <cvirte.h> |
7 | 7 | ||
8 | #include "lecroy_tcp.h" |
8 | #include "lecroy_tcp.h" |
- | 9 | #ifndef _CVI_DEBUG_ |
|
- | 10 | # include "wavejet_uic.h" |
|
- | 11 | #endif /* _CVI_DEBUG_ */ |
|
9 | #include "wavejet_ui.h" |
12 | #include "wavejet_ui.h" |
10 | 13 | ||
11 | //#define SCOPE_IP "192.168.1.11" |
14 | //#define SCOPE_IP "192.168.1.11" |
12 | #define MAX_TCP_CONNECT 5 /* time in secs to get a connection */ |
15 | #define MAX_TCP_CONNECT 5 /* time in secs to get a connection */ |
13 | #define MAX_TCP_READ 3 /* time in secs to wait for the DSO |
16 | #define MAX_TCP_READ 3 /* time in secs to wait for the DSO |
Line 62... | Line 65... | ||
62 | 65 | ||
63 | SetStdioWindowOptions (1000, 0, 0); |
66 | SetStdioWindowOptions (1000, 0, 0); |
64 | SetStdioWindowSize (150, 600); |
67 | SetStdioWindowSize (150, 600); |
65 | SetStdioWindowPosition (100, 20); |
68 | SetStdioWindowPosition (100, 20); |
66 | 69 | ||
- | 70 | #ifdef _CVI_DEBUG_ |
|
67 | if ((p1h = LoadPanel (0, "wavejet_ui.uir", P1)) < 0) return -1; |
71 | if ((p1h = LoadPanel (0, "wavejet_ui.uir", P1)) < 0) return -1; |
- | 72 | # else |
|
- | 73 | p1h = BuildP1 (0); |
|
- | 74 | #endif /* _CVI_DEBUG_ */ |
|
68 | DisplayPanel (p1h); |
75 | DisplayPanel (p1h); |
69 | 76 | ||
70 | 77 | ||
71 | // SetCtrlAttribute (p1h, P1_PLCH, ATTR_MAX_VALUE, NCH-1); |
78 | // SetCtrlAttribute (p1h, P1_PLCH, ATTR_MAX_VALUE, NCH-1); |
72 | QueueUserEvent (1000, p1h, P1_IPF); |
79 | QueueUserEvent (1000, p1h, P1_IPF); |