Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page

# genBSDF in Windows 10

Hello community

I'm trying to use genBSDF in MS Windows 10 but I always get the same error. I've tried different computers, legacy versions of Radiance, the .exe version from Jaloxa, and the Strawberry Perl and ActivestatePerl compiler. Is this a general windows 10 issue or is it specific to me?

(I'm just using the basic blind exercise from the genBSDF tutorial. I've also tried other examples though).

The error message is below:

"

C:\Users\EVER7798\Documents\gen>genBSDF.pl +f +b -c 500 -geom inch blinds.rad 1>test_results.xml Use of uninitialized value $tmploc in scalar chomp at C:\radiance\bin\genBSDF.pl line 33. Use of uninitialized value$tmploc in concatenation (.) or string at C:\radiance\bin\genBSDF.pl line 34. Can't spawn "cmd.exe": No such file or directory at C:\radiance\bin\genBSDF.pl line 171. Could not load Radiance input

"

I also notice falsecolor.pl and genskyvec.pl does not work with windows 10. Is there a general issue with Perl scripts in Windows?

Thanks for any input

## Update 19/06/2018

Thanks for replying sarith and rpg777, I tried what you've said and I've found that if I DO NOT assign the system path and raypath, the perl files run ok with the exception of genBSDF. (if I assign the system and ray path, only objview works).

With the paths assigned genBSDF immediately crashes. Without the paths assigns genBSDF runs a while then returns an error message.

See images below with / without the below statements:

"SET RAYPATH= .;c:\Radiance\lib" and "PATH= c:\Radiance\bin; $PATH" I also include the text from the batch file I'm using. Could another person try this on their windows 10 (change the file paths of course!). Has anyone else any ideas what is going wrong? this is the batch file I'm using... :start of batch----------------------------------------- SET RAYPATH= .;c:\Radiance\lib PATH= c:\Radiance\bin;$PATH

c: cd C:\Users\EVER7798\Documents\perl_test

"C:\Program Files\Strawberryperl\Strawberry Perl 5.26\perl\bin\perl" "C:\Radiance\bin\falsecolor.pl" -i test_image.hdr -l cd/m2 -lw 100 -lh 200 > test_image_fc.hdr"

::---------------- gensky 12 11 10 > test_sky.sky "C:\Radiance\perl\bin\perl.exe" "C:\Radiance\bin\genskyvec.pl" < test_sky.sky > test_sky_vec.sky ::----------------

::---------------- @echo void plastic white 0 0 5 0.7 0.7 0.7 0 0 > blinds_material.rad genblinds white blinds 1 2 4 4 20 | xform -rz 90 -rx -90 > blinds.rad ::----------------

pause :::end of batch-----------------------------------------------------------

edit retag close merge delete

Sort by » oldest newest most voted

Try calling Perl ahead of your genBSDF call like Sarith is doing, or fix your Perl installation so that's not necessary.

UPDATE 2018.06.19 As Nathaniel says, use the proper variable syntax for appending the existing PATH to your new PATH. But I would recommend you place these statements (setting PATH and RAYPATH) in your system setup, not in the batch file. UPDATE 2018.06.21 NREL has issued a new set of installers, please try the Radiance 5.2.1 installer, available here.

more

( 2018-06-19 06:15:46 -0500 )edit

You are using UNIX syntax on a Windows machine. $PATH won't do anything on Windows. You have to use %PATH%. more Are you sure that your perl installation is correctly setup? Both falsecolor and genskyvec are working for me on Windows 10. more ## Comments thanks sarith - ive tried your advice - see above ( 2018-06-19 06:15:58 -0500 )edit Thankyou sarith and rpg777 in the end the answer was many small issues... 1. When adding radiance to the system path you should use the symbol "%" not "$" as used in the honeybee batch files

2. when adding radiance to the system path, it much be appended to the end: PATH= %PATH%; C:\Program Files\OpenStudio\openstudio 2.4.0\Radiance\bin

(even putting at the front - "PATH=C:\Program Files\OpenStudio\openstudio 2.4.0\Radiance\; %PATH%" will not work)

(3. I also managed to confuse myself by leaving a space after the rad path which makes problems! It became visible in VS Code - that's why we don't code in notepad :-) )

1. The current realise of genBSDF (rad 5.2.0) does not work (on my work and home computer) for windows 10. The radiance packaged with openstudio (os 2.4, rad 5.0.a.12) does work.

I hope that's useful to other windows users getting this problem. Thanks again guys!

more

OK, then we are not done yet. If the latest release does not work, we need to fix it. Can you please first test with the latest release (5.2.1), and report back here with your results? And if it does not work, please let us know what is happening.

( 2018-06-25 10:40:48 -0500 )edit

Hello rpg777

I've tested rad 5.2.1 and I get the same error as previously mentioned. The same code works ok in rad 5.0.a.12. For clarity my code is:

"C:\Program Files\OpenStudio\openstudio 2.4.0\Perl\perl\bin\perl.exe" "C:\Radiance 5.2.1\bin\genBSDF.pl" +b -c 10 -geom meter C:\Users\EVER7798\Documents\LCA_mesh\mesh.rad > C:\Users\EVER7798\Documents\LCA_mesh\mesh_klems.xml

and the rad 5.2.1 error message is:

wrapBSDF: Klems data error from 'C:\Users\EVER7798\AppData\Local\Temp\genBSDF.cr_ZeJ\tb.dat' Could not wrap BSDF data

( 2018-06-28 03:03:30 -0500 )edit

You're calling Perl from an older OpenStudio install, but that shouldn't matter. Can you share your input file somewhere so I can test it here?

( 2018-06-28 18:57:04 -0500 )edit

https://www.dropbox.com/sh/bcntwo8x6h...

( 2018-07-03 02:25:43 -0500 )edit