LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using FPGA references in a class

Solved!
Go to solution

Hello all,

 

I found a work around to an issue that I was having but it is not quite as elegant as I would like, so I thought I might post the issue I am having.  I am currently running an RT system on a PXI chassis.  The system responds to user commands sent via TCP/IP.  Much of the architecture is built around object-oriented techniques.  In addition to the RT system, I have a R-series card that I am using for DIO and AO.  For communication between the two loops (one that polls for user interaction and the other that is continuously running measurements), I use a data reference to encapsalate my main class.  (simple example below)

18777i4E8EEFC30E728536

 

 In the main class I maintain a reference to the FPGA session that I unbundle when necessary to change parameters on the FPGA.  The reference is bound to a strictly type def'ed control.  I can successfully open the session to the FPGA (top loop; vi shown below)

 

18779i383D34A8E0A67ED8

 

However, when I try to access the opened FPGA session in the bottom loop, I get an error saying that the session is not open or that it is not valid. 

 

I know that this may be difficult to understand (I would show the full set of VIs but they are quite expansive so the simplified ones should suffice), but does anybody have any thoughts concerning this?  I have bound the reference to a strict type def for an FPGA reference as described for 2009, but I still get this error.  Maybe there is something I am missing?  

 

Any thoughts would be much appreciated.

 

Peace, Matt

Message 1 of 3
(3,226 Views)
Solution
Accepted by topic author cirrusio

OK - I apologize.  It works fine when you bundle it into a class and use the data reference as above.  I just happened to be closing the reference where I was not expecting it.

 

Peace, Matt

Message 2 of 3
(3,219 Views)

I am glad you got figured it out and normally don't post saying as much but... to the best of my knowlege...

 

This is the first LVOOP app targeted at RT tht I have seen posted on the forums so...

 

Congratulations on being the first!

 

Please feel free to let us know about any complications you run into along the way. Those of us who will some day follow in your foot-steps will be very grateful.

 

Thank you,

 

Ben 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(3,213 Views)