yaron
New Member
Posts: 1
|
Post by yaron on Dec 20, 2020 8:43:53 GMT -5
Hi Everyone
The python script that was given as example works wonderful. However, the reason for obtaining the F71 was to measure AC (1-100Hz) fields and therefore I need some help on that.
I did turn the measurement mode to AC, however, the line ibtainting the data into a file: # Collect 100 seconds of 10 ms data points and write them to the csv file
my_teslameter.log_buffered_data_to_file(100, 10, file) does not give the frequency,
Any ideas
Thanks
Yaron
you can write me directly at Yaron@brainQtech.com
|
|
|
Post by Lake Shore Jeff M on Dec 21, 2020 8:45:30 GMT -5
The example python scrip captures a DC measurement by sending the SCPI, FETCh DC? command and recording the resulting values. To capture the RMA or Peak-to-Peak values you would need to modify the script to remove the FETCh DC? command and replace it with the one or all of the following commands:
FETCh FREQ? - returns the dominate Frequency FETCh RMS? - returns the RMS value of the axis specified FETCh Peak - returns the peak-to-peak measurement of the axis specified
Please review section 4.5.2 in the Model F71 User Manual for information regarding the SCPI commands that can be used with the Teslameter
Please note that although we do provide drivers and example applications, Lake Shore does not provide individual application development support for Python or Lab View software
|
|
|
Post by Lake Shore Ryan on Dec 21, 2020 10:30:24 GMT -5
And if you're looking for more options when it comes to the python scripts, the documentation is here: lake-shore-python-driver.readthedocs.io/en/latest/teslameter.htmlI think from your description, you're using the buffered streaming option, which is only setup to read DC values? myTeslameter.get_buffered_data_points(*args, **kwargs) Which field values in particular are you looking to record? Since you're wanting to record frequency readings, you probably don't need to record those values more often than once per second. Are you also wanting to record RMS and DC offset? The frequency and RMS requests are just: myTeslameter.get_frequency()
myTeslameter.get_rms_field() Maybe you could ask for one second of buffered data, then frequency, and RMS, then another second of buffered data? Keep looping through that until you have the amount of data you're looking for? As long as you can get the frequency and RMS data out of the instrument fast enough, you shouldn't loose any of the data being buffered. If you do notice you're not able to get the data out fast enough, you might extend the buffer to 100 ms intervals? Just depends on what you're trying to capture I guess. Feel free to respond with more information about what you're doing and we can make other suggestions. Glad to hear you're getting some use out of the python scripts we added to the teslameter.
|
|