from PyDAQmx.DAQmxFunctions import *

def getDeviceName():
	buffer = create_string_buffer(1024)
	# Buffer will break if too many devices, like 10 or 15, make number 100 bigger if you have to
	b = c_ulong(1024)
	DAQmxGetSysDevNames(buffer, b)
	return a.value.decode('utf-8').split(',')[-1].strip()
from PyDAQmx.DAQmxFunctions import *

def getDeviceName():
	buffer = create_string_buffer(1024)
	# Buffer will break if too many devices, like 10 or 15, make number 100 bigger if you have to
	b = c_ulong(1024)
	DAQmxGetSysDevNames(a, b)
	return a.value.decode('utf-8').split(',')[-1].strip()
Revert "Reassign a variable following previous commit"
Revert "Reassign a variable following previous commit"

This reverts commit 5c963691d3af4cddb0e3090a709110573ac97f6a.
