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

genBSDF in Windows 10

asked 2018-06-13 06:18:47 -0500

john.everist gravatar image

updated 2018-06-19 06:15:09 -0500

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?

image description image description

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 ::----------------

::---------------- "C:\Radiance\perl\bin\perl.exe" "C:\Radiance\bin\objview.pl" blinds_material.rad blinds.rad ::----------------

::getbbox blinds.rad

::---------------- "C:\Radiance\perl\bin\perl.exe" "C:\Radiance\bin\genBSDF.pl" +f +b -c 1 -geom meter C:\Users\EVER7798\Documents\perl_test\blinds_material.rad C:\Users\EVER7798\Documents\perl_test\blinds.rad > C:\Users\EVER7798\Documents\perl_test\blinds.xml ::----------------

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

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2018-06-18 09:03:59 -0500

Sarith gravatar image

Are you sure that your perl installation is correctly setup? Both falsecolor and genskyvec are working for me on Windows 10.

image description

image description

edit flag offensive delete link more

Comments

thanks sarith - ive tried your advice - see above

john.everist gravatar imagejohn.everist ( 2018-06-19 06:15:58 -0500 )edit
1

answered 2018-06-18 11:37:14 -0500

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

edit flag offensive delete link more

Comments

thanks rpg777 - ive tried your advice - see above

john.everist gravatar imagejohn.everist ( 2018-06-19 06:15:46 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2018-06-13 06:18:47 -0500

Seen: 73 times

Last updated: 2 hours ago