Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

pcie-6323 -write digital channel out 8 bits

I am trying to write out a Digital Channel with 8 bits for 6323.. I used Dev1/port0/line7:0, but i am getting an error - Specified digital channel contains more bits than supported by the 8-bit version of DAQmx Port Write.Use the version of DAQmx Port Write that supports wider digital ports."  As i understand it correctly, I can choose port0 -8 bits. Is this correct. Why then woud i get an error .. How do i use 8 bits of a line. See Attached.

 

I need to write to port0/line7:0   and read from another port0/line8:15. How would i do this ? Or can i only use a port with 8 bits l.

0 Kudos
Message 1 of 4
(935 Views)

The issue is that Port0 is a 32-bit wide port, the U8 write API can only handle ports that contain up to 8 channels (not the task but the hardware)

santo_13_0-1675717455792.png

 

This API will work for Port1 and Port2

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 4
(921 Views)

Thanks.

 

How do you set a line to start ligic


hi instead of low?

0 Kudos
Message 3 of 4
(861 Views)

I am getting output with dev0\line7:0 (Connector 0) but not getting output from dev0\line15:8 which outputs thru connector SCB-68A Connector 1 output .. 

It does work thru the NI max Test panel , but not thru the code 

 

Should i set all channels

0 Kudos
Message 4 of 4
(840 Views)