-
Notifications
You must be signed in to change notification settings - Fork 99
Closed
Labels
Description
I'm running the nifgen_standard_function.py example and am unsure as to why it's producing this output:
File "C:\Users\att\Documents\nimi-python-master\nimi-python-master\src\nifgen\examples\nifgen_standard_function.py", line 47, in <module>
main()
File "C:\Users\att\Documents\nimi-python-master\nimi-python-master\src\nifgen\examples\nifgen_standard_function.py", line 33, in main
_main(sys.argv[1:])
File "C:\Users\att\Documents\nimi-python-master\nimi-python-master\src\nifgen\examples\nifgen_standard_function.py", line 29, in _main
example(args.resource_name, args.option_string, args.waveform, args.frequency, args.amplitude, args.offset, args.phase, args.time)
File "C:\Users\att\Documents\nimi-python-master\nimi-python-master\src\nifgen\examples\nifgen_standard_function.py", line 10, in example
with nifgen.Session(resource_name=resource_name, options=options) as session:
File "C:\Users\att\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\nifgen\session.py", line 3067, in __init__
self._vi = self._initialize_with_channels(resource_name, channel_name, reset_device, options)
File "C:\Users\att\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\nifgen\session.py", line 4091, in _initialize_with_channels
error_code = self._library.niFgen_InitializeWithChannels(resource_name_ctype, channel_name_ctype, reset_device_ctype, option_string_ctype, None if vi_ctype is None else (ctypes.pointer(vi_ctype)))
File "C:\Users\att\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\nifgen\_library.py", line 444, in niFgen_InitializeWithChannels
return self.niFgen_InitializeWithChannels_cfunc(resource_name, channel_name, reset_device, option_string, vi)
OSError: [WinError -1066598273] Windows Error 0xc06d007f
I have downloaded the NI-FGEN (version 20.0.0) driver from the National Instruments website and am using python module nifgen=1.3.2.
Any tips on how to fix the error would be appreciated!