From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding reading the digital input in change detection mode

Hello,

    I am using PXI 1042Q , 8106 RT microcontroller, PXI 6289 DAQ. I am trying to send digital inputs to PXI 6289 through BNC-2110 box. I am connecting digital inputs to P0.0, P0.1, P0.2, P0.3. I am implementing change detection on rising edge. When I read these values I read that P0.0 reads as 1, P0.1 reads 2 , P0. 2 reads 4 and so on when made high individually(digital input). When I make all these values high I read them  as an array of {8,12,13,15}. I am not able to figure out what is going on?

 

 

Thanks,

kartik 

0 Kudos
Message 1 of 2
(2,978 Views)

Hi kartik,

 

Could you please explain a little more?  When you read your lines in LabVIEW, you are getting an array of {8, 12, 13, 15}?  Could you please post code or a snapshot of your block diagram?

Regards,
Jim Schwartz
0 Kudos
Message 2 of 2
(2,959 Views)