08-13-2021 07:46 AM
Hi folks,
I build a simple VI that reads the value in line DIO0 of 9401 module and it works I see the boolean indicator blinking.
My purpose is to transfer boolean values from FPGA to the host and I used FIFO. When I execute the VI the indicator output from FIFO.read doesn't blink. I don't know how to resolve this issue.
I uploaded a screen with VI code.
Solved! Go to Solution.
08-13-2021 08:34 AM
Please also post the code of the host-VI.
Regards, Jens
08-13-2021 08:49 AM
Hi Jens,
I uploaded the host code
08-13-2021 08:58 AM
I assume the FIFO To_fpga goes from host to the FPGA?
Do you write to that FIFO anywhere? Otherwise the FPGA will wait infinitely at that node before writing another element to the FIFO to your host.
Regards, Jens
08-13-2021 12:18 PM
I executed the host VI and I obtained the error -50400, I attached a screen with the explanation of the error.
08-16-2021 02:27 AM
As I already stated your FPGA code is stuck at the FIFO node "To_fpga", as long as you do not send data from the host to this FIFO. It will only put 1 sample inside the FIFO "From_fpga". Therefore your HostVI cannot read 100 samples as you request which results in an error.
I strongly recommend to redesign your FPGA-code.
Regards, Jens
08-16-2021 06:21 AM
I tried to figure out how to redesign FPGA code but I don't know from where to start. I am working to a thesis and I have to develop a operative code.
08-16-2021 08:24 AM
I redesigned the FPGA code and now the boolean indicator has a true value and does not blink. Is this because in the FIFO I stored only one value?
08-23-2021 08:43 AM
Can you explain what you want to achieve?
Your last code is meaningless since the FPGA will not have an HMI. It just pushed the state of the DI before the first loop starts from one loop to another as fast as possible...
Regards, Jens
08-23-2021 01:28 PM
I wanted that the boolean indicator output from read method blinks, and I solved putting DIO0 inside the while loop.