05-25-2018 09:24 AM
Hello, my code consists of changing the gate-source voltage of a mosfet from 0 to 10 V and this should swipe along the I-V curve of PV module. Whatever be my sampling time, i should have an I-V curve at the end. My Vgs should increase in steps of 0.001V every 0.01s. The problem i am facing is that I am not able to swipe along the curve. My current and voltage sensors are callibrated correctly. I am using the NI 9184 chassis with submodules NI 9205 and 9923 to acquire and generate the voltages respectively. I am attaching my code. Please help me out if someone got a solution.
05-25-2018 10:06 AM
Your diagram is way too big and disorganized for me to do much, but here are some pointers.
05-25-2018 11:47 AM - edited 05-25-2018 11:54 AM
*facepalm*
Everything altenbach said x10.
The first thing you need to do is scrap this and use a proper program architecture like a state machine.
One big loop (OBL) IS NOT A PROPER PROGRAMMING ARCHITECTURE.
Also don't be afraid of making a sub-vi and bundling wires into clusters.
Unrelated to your code... You are depending on the linear region of your MOSFET to be very wide and well, linear. Most MOSFETS do not have a very large linear region and tend to be on or off. That is why they make such good high speed switching transistors.