02-20-2019 03:40 PM
Hey Salman91,
It looks to me like the NI 9401 should work just fine in FPGA mode, at least according to the product page. The cRIO 9054 you're using is one of the new CompactRIO with DAQmx devices though. What that means is that each slot can be configured for a specific programming mode:
By default, all modules start in Real-Time (NI-DAQmx) mode. Based on your setup, I'd double check that the slot is set for FPGA programming mode in MAX.
02-20-2019 03:59 PM
My apologies, I misspoke on this - @T-REX$ is correct.
I would recommend running the example file NI 9401 Digital Line Input and Output - cRIO, which you can find in the LabVIEW Example Finder (Help>Find Examples...) by navigating to Hardware Input and Output > CompactRIO > Module Specific IO > Digital Input. Testing with code we know will work will help us isolate the problem.
Let us know how that goes.
02-20-2019 05:43 PM - edited 02-20-2019 05:43 PM
I followed the same advice already posted here. I shifted it NI 9401 C series module to slot 2, and it worked.
Although the attached photo shows my latest configuration, and it does show that the program mode for 9401 is Labview FPGA.
However, previously when I had the 9401 in slot 1, I ensured at that time too that its program mode was Labview FPGA, but at that time, it did not work in FPGA mode.
11-03-2019 02:55 AM
The solution is in this link
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7ZESA0&l=en-TH
I have this problem also, now it was solved already. May it save your time to find the solution.