Skip to content

synch_ai_ao.py incompatible with Py3.5 after applying syntax fixes #12

@delicious-cake

Description

@delicious-cake

after fixing the statements i get the following error:

-------------------------------------------------------------------------
ArgumentError                             Traceback (most recent call last)
<ipython-input-5-0626f0ea1e5b> in <module>()
     72 
     73 daqmx.RegisterEveryNSamplesEvent(AItaskHandle,daqmx.Val_Acquired_Into_Buffer,
---> 74                                  buffsize, 0, EveryNCallback, id_data)
     75 
     76 

C:\Anaconda3\lib\site-packages\daqmx\core.py in RegisterEveryNSamplesEvent(taskHandle, everyNsamplesEventType, nSamples, options, callbackFunction, callbackData)
    406     rv = dmx.DAQmxRegisterEveryNSamplesEvent(taskHandle, 
    407             int32(everyNsamplesEventType), uInt32(nSamples), uInt32(options),
--> 408             callbackFunction, callbackData)
    409     ErrorHandling(rv)
    410 

ArgumentError: argument 6: <class 'OverflowError'>: int too long to convert

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions