Yes but do you have any reason to believe that this would provide an advantage? When you hook up a generator to your shaft, if the shaft is losing 500 hp to the generator, then the generator is still only able to use maybe 300 hp of that. There's an efficiency issue in that transfer just like there is when you pour more chemical energy in the form of diesel fuel into the first engine and get less hp out of it than what you pour in. So, the more links you add in this chain, the greater the number of places where you are losing energy due to the second law of thermodynamics.
I honestly can't see how hooking a generator up to the shaft to power lights and computers and such would be more efficient than just running them off of normal building power or just slapping some solar panels on the roof and using those to power the lights.
Most wind tunnels are currently run with electric motors that run off of the building's existing power architecture anyway. In essence, then, you are trying to build a system here that can provide power to your wind tunnel in a manner that is more efficient (or at least less carbon-intensive) than just using the electricity produced at a power plant somewhere. As of right now, you aren't likely to realize savings in money or carbon by using an on-site diesel generator rather than mains electricity. If your goal is to simply find a greener replacement for running the whole facility off of mains electricity, you are probably better off just installing solar/wind in your building to provide as much power as is feasible, or exploring something like a solid-oxide fuel cell such as the
Bloom Energy Servers that Google uses to power some of its data centers. Those are only cost effective in some parts of the country, though.