Skip to content

Commit

Permalink
Merge pull request #14 from maclariz/92
Browse files Browse the repository at this point in the history
Update hallEffect.py
  • Loading branch information
maclariz authored Sep 25, 2023
2 parents 990a41b + daaf6d9 commit b5e08d9
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/HallPy_Teach/experiments/hallEffect.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,15 @@ def draw3DHELabGraphs(dataToGraph):
plt.show()


def doExperiment(expInsts=None, emVolts=None, supVoltSweep=(), dataPointsPerSupSweep=0, measurementInterval=1, dataFileName=None):
def doExperiment(
expInsts=None,
emVolts=None,
supVoltSweep=(),
dataPointsPerSupSweep=0,
measurementInterval=1,
dataFileName=None,
plot=True
):
"""Function to perform the Hall Effect experiment
For every emVolt from input the experiment will sweep across the hall bar supply voltages provided in the supVoltSweep
Expand Down Expand Up @@ -374,7 +382,8 @@ def doExperiment(expInsts=None, emVolts=None, supVoltSweep=(), dataPointsPerSupS
}

clear_output(wait=True)
draw3DHELabGraphs(data)
if plot=True:
draw3DHELabGraphs(data)
showLiveReadings(liveReading)

curSupVolt += supVoltIncrement
Expand Down

0 comments on commit b5e08d9

Please sign in to comment.