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