Hello,
The MSO24 is IVI compliant which means you can automate it using PI commands found in our programmer manual. The first three pages of this document "Getting Started with Oscilloscope Automation and Python" gives some background on PI, SCPI, and VISA.
https://www.tek.com/en/documents/technical-brief/getting-started-with-oscilloscope-automation-and-python
https://www.tek.com/en/manual/oscilloscope/2-series-mso-programmer-manual-2-series-mso
For Labview, there are basic VISA functions built-in where you manually connect, write, read, and format data how you want it. National Instruments also maintains a library of "drivers" for various instruments that do a lot of massaging and formatting for you. I recommend starting with the basic VISA commands because there is no MSO24 specific driver in their library.
https://www.ni.com/en-us/search.html?pg=1&ps=10&sb=%2Brelevancy&sn=catnav:sup.dwl.idr&q=tektronix%20mso24
To summarize, a basic LabVIEW PI command tutorial will help you establish a connection to the instrument and do an IDN? query. From there you can use the programmer manual to automate to your heart’s content. I found this tutorial from a little bit of searching:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x1qzCAA&l=en-US