Dear Lucie,
[Script updated 8/20/2020]
If you have a set of historical weather files weather data for your location, you can use the
hourly-data-from-multiple-weather-files.lk script I posted on the Samples page in SAM's GitHub repository to create a CSV file with hourly (or subhourly) generation data:
github.com/NREL/SAM/blob/develop/samples/LK%20Scripts%20for%20SAM/
To download the file, click the file name in the list of sample scripts, and then right-click
Raw in the toolbar above the script and save the script to your computer:
You can try the new version of PVGIS to get historical weather data for locations outside of the Unites States:
re.jrc.ec.europa.eu/pvgis.html
Best regards,
Paul.