06-11-2014 05:53 AM
I am working on a program which uses NI RT controller - 8119 (1045 Chassis), FPGA Target - 7854R, LabVIEW 2013 SP1, windows 7 PC.
In the FPGA 7854R we are directly using the Connector 0 and Connector 1 channels and to the Connector 2 we have an Expansion chassis and in that we have ADC and DAC modules. We have wrap around connections for the Analog and digital channels to test its working.
This is what I am doing: I have configured the direction for Digital Outputs and Inputs in all the connectors of 7854R. I am Writing some voltage values from the DAC channels in Connector 0 and reading it through the ADC channels and it works fine, similarly the digital channels are also working. But in Connector 1 when I try to write data to a digital channels and read, it is not working. The same happens with the Analog channels in the expansion chassis. We have checked the wrap around connection and everything is connected fine. Is there any other configuration that I am missing?
As a brief: Connector 0 signals are working, connector 1 and 2 signals are not working.
06-13-2014 12:57 AM
We did some debugging and found this: If we configure a digital port (0-7 channels) as input and output and we use the input channel alone there is no issue. But at the same time when we use the output channel by using the write to port node in FPGA (U8 data type to DIO) then the input channel works no more. Does any one has any idea why this happens?
According to this explanation (See the attached image) even when we write to the input channel there should not be any change as the line is open. Please advice what I am missing here. Or is there any configuration that I have to do, so that I can use the port write node to a DIO port configured as both input and output?
DIO port enable (Example):
DIO port write (Example):
06-16-2014 01:34 AM
Any help is highly appreciated.
06-28-2014 01:15 PM
A little information update:
There seems to be bug with the FPGA compiler. When I have configured a digital Port with both input and output channels, I read the Digital input channel just fine. But when I try to write data to a digital output channel in the same port using the port write method (U8 value as explained above) the digital input channel goes low (reads False) and after that even when I give a high signal to that digital input nothing happens. This issue is not happening when I access the digital IO channels individually.
So finally what we concluded is, when we write data to a digital channel even though it is configured as input drives the output enable pin and eventually turns out to be an output channel. I am not suspecting the hardware, there must be something to do with the VHDL converter (I am not sure).
Please NI or someone throw me a bone.