2

JEplus - painful transition from rvi to rvx

Hello there, in order to start using jEPlus v1.6 I understand I need to move from rvi to rvx for collecting results.

I am a bit confused on how to do this, as well as on some apparently unwanted consequences.

My rvi file, called "A0_v4.rvi" had the following content:

eplusout.eso
eplusout.csv
Site Outdoor Air Drybulb Temperature
Zone Air Temperature
Zone Operative Temperature
Zone Air Relative Humidity
Zone Exterior Windows Total Transmitted Beam Solar Radiation Rate
Zone Exterior Windows Total Transmitted Beam Solar Radiation Rate
Interior Windows Total Transmitted Beam Solar Radiation Rate
0
!-sqlite
! Output file name; Column headers; SQL command
constructions; botti; SELECT * FROM Constructions   
!-end sqlite

I have addedd an rvx "A0_v4.rvx" file as follows:

{
    "notes" : "First RVX test",

    "rvis" : [ 
        { 
            "fileName" : "A0_v4.rvi",
            "tableName" : "BottiRVXResults"
        }
    ],
    "csvs" : [
        {...
        }
    ]
}

As a result of that, the "SimResults.csv" file is not generated any more, plus all simulations folder names would change from a parametername_parametervalue structure (i.e. "EP_G-T_0-W_0-CH_0-WWR_0-X0_0-Z0_0-X2_0-Z2_0") to an incremental number kind-of-name (i.e. "EP_G000000000,1,2" etc).

Can you please advise how I should fix this?

Thanks, Anddrea

andrea.botti's avatar
415
andrea.botti
asked 2016-06-06 13:09:03 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2016-06-06 14:06:49 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Hi Andrea,

Sorry about the pain :-) RVI still works in v1.6 if you are collecting only annual results. For other report frequencies, you need to specify it in the RVX:

{
    "notes" : "First RVX test",

    "rvis" : [ 
        { 
            "fileName" : "A0_v4.rvi",
            "tableName" : "BottiRVXResults",
            "frequency" : "Hourly",
            "usedInCalc" : true
        }
    ],
    "csvs" : [
        {...
        }
    ]
}

If you need the output table to be named "SimResults.csv", just set "tableName" to "SimResults". The case naming convention of jEPlus switches from parameter indexes to serial numbers if the project has 7 or more parameters. This is for preventing long path names, which can cause problems for large projects.

Regards,

Yi

Yi Zhang's avatar
1.2k
Yi Zhang
answered 2016-06-06 14:43:01 -0500
edit flag offensive 0 remove flag delete link

Comments

Yi, thank you very much for your reply. I am still struggling to make it work though. The rvi file I have attached works for version 1.5.2, and it successfully creates a SimResults.csv file.

The same rvi files, however, does not work for for version 1.6.3, and the amended rvx as per your suggestion generates the error message: "Cannot read rvi/rvx file. RVX is not available. No simulations results will be collected". Any ideas why?

andrea.botti's avatar andrea.botti (2016-06-07 05:47:11 -0500) edit

There are probably syntax error in your RVX file. It is quite easy to miss a comma here or there. Copy and paste the contents of the RVX to here: http://jsonlint.com/, it will tell you what's wrong.

Yi Zhang's avatar Yi Zhang (2016-06-07 06:20:24 -0500) edit

Yi, apologies for being a pain, but I have checked the rvx file at http://jsonlint.com/ and the json is valid! Still, results are not being collected.

{
    "notes": "First RVX test",

    "rvis": [{
        "fileName": "A0_v4.rvi",
        "tableName": "BottiRVXResults",
        "frequency": "Hourly",
        "usedInCalc": true
    }],
    "csvs": [{
        "fileName": "A0_v4.rvi",
        "tableName": "BottiRVXResults",
        "frequency": "Hourly",
        "usedInCalc": true
    }]
}
andrea.botti's avatar andrea.botti (2016-06-07 07:45:59 -0500) edit

Ah, are you using the "csvs" object? It is for reading results from the eplustbl.csv file. If not, just delete the whole "csvs" part and the preceding comma.

Yi Zhang's avatar Yi Zhang (2016-06-07 08:19:42 -0500) edit

Yi, thanks for your reply. This has solved my issue. I will try to explore more functions of the rvx format, particularly Python scripts.

andrea.botti's avatar andrea.botti (2016-06-09 07:27:01 -0500) edit
add a comment see more comments