Search found 6 matches

by colinb
Wed Jan 24, 2018 9:17 am
Forum: General Software Discussions
Topic: USB TC-08 in python
Replies: 27
Views: 57260

Re: USB TC-08 in python

Dear Hitesh, This helps so much, the suggestion you gave works well and the problem is solved. The code which works is given below for reference import ctypes import numpy as np from ctypes import * mydll = ctypes.windll.LoadLibrary('usbtc08.dll') device = mydll.usb_tc08_open_unit() mydll.usb_tc08_s...
by colinb
Tue Jan 16, 2018 8:34 am
Forum: General Software Discussions
Topic: USB TC-08 in python
Replies: 27
Views: 57260

Re: USB TC-08 in python

Hi Hitesh, Thank you, I can confirm that when I use 32 bit python with the 32 bit driver the program works fine. However, the software I am using controls other devices that require me to use 64 bit python. Do you know how I can fix the problem of using a 64 bit python using the 64 bit driver? Kind ...
by colinb
Wed Jan 03, 2018 12:11 pm
Forum: General Software Discussions
Topic: USB TC-08 in python
Replies: 27
Views: 57260

Re: USB TC-08 in python

Hello Hitesh, Happy new year and thank you for the reply :D typing python on the command line I get: Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32 I believe it is the 64 bit python envirnoment... when I run import sys print("%x" % sys.max...
by colinb
Thu Dec 21, 2017 1:19 pm
Forum: General Software Discussions
Topic: USB TC-08 in python
Replies: 27
Views: 57260

Re: USB TC-08 in python

Hello Hitesh, Thank you for your reply. When I run with the 32 bit driver (and the picolog application installed) I get the following error Traceback (most recent call last): File "temp.py", line 4, in mydll = ctypes.windll.LoadLibrary('usbtc08.dll') File "C:\Users\colinb\AppData\Local\Cont...
by colinb
Fri Dec 15, 2017 10:56 am
Forum: General Software Discussions
Topic: USB TC-08 in python
Replies: 27
Views: 57260

Re: USB TC-08 in python

Hello Hitesh, Thank you for your kind reply and help. The code I am using is shown here import ctypes import numpy as np from ctypes import * mydll = ctypes.windll.LoadLibrary('usbtc08.dll') device = mydll.usb_tc08_open_unit() mydll.usb_tc08_set_mains(device,50) temp = np.zeros( (9,), dtype=np.float...
by colinb
Thu Dec 14, 2017 7:57 am
Forum: General Software Discussions
Topic: USB TC-08 in python
Replies: 27
Views: 57260

Re: USB TC-08 in python

Hello, I have tried using the code as supplied by Martyn to control a TC-08 temperature logger, but am getting the following error mydll.usb_tc08_get_single(device, temp.ctypes.data, overflow_flags.ctypes.data, 0) ctypes.ArgumentError: argument 2: : int too long to convert I a...