LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't communicate with module in cRIO hybrid

I've been developing a cRIO hybrid application (using FPGA and Scan Interface mode). I'm communicating with one module in FPGA mode, and 6 in Scan Interface mode. The host VI on the computer is pulling Scan Interface information from Shared Variables, and communicating with the single FPGA VI with a dynamic reference.

 

The issue I'm having is that seemingly randomly, communication with the Scan Interface modules stopped working, it throws error -66536. However, the communication works if I make a new Scan Interface project, or even just take the FPGA out the current one.

 

 

Things I've tried that didn't work:

- An NI application engineer suggested formatting and reinstalling the cRIO software.

- Making sure the FPGA reference is called before shared variable commmunication, and shut down after its done.

- Recompiling the FPGA VI

 

Unfortunately I can't share any code, its a large software, and protected by the project its under. I'd be happy to answer more detailed questions though.

Thanks.

0 Kudos
Message 1 of 6
(2,571 Views)

Hi Jay,

 

is it too much work to handle the remaining 6 modules in the FPGA too? That way you can get rid of the ScanEngine/Hybrid-mode at all. (In my experience handling all IO in the FPGA isn't that much work.)

 

Depending on the used modules you also gain some degrees of freedom: you could set different working modes for DIO modules, different sample speeds for single AI/AO pins, and so on…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(2,564 Views)

That's not a bad idea, however, I'm already using about 85% of the FPGA just running this one VI (its PWM with PID on a lot of heaters) so I don't think I have the capacity to implement that.

0 Kudos
Message 3 of 6
(2,553 Views)

Hi Jay,

 

you need to control heaters using PID on the FPGA? How fast do they react?

 

My heaters usually have time constants in the order of tens of seconds and can be handled by the RT target quite easily…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(2,551 Views)

Many of the PID thermal components are actually handling nitrogen flow, which needs to react very quickly. There's a pretty small range of error in temperature allowed.

Perhaps you're right though, but that's an issue to visit in more detail at a later time. I have a deadline tomorrow, and I'm just trying to get the software functionality back to how it was.

0 Kudos
Message 5 of 6
(2,544 Views)

Hi Jay

 

Just to double check one of the points you already covered. You mentioned: Things I've tried that didn't work: - Making sure the FPGA reference is called before shared variable communication, and shut down after its done.

 

About this point: I just want to check how you accomplished that... by just assuring the desired data flow or you also tested or tried to implement delays?

 

Regards

Frank R.

0 Kudos
Message 6 of 6
(2,502 Views)