For my Cryptography classes I wrote a small application that calculates a total number of unique Cardan grilles and generates some of them. You can download it here (Windows 64 bit only!).
I also generated 262144 unique Cardan grilles for a 6×6 square. This is also available for download. Enjoy!