LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

build executable cRIO

Hi All!

I create an application which have to count the number of pulse and generate an AO corrersponding to the number of pulse. To do that, i created a FPGA vi which detect the number of pulse and increment counters, and a cRIO vi which convert the number into a voltage. The works perfectly... in debug mode !!!

Here is my problem: i wanted to deploy this application in the cRIO , to do that, i downloaded the bitfile in the FPGA, i build my executable set it to run at startup, and deployed it in the target. Then i power off - on the cRIO. The FPGA seems to works but i think i have a problem with the communication between the host and the FPGA , i get error 65536 :

CompactRIO:  (Hex 0x10000) Unable to communicate with the module. Reinsert the module and check connections.

After that if i run the vi in debug mode stop the application and start it again, it works perfectly ....

Does anyone know what's the problem ???
0 Kudos
Message 1 of 4
(5,089 Views)
Hello,
Can you give me more details. Does this error appear in a property node? if so, which property is the cause of the error? is it a dialog box?
What version are you using?
Thank you
 
Manuel R
AE dans une autre vie
0 Kudos
Message 2 of 4
(5,030 Views)

Hi manuel! Thanks for your answer...

I think i found the solution...

As i wrote, After deploying the application, when i made a reset (soft or hard), everything works perfectly. But if i power off the compact rio, the application doesn't write analog output. After investigations, i found that the FPGA was couting the number of pulse, and the host vi was effectively doing the conversion... the only problem was to generate the AO.

In my old version, i downloaded the bitfile in the FPGA using labview project and in the host vi i used the function "open and run" . Now, i open the vi reference, force to download the bitfile in the FPGA and then call Run method in the host vi... that's seems to works.. I don't know exactly why but it seems the communication with the AO card had a problem after a power off ...

0 Kudos
Message 3 of 4
(5,027 Views)
Ok Good!
So does it actually works fine?
 
Manuel R
AE dans une autre vie
0 Kudos
Message 4 of 4
(5,023 Views)