06-23-2017 01:03 AM
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 ?
06-26-2017 07:57 AM
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