Implementation of the Z-scan technique using NI cRIO 9074 system