02-29-2008 08:36 AM
03-02-2008 11:57 AM
If I understand what you want correctly, I would advise against shared variables for the command interface. Instead, you can either use VI server to call VIs running the cFP (example, plus more links there with more details) or you can use some sort of messaging architecture to have a direct point-to-point channel (example).
The biggest issue is usually passing the state data correctly to the clients so that they are up to date. If you have a decision that you will only have one client at a time, that becomes easier, because you can just transfer all the data when the client connects. Depending on your network setup, you can have the cFPs use UDP to publish themselves every second or two, so that when your client connects to the network, it will see a list of cFPs.
03-03-2008 07:12 AM
Hi, tst, thanks for your taking time to give me a reply. I had spent many hours reviewing different methods to communicate to the cFP and settled on the shared variables. I did some sample testing and they seemed to work fine, plus they were very EASY, which goes a long way. Would you mind sharing more info on what kind of pitfalls I may run into with shared variables? Have you had experience with them?
For more of what I'm trying to do, you can check this post:
http://forums.ni.com/ni/board/message?board.id=170&message.id=298493#M298493
Thanks, John
03-03-2008 02:13 PM
I don't have any experience with shared variables, because they were only released with LabVIEW 8.x, which I don't use. I do have some experience with the technology they are based on, though, and the reason I advised against them was because of my understanding that they are inherently a publish and subscribe system. That's good if you have one publisher and you want to publish state. It's not good if you want to do two-way communication. It's also not good if you want to verify that the client got the latest data. They might be suitable for part or all of your application and if your testing was enough to cover the different possibilities, then you should be able to use them.
03-04-2008 10:06 AM