TechNote New ways to import loadshapes
Importing Packed Binary Files into Array Properties
Capabilities for importing packed files of doubles or singles into floating point array properties have been added.
For example, you can use the following syntax for array properties:
Mult=[file=myfile.txt]
Mult=[dblfile=myfile.dbl]
Mult=[sngfile=mufile.sng]
This should speed up the importing of AMI data into Loadshape objects. You can create the .dbl and .sng files with any language that can create packed binary files.
If you are working with VBA, look at help on the Put & Get statements. Also, you can use Action property in the Loadshape Object to use OpenDSS to create the dbl and sng files.
First, you read the loadshape data into the program from text files or just putting the data into a long text array. Then you would issue this command, for example:
Loadshape.myloadshape.action=sngsave
This will save the presently defined myloadshape values into
Myloadshape_P.sng
If you defined Qmult, you will also get
Myloadshape_Q.sng
In the Result window, you will get an example script you can use for importing this data in its new format.
So you can read in your loadshapes one time from text files and save them to files of singles, for example. (Singles are usually sufficent for loadshapes.) Then subsequent simulations should go faster. (Be sure to edit your scripts after the first time.) This should be a big help if loading 8760hr curves for every meter.
See also TechNote CvrtLoadShapes Command. This command has been added to supplement this capability.