|
84 | 84 | end
|
85 | 85 |
|
86 | 86 | function result = GetUniqueNodeNumber(obj, StartNumber)
|
87 |
| - result = calllib(obj.libname, 'Bus_GetUniqueNodeNumber', StartNumber); |
| 87 | + result = calllib(obj.libname, 'ctx_Bus_GetUniqueNodeNumber', obj.dssctx, StartNumber); |
88 | 88 | obj.CheckForError();
|
89 | 89 | end
|
90 | 90 |
|
91 | 91 | function result = ZscRefresh(obj)
|
92 |
| - result = (calllib(obj.libname, 'Bus_ZscRefresh') ~= 0); |
| 92 | + result = (calllib(obj.libname, 'ctx_Bus_ZscRefresh', obj.dssctx) ~= 0); |
93 | 93 | obj.CheckForError();
|
94 | 94 | end
|
95 | 95 |
|
|
98 | 98 |
|
99 | 99 | function result = get.Coorddefined(obj)
|
100 | 100 | % (read-only) False=0 else True. Indicates whether a coordinate has been defined for this bus
|
101 |
| - result = (calllib(obj.libname, 'Bus_Get_Coorddefined') ~= 0); |
| 101 | + result = (calllib(obj.libname, 'ctx_Bus_Get_Coorddefined', obj.dssctx) ~= 0); |
102 | 102 | obj.CheckForError();
|
103 | 103 | end
|
104 | 104 |
|
105 | 105 | function result = get.CplxSeqVoltages(obj)
|
106 | 106 | % (read-only) Complex Double array of Sequence Voltages (0, 1, 2) at this Bus.
|
107 |
| - calllib(obj.libname, 'Bus_Get_CplxSeqVoltages_GR'); |
| 107 | + calllib(obj.libname, 'ctx_Bus_Get_CplxSeqVoltages_GR', obj.dssctx); |
108 | 108 | obj.CheckForError();
|
109 | 109 | result = obj.apiutil.get_float64_gr_array();
|
110 | 110 | end
|
111 | 111 |
|
112 | 112 | function result = get.Cust_Duration(obj)
|
113 | 113 | % (read-only) Accumulated customer outage durations
|
114 |
| - result = calllib(obj.libname, 'Bus_Get_Cust_Duration'); |
| 114 | + result = calllib(obj.libname, 'ctx_Bus_Get_Cust_Duration', obj.dssctx); |
115 | 115 | obj.CheckForError();
|
116 | 116 | end
|
117 | 117 |
|
118 | 118 | function result = get.Cust_Interrupts(obj)
|
119 | 119 | % (read-only) Annual number of customer-interruptions from this bus
|
120 |
| - result = calllib(obj.libname, 'Bus_Get_Cust_Interrupts'); |
| 120 | + result = calllib(obj.libname, 'ctx_Bus_Get_Cust_Interrupts', obj.dssctx); |
121 | 121 | obj.CheckForError();
|
122 | 122 | end
|
123 | 123 |
|
124 | 124 | function result = get.Distance(obj)
|
125 | 125 | % (read-only) Distance from energymeter (if non-zero)
|
126 |
| - result = calllib(obj.libname, 'Bus_Get_Distance'); |
| 126 | + result = calllib(obj.libname, 'ctx_Bus_Get_Distance', obj.dssctx); |
127 | 127 | obj.CheckForError();
|
128 | 128 | end
|
129 | 129 |
|
130 | 130 | function result = get.Int_Duration(obj)
|
131 | 131 | % (read-only) Average interruption duration, hr.
|
132 |
| - result = calllib(obj.libname, 'Bus_Get_Int_Duration'); |
| 132 | + result = calllib(obj.libname, 'ctx_Bus_Get_Int_Duration', obj.dssctx); |
133 | 133 | obj.CheckForError();
|
134 | 134 | end
|
135 | 135 |
|
136 | 136 | function result = get.Isc(obj)
|
137 | 137 | % (read-only) Short circuit currents at bus; Complex Array.
|
138 |
| - calllib(obj.libname, 'Bus_Get_Isc_GR'); |
| 138 | + calllib(obj.libname, 'ctx_Bus_Get_Isc_GR', obj.dssctx); |
139 | 139 | obj.CheckForError();
|
140 | 140 | result = obj.apiutil.get_float64_gr_array();
|
141 | 141 | end
|
142 | 142 |
|
143 | 143 | function result = get.Lambda(obj)
|
144 | 144 | % (read-only) Accumulated failure rate downstream from this bus; faults per year
|
145 |
| - result = calllib(obj.libname, 'Bus_Get_Lambda'); |
| 145 | + result = calllib(obj.libname, 'ctx_Bus_Get_Lambda', obj.dssctx); |
146 | 146 | obj.CheckForError();
|
147 | 147 | end
|
148 | 148 |
|
149 | 149 | function result = get.N_Customers(obj)
|
150 | 150 | % (read-only) Total numbers of customers served downline from this bus
|
151 |
| - result = calllib(obj.libname, 'Bus_Get_N_Customers'); |
| 151 | + result = calllib(obj.libname, 'ctx_Bus_Get_N_Customers', obj.dssctx); |
152 | 152 | obj.CheckForError();
|
153 | 153 | end
|
154 | 154 |
|
155 | 155 | function result = get.N_interrupts(obj)
|
156 | 156 | % (read-only) Number of interruptions this bus per year
|
157 |
| - result = calllib(obj.libname, 'Bus_Get_N_interrupts'); |
| 157 | + result = calllib(obj.libname, 'ctx_Bus_Get_N_interrupts', obj.dssctx); |
158 | 158 | obj.CheckForError();
|
159 | 159 | end
|
160 | 160 |
|
161 | 161 | function result = get.Name(obj)
|
162 | 162 | % (read-only) Name of Bus
|
163 |
| - result = calllib(obj.libname, 'Bus_Get_Name'); |
| 163 | + result = calllib(obj.libname, 'ctx_Bus_Get_Name', obj.dssctx); |
164 | 164 | obj.CheckForError();
|
165 | 165 | end
|
166 | 166 |
|
167 | 167 | function result = get.Nodes(obj)
|
168 | 168 | % (read-only) Integer Array of Node Numbers defined at the bus in same order as the voltages.
|
169 |
| - calllib(obj.libname, 'Bus_Get_Nodes_GR'); |
| 169 | + calllib(obj.libname, 'ctx_Bus_Get_Nodes_GR', obj.dssctx); |
170 | 170 | obj.CheckForError();
|
171 | 171 | result = obj.apiutil.get_int32_gr_array();
|
172 | 172 | end
|
173 | 173 |
|
174 | 174 | function result = get.NumNodes(obj)
|
175 | 175 | % (read-only) Number of Nodes this bus.
|
176 |
| - result = calllib(obj.libname, 'Bus_Get_NumNodes'); |
| 176 | + result = calllib(obj.libname, 'ctx_Bus_Get_NumNodes', obj.dssctx); |
177 | 177 | obj.CheckForError();
|
178 | 178 | end
|
179 | 179 |
|
180 | 180 | function result = get.SectionID(obj)
|
181 | 181 | % (read-only) Integer ID of the feeder section in which this bus is located.
|
182 |
| - result = calllib(obj.libname, 'Bus_Get_SectionID'); |
| 182 | + result = calllib(obj.libname, 'ctx_Bus_Get_SectionID', obj.dssctx); |
183 | 183 | obj.CheckForError();
|
184 | 184 | end
|
185 | 185 |
|
186 | 186 | function result = get.SeqVoltages(obj)
|
187 | 187 | % (read-only) Double Array of sequence voltages at this bus.
|
188 |
| - calllib(obj.libname, 'Bus_Get_SeqVoltages_GR'); |
| 188 | + calllib(obj.libname, 'ctx_Bus_Get_SeqVoltages_GR', obj.dssctx); |
189 | 189 | obj.CheckForError();
|
190 | 190 | result = obj.apiutil.get_float64_gr_array();
|
191 | 191 | end
|
192 | 192 |
|
193 | 193 | function result = get.TotalMiles(obj)
|
194 | 194 | % (read-only) Total length of line downline from this bus, in miles. For recloser siting algorithm.
|
195 |
| - result = calllib(obj.libname, 'Bus_Get_TotalMiles'); |
| 195 | + result = calllib(obj.libname, 'ctx_Bus_Get_TotalMiles', obj.dssctx); |
196 | 196 | obj.CheckForError();
|
197 | 197 | end
|
198 | 198 |
|
199 | 199 | function result = get.VLL(obj)
|
200 | 200 | % (read-only) For 2- and 3-phase buses, returns array of complex numbers represetin L-L voltages in volts. Returns -1.0 for 1-phase bus. If more than 3 phases, returns only first 3.
|
201 |
| - calllib(obj.libname, 'Bus_Get_VLL_GR'); |
| 201 | + calllib(obj.libname, 'ctx_Bus_Get_VLL_GR', obj.dssctx); |
202 | 202 | obj.CheckForError();
|
203 | 203 | result = obj.apiutil.get_float64_gr_array();
|
204 | 204 | end
|
205 | 205 |
|
206 | 206 | function result = get.VMagAngle(obj)
|
207 | 207 | % (read-only) Array of doubles containing voltages in Magnitude (VLN), angle (deg)
|
208 |
| - calllib(obj.libname, 'Bus_Get_VMagAngle_GR'); |
| 208 | + calllib(obj.libname, 'ctx_Bus_Get_VMagAngle_GR', obj.dssctx); |
209 | 209 | obj.CheckForError();
|
210 | 210 | result = obj.apiutil.get_float64_gr_array();
|
211 | 211 | end
|
212 | 212 |
|
213 | 213 | function result = get.Voc(obj)
|
214 | 214 | % (read-only) Open circuit voltage; Complex array.
|
215 |
| - calllib(obj.libname, 'Bus_Get_Voc_GR'); |
| 215 | + calllib(obj.libname, 'ctx_Bus_Get_Voc_GR', obj.dssctx); |
216 | 216 | obj.CheckForError();
|
217 | 217 | result = obj.apiutil.get_float64_gr_array();
|
218 | 218 | end
|
219 | 219 |
|
220 | 220 | function result = get.Voltages(obj)
|
221 | 221 | % (read-only) Complex array of voltages at this bus.
|
222 |
| - calllib(obj.libname, 'Bus_Get_Voltages_GR'); |
| 222 | + calllib(obj.libname, 'ctx_Bus_Get_Voltages_GR', obj.dssctx); |
223 | 223 | obj.CheckForError();
|
224 | 224 | result = obj.apiutil.get_float64_gr_array();
|
225 | 225 | end
|
226 | 226 |
|
227 | 227 | function result = get.YscMatrix(obj)
|
228 | 228 | % (read-only) Complex array of Ysc matrix at bus. Column by column.
|
229 |
| - calllib(obj.libname, 'Bus_Get_YscMatrix_GR'); |
| 229 | + calllib(obj.libname, 'ctx_Bus_Get_YscMatrix_GR', obj.dssctx); |
230 | 230 | obj.CheckForError();
|
231 | 231 | result = obj.apiutil.get_float64_gr_array();
|
232 | 232 | end
|
233 | 233 |
|
234 | 234 | function result = get.Zsc0(obj)
|
235 | 235 | % (read-only) Complex Zero-Sequence short circuit impedance at bus.
|
236 |
| - calllib(obj.libname, 'Bus_Get_Zsc0_GR'); |
| 236 | + calllib(obj.libname, 'ctx_Bus_Get_Zsc0_GR', obj.dssctx); |
237 | 237 | obj.CheckForError();
|
238 | 238 | result = obj.apiutil.get_float64_gr_array();
|
239 | 239 | end
|
240 | 240 |
|
241 | 241 | function result = get.Zsc1(obj)
|
242 | 242 | % (read-only) Complex Positive-Sequence short circuit impedance at bus..
|
243 |
| - calllib(obj.libname, 'Bus_Get_Zsc1_GR'); |
| 243 | + calllib(obj.libname, 'ctx_Bus_Get_Zsc1_GR', obj.dssctx); |
244 | 244 | obj.CheckForError();
|
245 | 245 | result = obj.apiutil.get_float64_gr_array();
|
246 | 246 | end
|
247 | 247 |
|
248 | 248 | function result = get.ZscMatrix(obj)
|
249 | 249 | % (read-only) Complex array of Zsc matrix at bus. Column by column.
|
250 |
| - calllib(obj.libname, 'Bus_Get_ZscMatrix_GR'); |
| 250 | + calllib(obj.libname, 'ctx_Bus_Get_ZscMatrix_GR', obj.dssctx); |
251 | 251 | obj.CheckForError();
|
252 | 252 | result = obj.apiutil.get_float64_gr_array();
|
253 | 253 | end
|
254 | 254 |
|
255 | 255 | function result = get.kVBase(obj)
|
256 | 256 | % (read-only) Base voltage at bus in kV
|
257 |
| - result = calllib(obj.libname, 'Bus_Get_kVBase'); |
| 257 | + result = calllib(obj.libname, 'ctx_Bus_Get_kVBase', obj.dssctx); |
258 | 258 | obj.CheckForError();
|
259 | 259 | end
|
260 | 260 |
|
261 | 261 | function result = get.puVLL(obj)
|
262 | 262 | % (read-only) Returns Complex array of pu L-L voltages for 2- and 3-phase buses. Returns -1.0 for 1-phase bus. If more than 3 phases, returns only 3 phases.
|
263 |
| - calllib(obj.libname, 'Bus_Get_puVLL_GR'); |
| 263 | + calllib(obj.libname, 'ctx_Bus_Get_puVLL_GR', obj.dssctx); |
264 | 264 | obj.CheckForError();
|
265 | 265 | result = obj.apiutil.get_float64_gr_array();
|
266 | 266 | end
|
267 | 267 |
|
268 | 268 | function result = get.puVmagAngle(obj)
|
269 | 269 | % (read-only) Array of doubles containig voltage magnitude, angle pairs in per unit
|
270 |
| - calllib(obj.libname, 'Bus_Get_puVmagAngle_GR'); |
| 270 | + calllib(obj.libname, 'ctx_Bus_Get_puVmagAngle_GR', obj.dssctx); |
271 | 271 | obj.CheckForError();
|
272 | 272 | result = obj.apiutil.get_float64_gr_array();
|
273 | 273 | end
|
274 | 274 |
|
275 | 275 | function result = get.puVoltages(obj)
|
276 | 276 | % (read-only) Complex Array of pu voltages at the bus.
|
277 |
| - calllib(obj.libname, 'Bus_Get_puVoltages_GR'); |
| 277 | + calllib(obj.libname, 'ctx_Bus_Get_puVoltages_GR', obj.dssctx); |
278 | 278 | obj.CheckForError();
|
279 | 279 | result = obj.apiutil.get_float64_gr_array();
|
280 | 280 | end
|
281 | 281 |
|
282 | 282 | function result = get.x(obj)
|
283 | 283 | % X Coordinate for bus (double)
|
284 |
| - result = calllib(obj.libname, 'Bus_Get_x'); |
| 284 | + result = calllib(obj.libname, 'ctx_Bus_Get_x', obj.dssctx); |
285 | 285 | obj.CheckForError();
|
286 | 286 | end
|
287 | 287 | function obj = set.x(obj, Value)
|
288 |
| - calllib(obj.libname, 'Bus_Set_x', Value); |
| 288 | + calllib(obj.libname, 'ctx_Bus_Set_x', obj.dssctx, Value); |
289 | 289 | obj.CheckForError();
|
290 | 290 | end
|
291 | 291 |
|
292 | 292 | function result = get.y(obj)
|
293 | 293 | % Y coordinate for bus(double)
|
294 |
| - result = calllib(obj.libname, 'Bus_Get_y'); |
| 294 | + result = calllib(obj.libname, 'ctx_Bus_Get_y', obj.dssctx); |
295 | 295 | obj.CheckForError();
|
296 | 296 | end
|
297 | 297 | function obj = set.y(obj, Value)
|
298 |
| - calllib(obj.libname, 'Bus_Set_y', Value); |
| 298 | + calllib(obj.libname, 'ctx_Bus_Set_y', obj.dssctx, Value); |
299 | 299 | obj.CheckForError();
|
300 | 300 | end
|
301 | 301 |
|
302 | 302 | function result = get.LoadList(obj)
|
303 | 303 | % List of strings: Full Names of LOAD elements connected to the active bus.
|
304 |
| - result = obj.apiutil.get_string_array('Bus_Get_LoadList'); |
| 304 | + result = obj.apiutil.get_string_array('ctx_Bus_Get_LoadList', obj.dssctx); |
305 | 305 | obj.CheckForError();
|
306 | 306 | end
|
307 | 307 |
|
308 | 308 | function result = get.LineList(obj)
|
309 | 309 | % List of strings: Full Names of LINE elements connected to the active bus.
|
310 |
| - result = obj.apiutil.get_string_array('Bus_Get_LineList'); |
| 310 | + result = obj.apiutil.get_string_array('ctx_Bus_Get_LineList', obj.dssctx); |
311 | 311 | obj.CheckForError();
|
312 | 312 | end
|
313 | 313 |
|
314 | 314 | function result = get.AllPCEatBus(obj)
|
315 | 315 | % Returns an array with the names of all PCE connected to the active bus
|
316 |
| - result = obj.apiutil.get_string_array('Bus_Get_AllPCEatBus'); |
| 316 | + result = obj.apiutil.get_string_array('ctx_Bus_Get_AllPCEatBus', obj.dssctx); |
317 | 317 | obj.CheckForError();
|
318 | 318 | if (~isempty(result))
|
319 | 319 | result{end + 1} = '';
|
|
324 | 324 |
|
325 | 325 | function result = get.AllPDEatBus(obj)
|
326 | 326 | % Returns an array with the names of all PDE connected to the active bus
|
327 |
| - result = obj.apiutil.get_string_array('Bus_Get_AllPDEatBus'); |
| 327 | + result = obj.apiutil.get_string_array('ctx_Bus_Get_AllPDEatBus', obj.dssctx); |
328 | 328 | obj.CheckForError();
|
329 | 329 | if (~isempty(result))
|
330 | 330 | result{end + 1} = '';
|
|
0 commit comments