Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2181

Stream writing digital output in python with nidaqmx

$
0
0

Hello,

I am using a NI PCIe-6321 to write digital commands to external hardware. I need a stream writer running in the background while my python code does something else. I seem to have the stream writer working (timing works out), but my external hardware doesn't change. I think the device is writing the wrong type (integers) when the task needs booleans, and I'm not sure why that isn't automatically converted in DigitalSingleChannelWriter.write_many_sample_port_byte.

 

Please advise what data type I need to send to the device in order for digital stream writing to be effective - or whatever I'm doing wrong here. Basic code just to run the stream writer is below.

screenshot.PNG

Many thanks!


Viewing all articles
Browse latest Browse all 2181

Trending Articles