Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I reconfigure a Port on a 6534 device

Hi!

I am writing a programm for PCI-6534 device in VB6.0 with following features:
Port A: Continuous output of a Clock-Signal with
memory looping
Port C: At first configured as output for a short
finite pattern. Directly after this
reconfiguration to an input for a finite
pattern.
My problem is the following:
Everything works fine, but the change to an input port doesn´t work. However, when I try to input only, the code works.
My code for port C:

OUTPUT
-Dig_Group_Config ...
-Dig_Block_PG_Config ...
-Set_DAQ_Device_Info ... ND_Pattern Generation_Loop_Enable, ND_OFF
-Dig_Block_Out
-Do
Dig_Block_Check... Remaining
Do Events
Loop Unti
l Remaining = 0

INPUT
-Dig_Group_Config ...
-Dig_Block_PG_Config ...
-Set_DAQ_Device_Info ... ND_Pattern Generation_Loop_Enable, ND_OFF
-Dig_Block_Out
-Do
Dig_Block_Check... Remaining
Do Events
Loop Until Remaining = 0

Remaining is always 0, but no input appears!? Even when I call Dig_Block_Clear after the output.
What is the reason?

Thanks Lars
0 Kudos
Message 1 of 2
(2,969 Views)
Hi,

here is Lars again. I find the answer :-).
Before you can reconfigure a port you have to unassign this port with "Dig_Group_Config" at fist.

Greetings
Lars
0 Kudos
Message 2 of 2
(2,969 Views)