How can i use NxSDK

No. The code I posted requires the simulation to be run on the physical board itself to collect the energy numbers. If the board isn’t available, the nxsdk_board object cannot be created (or used).