83
83
end
84
84
85
85
function obj = Process(obj )
86
- calllib(obj .libname , ' Monitors_Process ' );
86
+ calllib(obj .libname , ' ctx_Monitors_Process ' , obj . dssctx );
87
87
end
88
88
89
89
function obj = ProcessAll(obj )
90
- calllib(obj .libname , ' Monitors_ProcessAll ' );
90
+ calllib(obj .libname , ' ctx_Monitors_ProcessAll ' , obj . dssctx );
91
91
end
92
92
93
93
function obj = Reset(obj )
94
- calllib(obj .libname , ' Monitors_Reset ' );
94
+ calllib(obj .libname , ' ctx_Monitors_Reset ' , obj . dssctx );
95
95
end
96
96
97
97
function obj = ResetAll(obj )
98
- calllib(obj .libname , ' Monitors_ResetAll ' );
98
+ calllib(obj .libname , ' ctx_Monitors_ResetAll ' , obj . dssctx );
99
99
end
100
100
101
101
function obj = Sample(obj )
102
- calllib(obj .libname , ' Monitors_Sample ' );
102
+ calllib(obj .libname , ' ctx_Monitors_Sample ' , obj . dssctx );
103
103
end
104
104
105
105
function obj = SampleAll(obj )
106
- calllib(obj .libname , ' Monitors_SampleAll ' );
106
+ calllib(obj .libname , ' ctx_Monitors_SampleAll ' , obj . dssctx );
107
107
end
108
108
109
109
function obj = Save(obj )
110
- calllib(obj .libname , ' Monitors_Save ' );
110
+ calllib(obj .libname , ' ctx_Monitors_Save ' , obj . dssctx );
111
111
end
112
112
113
113
function obj = SaveAll(obj )
114
- calllib(obj .libname , ' Monitors_SaveAll ' );
114
+ calllib(obj .libname , ' ctx_Monitors_SaveAll ' , obj . dssctx );
115
115
end
116
116
117
117
function obj = Show(obj )
118
- calllib(obj .libname , ' Monitors_Show ' );
118
+ calllib(obj .libname , ' ctx_Monitors_Show ' , obj . dssctx );
119
119
end
120
120
121
121
end
125
125
end
126
126
function result = get .AllNames(obj )
127
127
% Array of strings with all Monitor names
128
- result = obj .apiutil .get_string_array(' Monitors_Get_AllNames ' );
128
+ result = obj .apiutil .get_string_array(' ctx_Monitors_Get_AllNames ' , obj . dssctx );
129
129
end
130
130
131
131
function result = get .Count(obj )
132
132
% Number of Monitor objects
133
- result = calllib(obj .libname , ' Monitors_Get_Count ' );
133
+ result = calllib(obj .libname , ' ctx_Monitors_Get_Count ' , obj . dssctx );
134
134
end
135
135
136
136
function result = get .First(obj )
137
137
% Set first object of Monitor; returns 0 if none.
138
- result = calllib(obj .libname , ' Monitors_Get_First ' );
138
+ result = calllib(obj .libname , ' ctx_Monitors_Get_First ' , obj . dssctx );
139
139
end
140
140
141
141
function result = get .Name(obj )
142
142
% Get/sets the name of the current active Monitor
143
- result = calllib(obj .libname , ' Monitors_Get_Name ' );
143
+ result = calllib(obj .libname , ' ctx_Monitors_Get_Name ' , obj . dssctx );
144
144
end
145
145
function obj = set .Name(obj , Value )
146
- calllib(obj .libname , ' Monitors_Set_Name ' , Value );
146
+ calllib(obj .libname , ' ctx_Monitors_Set_Name ' , obj . dssctx , Value );
147
147
obj .CheckForError();
148
148
end
149
149
150
150
function result = get .Next(obj )
151
151
% Sets next Monitor active; returns 0 if no more.
152
- result = calllib(obj .libname , ' Monitors_Get_Next ' );
152
+ result = calllib(obj .libname , ' ctx_Monitors_Get_Next ' , obj . dssctx );
153
153
end
154
154
155
155
function result = get .idx(obj )
156
156
% Get/set active Monitor by index; 1..Count
157
- result = calllib(obj .libname , ' Monitors_Get_idx ' );
157
+ result = calllib(obj .libname , ' ctx_Monitors_Get_idx ' , obj . dssctx );
158
158
end
159
159
function obj = set .idx(obj , Value )
160
- calllib(obj .libname , ' Monitors_Set_idx ' , Value );
160
+ calllib(obj .libname , ' ctx_Monitors_Set_idx ' , obj . dssctx , Value );
161
161
obj .CheckForError();
162
162
end
163
163
169
169
170
170
function result = get .Element(obj )
171
171
% Full object name of element being monitored.
172
- result = calllib(obj .libname , ' Monitors_Get_Element ' );
172
+ result = calllib(obj .libname , ' ctx_Monitors_Get_Element ' , obj . dssctx );
173
173
end
174
174
function obj = set .Element(obj , Value )
175
- calllib(obj .libname , ' Monitors_Set_Element ' , Value );
175
+ calllib(obj .libname , ' ctx_Monitors_Set_Element ' , obj . dssctx , Value );
176
176
end
177
177
178
178
function result = get .FileName(obj )
179
179
% (read-only) Name of CSV file associated with active Monitor.
180
- result = calllib(obj .libname , ' Monitors_Get_FileName ' );
180
+ result = calllib(obj .libname , ' ctx_Monitors_Get_FileName ' , obj . dssctx );
181
181
end
182
182
183
183
function result = get .FileVersion(obj )
184
184
% (read-only) Monitor File Version (integer)
185
- result = calllib(obj .libname , ' Monitors_Get_FileVersion ' );
185
+ result = calllib(obj .libname , ' ctx_Monitors_Get_FileVersion ' , obj . dssctx );
186
186
end
187
187
188
188
function result = get .Header(obj )
189
189
% (read-only) Header string; Array of strings containing Channel names
190
- result = obj .apiutil .get_string_array(' Monitors_Get_Header ' );
190
+ result = obj .apiutil .get_string_array(' ctx_Monitors_Get_Header ' , obj . dssctx );
191
191
end
192
192
193
193
function result = get .Mode(obj )
194
194
% Set Monitor mode (bitmask integer - see DSS Help)
195
- result = calllib(obj .libname , ' Monitors_Get_Mode ' );
195
+ result = calllib(obj .libname , ' ctx_Monitors_Get_Mode ' , obj . dssctx );
196
196
end
197
197
function obj = set .Mode(obj , Value )
198
- calllib(obj .libname , ' Monitors_Set_Mode ' , Value );
198
+ calllib(obj .libname , ' ctx_Monitors_Set_Mode ' , obj . dssctx , Value );
199
199
end
200
200
201
201
function result = get .NumChannels(obj )
202
202
% (read-only) Number of Channels in the active Monitor
203
- result = calllib(obj .libname , ' Monitors_Get_NumChannels ' );
203
+ result = calllib(obj .libname , ' ctx_Monitors_Get_NumChannels ' , obj . dssctx );
204
204
end
205
205
206
206
function result = get .RecordSize(obj )
207
207
% (read-only) Size of each record in ByteStream (Integer). Same as NumChannels.
208
- result = calllib(obj .libname , ' Monitors_Get_RecordSize ' );
208
+ result = calllib(obj .libname , ' ctx_Monitors_Get_RecordSize ' , obj . dssctx );
209
209
end
210
210
211
211
function result = get .SampleCount(obj )
212
212
% (read-only) Number of Samples in Monitor at Present
213
- result = calllib(obj .libname , ' Monitors_Get_SampleCount ' );
213
+ result = calllib(obj .libname , ' ctx_Monitors_Get_SampleCount ' , obj . dssctx );
214
214
end
215
215
216
216
function result = get .Terminal(obj )
217
217
% Terminal number of element being monitored.
218
- result = calllib(obj .libname , ' Monitors_Get_Terminal ' );
218
+ result = calllib(obj .libname , ' ctx_Monitors_Get_Terminal ' , obj . dssctx );
219
219
end
220
220
function obj = set .Terminal(obj , Value )
221
- calllib(obj .libname , ' Monitors_Set_Terminal ' , Value );
221
+ calllib(obj .libname , ' ctx_Monitors_Set_Terminal ' , obj . dssctx , Value );
222
222
end
223
223
224
224
function result = get .dblFreq(obj )
225
225
% (read-only) Array of doubles containing frequency values for harmonics mode solutions; Empty for time mode solutions (use dblHour)
226
- result = obj .apiutil .get_float64_array(' Monitors_Get_dblFreq ' );
226
+ result = obj .apiutil .get_float64_array(' ctx_Monitors_Get_dblFreq ' , obj . dssctx );
227
227
end
228
228
229
229
function result = get .dblHour(obj )
230
230
% (read-only) Array of doubles containgin time value in hours for time-sampled monitor values; Empty if frequency-sampled values for harmonics solution (see dblFreq)
231
- result = obj .apiutil .get_float64_array(' Monitors_Get_dblHour ' );
231
+ result = obj .apiutil .get_float64_array(' ctx_Monitors_Get_dblHour ' , obj . dssctx );
232
232
end
233
233
end
234
234
end
0 commit comments