NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange error with typedefs NI-RIO 9035

Hi,

I am working on my first project with a Linux RT, I have to say that the process is being a nightmare itself, I am documenting all the different errors and caveats that I am finding and videoing all of them to publish them here. However, I have found an error that I would very much like to get an explanation for.

Before you watch the video, please keep in mind that RTs are not my area of expertise, though I do not believe that I am actually doing something too crazy as I tried to keep the FPGA programming simple.

Instead of trying to explain the problem I recorded a video that shows it. I appreciate any answers as I cannot see why it is happening and it took me some time to reach the solution.

0 Kudos
Message 1 of 8
(4,393 Views)

Hi

You didn't specified which LabVIEW version are you using.

I had problem with LV 2012 when I used Type Def as DMA then data didn't pass from FPGA to RT.

Work around was to disconnect Type Def control from their Type Def before FPGA compilation.

Message 2 of 8
(4,029 Views)

Thank you JCC,

The LabVIEW Version is 2015 SP1. I'll try what you mention and tell you if that works.

0 Kudos
Message 3 of 8
(4,029 Views)

P.S.: there use to be problem with RT build. LabVIEW restart helped in that case. But it was problem in 2011/12.

0 Kudos
Message 4 of 8
(4,029 Views)

JCC_(SK) escribió:

I had problem with LV 2012 when I used Type Def as DMA

Sorry,

What do you mean with DMA? Actually I did missunderstand your message before, my problem appears when I disconnect the Type defs from the controls, if I keep them as type defs the problem does not happen.

0 Kudos
Message 5 of 8
(4,029 Views)

This probably belongs in a FPGA discussion forum not the LV Linux RT community forum. http://forums.ni.com/, it looks like the LabVIEW group includes FPGA (there's no separate FPGA group)

0 Kudos
Message 6 of 8
(4,029 Views)

BradM escribió:

This probably belongs in a FPGA discussion forum not the LV Linux RT community forum.

It may had to, but I haven't seen this problem before in non Linux RTs, therefore I thought it could be related to the way the operative system was treating the FPGA reference.

0 Kudos
Message 7 of 8
(4,029 Views)

I'm still not 100% sure what you're attempting to do with the FPGA ref typedef, but if it's to abstract away the notion of using different FPGA bitfiles with the same interface (controls, indicators, DMA, and IRQs of the same type and names), you should probably look into using the Dymanic FPGA Reference for passing around the FPGA session.

0 Kudos
Message 8 of 8
(4,029 Views)