This interface can be used to read/write certain properties of the active DSS object. The structure of the interface is as follows:


double BUSF(int32_t Parameter, double Argument);


This interface returns a floating point number (64 bits) according to the number sent in the variable “parameter”. The parameter can be one of the following:


Parameter 0: Bus.kVBase

This parameter returns the base voltage at bus in kV.


Parameter 1: Bus.X - read

This parameter returns the X coordinate for the bus.


Parameter 2: Bus.X - Write

This parameter allows to write the X coordinate for the bus. Returns 0.


Parameter 3: Bus.Y - read

This parameter returns the Y coordinate for the bus.


Parameter 4: Bus.Y - Write

This parameter allows to write the Y coordinate for the bus. Returns 0.


Parameter 5: Bus.Distance

This parameter returns the distance from the energymeter (if non-zero).


Parameter 6: Bus.Lambda

This parameter returns the accumulated failure rate downstream from this bus; faults per year.


Parameter 7: Bus.N_Interrupts

This parameter returns the number of interruptions this bus per year.


Parameter 8: Bus.Int_Duration

This parameter returns the average interruption duration in hours.


Parameter 9: Bus.Cust_interrupts

This parameter returns the annual number of customer interruptions from this bus.


Parameter 10: Bus.Cust_duration

This parameter returns the accumulated customer outage duration.


Parameter 11: Bus.Totalmiles

This parameter returns the total length of line down line from this bus, in miles. For recloser siting algorithm.


Parameter 12: Bus.Latitude read

This parameter returns the GIS latitude assigned to the active bus (if any).


Parameter 13: Bus.Latitude Write

This parameter sets the GIS latitude to the active bus using the value given at the argument.


Parameter 14: Bus.Longitude read

This parameter returns the GIS longitude assigned to the active bus (if any).


Parameter 15: Bus.Longitude Write

This parameter sets the GIS longitude to the active bus using the value given at the argument.