08-20-2025 04:14 AM
I want to apply vd and vs simultaneously through Keysight B2901B and apply DC bias Vg through Hioki IM3536 and then get an Id current. I want to be able to display Id-Vgs or Id-Vds on front panel and save it as csv file. please help with the code I am a beginner student.
08-20-2025 04:32 AM - edited 08-20-2025 04:33 AM
Hi bhuyanashima,
@bhuyanashima wrote:
I want to apply vd and vs simultaneously through Keysight B2901B and apply DC bias Vg through Hioki IM3536 and then get an Id current.
I want to be able to display Id-Vgs or Id-Vds on front panel and save it as csv file.
What have you tried to achieve all the stuff you "want to"?
@bhuyanashima wrote:
please help with the code I am a beginner student.
Sure: what have you tried so far?
Mind to show your current code?
Where are you stuck?
08-20-2025 12:17 PM
I don't seem to be getting a measurement even after applying 3 for loops separately for Vg, Vd and Vs.
08-20-2025 12:44 PM - edited 08-20-2025 12:48 PM
We cannot debug a photograph of a diagram, but we can tell that you code has no recognizable architecture, not even a toplevel loop!
There is a circular dependency where LabVIEW falsely auto-inserted a feedback node, eliminating a broken wire, but creating useless code. (Your shift register is initialized before the loop with an array where the size depends on values that are only available after the loop has completed. Makes no sense! Have you really thought this through????)
Attach your VI, make sure all controls have reasonable default values, an explain exactly how you use it, what you observe, and what you like to see instead.
08-21-2025 02:38 AM - edited 08-21-2025 02:39 AM
Based on the code you showed, I suggest to take a step back and break the problem into small chunks, because it seems that you wanted to solve the entire task at once, without understanding the individual problems.
Start with the most basic. Manually set a voltage on your Hioki (without programming). Then make a program just to apply a voltage ramp on your Keysight and plot Id vs Vd. Make use of subVIs for all Keysight calls (generally you don't want to see any device specific code on the main VI, it should be in subVIs, preferably part of a library (or class). Also make sure that no wires run right-to-left! It will give you a much more organized code.
Once you solve that, add the code for the Hioki. Again, in subVIs (part of a library or class). Test the code individually before applying it to the main program.
Solve the problem step-by-step and you'll get there.
P.S.
A MOSFET has 3 contacts. You should apply 2 voltages (not 3): Vg and Vd (both references to Vs)
08-21-2025 04:10 AM
when i run the code, nothing shows up on the xy plot. i want Id-Vg curve or Id-Vd curve to show up on the curve
08-21-2025 04:24 AM
08-21-2025 05:12 AM
this one?
08-21-2025 05:51 AM - edited 08-21-2025 05:53 AM
Hi bhuyanashima,
thanks for downconversion.
@bhuyanashima wrote:
when i run the code, nothing shows up on the xy plot.
Because you did NOT follow any of the given advice/comments!
08-26-2025 12:39 PM
hello i am back with a new code for the same problem. also we are intending to use RIGOL for DC biasing. we are getting the problem of OCP tripping. how do we solve it?