I have a product with RX and TX. I am going to hook with the RF switch with MCU, and use a RS232 to send commond for the MCU. I also set up two MCU I/Os (high or low) to RF switch to switch a spectrum instrument or a signal generators instrument. I wanna to have these functions: RF Switch initial, RF Switch trigger, RF Switch abort, and RF Switch close. I don't have any idea to build for LabView. I know using NI switch is very convenient, but I don't have much funds to get it. Does anyone can tell me how to have above four functions using LabView so that the product can send TX through RF Switch to spectrum instrument, and RX from signal generators instrument? I appreciated that your help.
Is the MCU going to control the RF Switch? So you would send a command to the MCU via RS232, and the MCU would perform some action on the switch? The only thing Labview would do is use RS232 to send commands. The MCU would have to be programmed to do the action. Is this what you want to do?
Post examples on what? Serial communication? Examples for that ship with LabVIEW - just open the Example Finder and search for serial. However, you should make sure you can talk to the MCU using a terminal program first (such as HyperTerminal on Windows) to make sure you've got the right serial port settings and cable.
As for the MCU, that would have nothing to do with LabVIEW, and you'd need to write the code specific to the MCU.
I attached my labview code to use rs232 communication with the mcu. I don't know why it can't communicate with the mcu. Do I make some fault in my code? How to revise my code if I wanna know it's sucessful to communicate with mcu? I post my labview code. Please tell me how to do. Thank you very much.