Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68906

check if real-time controller is connected to a PC

$
0
0

I have some applications that run on a PC that call (deploy and run) a VI on a PXI target from the .lvproj.  However, I share the PXI with others (who use the same method).  If they are using it or if they forget to disconnect my application tries to deploy and run the VI but crashes because the real-time controller is already being used by another PC.  I would like to create a VI that would check to see if the PXI is busy (somebody else is already connected to it) so that I can run this test before trying to deploy my applications and thus fail gracefully.

 

I don't think any of the VIs on the Real-Time palette are what I'm looking for, so I tried opening an application reference and looking at what info I could get via property nodes.  It appears that there is some promise here, I might be able to make do with the "Remote Panel:Connections To Clients" or "NI Security:Nobody Logged In?", but neither of these can be accessed remotely.  I glanced at the invoke node, but nothing popped out at me, and I'm not really trying to invoke anything anyway so that seems like the wrong path.  I'm thinking that my only option is to create a standalone app that I can pre-deploy and that my PC applications will have to call that asynchronously via remote app ref?  I've never done that before, but I would imagine it is possible.  It just seems so complicated for such a simple operation...why isn't this built in to LV?  Am I missing something?

 

I apologize if this is a duplicate thread; I tried searching for the topic but didn't feel like I found the right keywords.


Viewing all articles
Browse latest Browse all 68906

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>