Solution
LabVIEW by default saves the channel instances in the LabVIEW Data folder in your Documents as shown below:
Even if the channel instances in the LabVIEW Data folder were deleted, LabVIEW should be able to regenerate them. If LabVIEW doesn't have permission to edit LabVIEW Data folder, the instances will not be generated. If this is the case:
- You can allow access to the LabVIEW Data folder, If you are using Windows 10 go to Defender Security Centre>> Virus and threat protection >> Virus and threat protection settings and under Controlled folder access you can either:
- Remove LabVIEW data folder from the protected folders.
- Allow permission for LabVIEW by going to Allow an app through Controlled folder access>> Add an allowed app then navigate to LabVIEW executable in the C directory this will depend on both your LabVIEW version and whether it's 32-bit or 64-bit. For LabVIEW 2018 (64-bit) it's going to be in C:\Program Files\National Instruments\LabVIEW 2018
- You can also specify where the Channel instances are going to be saved, in LabVIEW go to Tools>> Options>> Paths>> Default Data Directory Then uncheck the "Use default" box and specify a folder for the data to be saved. It's recommended that the VI is included in a LabVIEW project.
After doing any of these instructions make sure you completely close LabVIEW and open it again. If you opened the VI again the instances should be regenerated and the block diagram will be as shown below: