07-13-2010 12:28 PM
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)
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)
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
Solved! Go to Solution.
07-13-2010 01:05 PM
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
07-13-2010 02:13 PM
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