-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
63 lines (54 loc) · 1.95 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
2021-05-18WF
- copied DollarReward task and ViewPoint 2.9.2.5
TODO:
- need eyetracking computer password (kvm bottom labeled "unused")
- setup crossover cable link? (ipconfig has no interface, need admin)
- debug DLL loading
>>> sys.version
'3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)]'
>>> VPXDLL = "C:/Users/Clark/Desktop/ViewPoint 2.9.2.5/VPX_InterApp.dll"
>>> os.path.exists(VPXDLL)
True
>>> from ctypes import cdll, CDLL
>>> cdll.LoadLibrary(VPXDLL)
OSError: [WinError 193] %1 is not a valid Win32 application
2021-06-29 - on laptop
>>> VPXDLL="C:/ARI/VP/VPX_InterApp.dll"
>>> os.path.exists(VPXDLL)
True
>>> cdll.LoadLibrary(VPXDLL)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\PsychoPy\lib\ctypes\__init__.py", line 426, in LoadLibrary
return self._dlltype(name)
File "C:\Program Files\PsychoPy\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
same error when it doesn't exit
>>> cdll.LoadLibrary(VPXDLL+'x')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\PsychoPy\lib\ctypes\__init__.py", line 426, in LoadLibrary
return self._dlltype(name)
File "C:\Program Files\PsychoPy\lib\ctypes\__init__.py", line 348, in __init__
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
####
# not sending?
#####
>>> from ctypes import cdll, CDLL
>>> vpx = CDLL(r"C:/Windows/System32/VPX_InterApp_64.dll")
>>> vpx.VPX_GetStatus(1)
1
>>> vpx.VPX_SendCommand('dataFile_NewName "%s"' % "abc")
0
>>> vpx.VPX_SendCommand('dataFile_NewName "%s"' % "abc")
0
>>> vpx.VPX_SendCommand('dataFile_Close 0')
0
>>> vpx.VPX_SendCommand('dataFile_InsertString "%s"' % "1")
0
>>> vpx.VPX_SendCommand('dataFile_NewName "%s"' % "abc")
0
>>> vpx.VPX_SendCommand('dataFile_InsertString "%s"' % "1")
0