Hi Steve,
I understand the problem an did some further tests - unfortunately without finding a proper solution yet.
The stp file must fit to the number of channels in the dataportal. If you configure a bunch of channel that does not actually exist in the portal, teh function will write a xls file which cannot be opened afterwards.
Programatically editing the STP file is not a good idea either.
There are two workarounds I can think of at the moment:
- Create multiple stp files - one for each channel count and select them programatically with the GlobUsedChn variable. Disadvantage is that you need to create and maintain a lot of STP files.
- Export the files in spreadsheet ASCII format, which you can inport to Excel later. You can do this by saving them as DAT and configuring the DAT file parameters. The disadvantage is that you cannot create one file cpontaining data and metadata such as channelnames and properties at the same time.
I'll give that feedback to R&D so maybe we will have the possibility to create STP files that are capable to export all existent channels in future.
Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany