Im using VB 6. The program is written already, and worked in numerous systems already. So its not a code issue.
The only difference is the PCI-6024E card and the previous programs were deployed on DAQ drivers 6.9.3.
Now im using the nidaq Traditional 7.4.1 drivers and Measurement & Automation Explorer 4.
I would like to export digital signals to PFI.
In the interface, when i add the CWDIO component, click "properties" , it only shows 1 port.
I need 3 ports for outputting. How do I add ports ?
The issue is, there only seems to be 1 port, so when i say "CWDIO.Ports(2).Assignment = cwdioOutput", it throws an exception.
I have a 24V opto-coupled 8Ch Input card connected to Port 0 (P0.0 - P0.4) and it is working fine.
I have a 8Ch relay output card connected to PFI inputs from PFI1(P1.1) to PFI4(P1.4), I need to configure these as outputs.
Alternatively if it is easier to read these PFI lines as inputs, then I could swop the input and outputs.
thanks again