Hi ubairkazi,
I would recommend that you take a look at the resources below before attempting to develop LabVIEW code for your application:
Serial Instrument Control Tutorial
http://www.ni.com/tutorial/2897/en/
Getting Started: LabVIEW Basics
https://www.ni.com/getting-started/labview-basics/
Also, could you elaborate on what specific problem you are encountering when developing your code? This will help me provide you with more specific resources for your application. There are many different ways to read serial data into LabVIEW and use it programmatically and it will be hard for me to offer any more specific assistance without knowing what specifically you are struggling with or having trouble implementing.
Unfortunately, there is not a button that you press in LabVIEW and it reads in all of your data. You still have to write LabVIEW code (probably using NI-VISA) to perform a read to the serial port, then process and log the data you receive.
Best,
Duncan Waldrop
Applications Engineer
National Instruments