Quantcast
Channel: Multifunction DAQ topics
Viewing all articles
Browse latest Browse all 7020

NIDaqmx (NI-PXIe-6363) Python: register signal event

$
0
0

Hello ,

 

We are using an NIDaqmx (NI-PXIe-6363) with Python. We try to register an digital input as trigger source to an task.

 

Code snip :

 

 

self.myTask = nidaqmx.Task( new_task_name='digital line event change detection')
self.myTask.di_channels.add_di_chan("/PXI1Slot2/PFI8")         
self.myTask.stop()
self.myTask.timing.cfg_change_detection_timing(falling_edge_chan="/PXI1Slot2/PFI8",
                                                           rising_edge_chan=None,
                                                           sample_mode=AcquisitionType.FINITE,
                                                           samps_per_chan=1000)
self.myTask.register_signal_event(Signal.CHANGE_DETECTION_EVENT, self.callback_digital_line)

 

 

When executing the function register_signal_event() , we got following error message :

 

 

nidaqmx.errors.DaqError: Selected lines do not support buffered operations.
Ensure only lines that support buffered operations are being used in the task. If using change detection timing, the task must be changed to non-buffered to support these lines.
Device: PXI1Slot2
Physical Channel: PFI8
Task Name: digital line event change detection
Status Code: -201062 

 

 

Software versions we use :

Windows: 7 , Python 3.6.3 , nidaqmx (0.5.7) , NI-PXIe-6363 device driver :17.0.0ff0

 

Installed python libraries :

 

 

cycler (0.10.0)

et-xmlfile (1.0.1)

future (0.16.0)

iso8601 (0.1.12)

jdcal (1.3)

matplotlib (2.1.1)

nidaqmx (0.5.7)

nidcpower (1.0.1)

nidmm (1.0.0)

niswitch (1.0.1)

numpy (1.13.3)

openpyxl (2.4.9)

pip (9.0.1)

Pykka (1.2.1)

pyparsing (2.2.0)

PyQt5 (5.9.2)

pyqtgraph (0.10.0)

pyserial (3.4)

python-can (2.2.1)

python-dateutil (2.6.1)

pytz (2017.3)

PyYAML (3.13)

setuptools (28.8.0)

sip (4.19.6)

six (1.11.0)

typing (3.6.6)

windows-curses (1.0)

wrapt (1.10.11)

 

We find this error message is a bit contradictory. How can this issue be resolve?

 

 

We thank you in advance.

 

 

With best regards.

Christian , drivetekag


Viewing all articles
Browse latest Browse all 7020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>