05-27-2006 10:38 AM
06-01-2006 04:08 PM
Hello Aswin & Siva,
This sounds like an interesting application! There are a couple of points I'd like to address to answer your questions:
1. Provided the radio modem is "transparent" to the COM ports, you should be able to treat this like any other serial/VISA application in LabVIEW. There are numerous examples of communicating serially with LabVIEW, most of which are included with LabVIEW itself (Help >> Find Examples...)
2. The tricky part is what you mean by "foreground" and "background." If an application is in the background, is it running at all? If so, what is it doing? What (if any) resources are the two applications sharing (besides the serial port)? VI Server may be the best option you have for controlling which application is running. I would recommend one "framework" VI that is always running and communicating with the serial port. Use this framework VI then to control and pass parameters to and from the other two VI's.
3. There is a tutorial on our website that discusses a communication architecture for TCP/IP communication. While this does not address your application directly, you could replace the TCP/IP VI's with VISA VI's quite readily as they both use strings to read and write data. You can find it here:
http://zone.ni.com/devzone/conceptd.nsf/webmain/CD63FD0F746B17A686256F090065F572
Using a command architecture such as this you could control your applications remotely.
I hope this helps some. With more information on "foreground" and "background" I may be able to better answer your question. Have a good one!