11-07-2025 10:55 AM
Hi,
Thanks for your suggestion I shifted from totally depending on FPGA to (FPGA - RT) system. I was not able to use SCTL for analog NI-9223 since the program did not allowed it, so I take the reading from my Analog input AI0 and send it to FIFO write in while loop and take the reading and calculation in RT side. The program is working now and Calculating the value.
However, I am getting one issue here. Even though I disconnect my function generator the program in RT main is still running and calculating the value, although there is no graph in the graph chart. I am observing 10.5958 values from my analog AI0 even without connecting the Function Generator.
*Scaling Factor- To calculate current on the basis of current probe sensitivity.FPGA block diagram
Calculation with Function Generator connected
AI0 output without function generator connected
RT main diagram
11-07-2025 11:05 AM - edited 11-07-2025 11:06 AM
Hi Abhi14try,
@Abhi14ry wrote:
However, I am getting one issue here. Even though I disconnect my function generator the program in RT main is still running and calculating the value, although there is no graph in the graph chart. I am observing 10.5958 values from my analog AI0 even without connecting the Function Generator.
That is because your code does not know that you disconnected your function generator, your AI0 is floating and that is the value that you are seeing.
BTW, didn't you say you need reaction time in us and that you need to output a signal once the conditions are met?