Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 278 Bytes
#!/usr/bin/env python
import visa
rm = visa.ResourceManager()
numEle = len(rm.list_resources())
def iteration(start, end, step): #define a for loop function
while start <= end:
yield start
start += step
for i in iteration(0, numEle-1, 1):
print(rm.list_resources()[i])
You can’t perform that action at this time.