Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read digital Port data on NI Motion 7344

For controlling and safety function, i want to read out the status of a digital port output.

Reading an input is no problem.

Setting the output with the MOMO.vi also works.

But doing a read on the output port, does not give a result???

 

Can someone advise ?

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

Hi,

 

To my knowledge there is no option to read back the status of a port in software, the reading function only works on digital inputs.
I would say there are 2 ways to solve it: pure HW or pure SW:
- normally the 7334 has more than enough digital I/O. You can connect the output to an input and read the input for a status check (pure HW)

- make a functional global variable (FGV) controlling the output. Inside the FGV the status is protected and you can implement a function checking for the status (pure SW)

Andreas Jost

Applications Engineer
National Instruments

Andreas
CLA, CTA
0 Kudos
Message 2 of 2
(2,235 Views)