Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Detection on Output Ports

Is it possible for me to enable Change Detection on output ports for the PCI 6527 Digital I/O Board? I wish to change the values on port 4 using the test-panel GUI, and have my program detect those changes the instant they occur. Any suggestions? (Please note - I am developing this as an MFC application in Visual C++). Attached is my code.
0 Kudos
Message 1 of 5
(3,372 Views)
Greetings,

Unfortunately, it is not possible to enable change notification on the PCI-6527's output lines. Why do you want to control the device from both the Test Panel and your C++ program? There may be some other method for accomplishing your task.

Let me know.

Spencer S.
0 Kudos
Message 2 of 5
(3,372 Views)
I only want to control the device from the test panel.

The intended functionality of my program is to detect changes on discrete signals being inputted to Port 2 (an input port) of my Digital I/O board. However, the discrete signals are not functioning yet, so as a workaround, I wanted to simulate those signals by using the test-panel. As far as I can tell, the only ports that can be explicitly set are the output ports. As a result, I have been attempting to set Port 4 (an output port) and detect those changes in my program with the DIG_Change_Message_Control and DIG_Change_Message_Config functions. Thus far, I have been unsuccessful.

Any insight you can provide would be greatly appreciated.

-Joel L
0 Kudos
Message 3 of 5
(3,372 Views)
Joel,

Since the functions you mentioned can only be used with input lines, you may want to consider interfacing your output lines with your input lines for testing purposes. You could write to your output lines and detect these changes with your input lines.

Spencer S.
0 Kudos
Message 4 of 5
(3,372 Views)
By "interfacing", do you mean physically connecting my output ports to my input ports via a resistor? Or do you mean through writing code? If you mean writing code, can you please include some examples? If you mean physically connecting the ports, can you tell me what pins I should connect?

-Joel
0 Kudos
Message 5 of 5
(3,372 Views)