You are on the right track, but there are several problems with the code that you have posted.
1) The VISA Resource does not appear to have been given a default value and thus may not be configuring the serial port that you expect. You can make a resource default by right-clicking on the control and choosing Data Operations --> Make Current Value Default.
2) The VISA Configure Serial Port should be outside of the While loop. You do not need to reconfigure the serial port on every iteration of the loop.
3) The VISA Close should be outside the While loop. You will be consuming time and resources by closing the serial port (and opening it) every iteration of the loop.
4) You never actually explicitly create the two published data items. By calling the Publish VI with the names, it will create them if they do not exist, but they may not be the correct type.
5) On the VISA Read function, you wire the value of 0 to the byte count. This means you will read 0 bytes from the serial port and publish a 0 character long string. Use the Bytes at Serial Port Property to determine the current number of bytes in the buffer and retrieve all of them at the same time.
6) You have no timing in the loop and have the both instances of the publish VI having a timeout of 0 (return immediately). To make the VI wait for a command received via the COM1_In item, set the timeout to -1. You may want to wait a small amount of time (e.g. 100 ms) to receive a response from the instrument before reading the serial port, otherwise you may be missing the response until the next iteration of the loop.
7) You always publish data to the COM1_Out even if there was no response. This will clear out the data that was previously published. A better way may be to only update the data if a response is received (Bytes at Port >0). However, if responses of 0 bytes are valid for your setup, leave that portion of the code as is.
I have written a VI that corrects the above problems. I do not have a [c]FP-RT controller available to test it, but it should work fairly well for you. You will need to change and default the serial port to be appropriate for the your controller.
Regards,
Aaron
LabVIEW Champion, CLA, CPI