You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure why it only occurs on the second run, as I believe I closed and quit properly before reopening again. Also, I don't know if it is just my system that is not working right, but I cannot run gdx = gdx.gdx() inside of any function. This line only ever works outside of a function or class.
The text was updated successfully, but these errors were encountered:
The Index error appears to occur because the read list must be empty. I'm not sure why that is happening on your second run. For troubleshooting I might suggest that you create a program that does not loop your whole data collection program. Instead, just run the whole program once, and then run the whole program a second time. Does the error still occur?
I am curious why you are looping the entire program in the first place? In other words, why connect and disconnect the USB over and over? It would be better if you connect the device and configure your channels one time at the start of your program, and then start collecting data, then stop, perform other tasks..., then start collecting data, then stop, perform other tasks, etc.. and then, at the end of the program, close and quit one time.
I would also suggest that you perform all of the imports and setting gdx = gdx.gdx() at the beginning of your program. This also follows the general Python style guide.
I seem to get IndexError after running the code below.
switchtemp.txt
The output from the terminal is:
erroroutput.txt
I'm not sure why it only occurs on the second run, as I believe I closed and quit properly before reopening again. Also, I don't know if it is just my system that is not working right, but I cannot run gdx = gdx.gdx() inside of any function. This line only ever works outside of a function or class.
The text was updated successfully, but these errors were encountered: