MAKEMID unable to interpret encoded .SUB files which is different from the default encoding scheme of the machine

I downloaded the Tektronix oscilloscope instrument driver from following page:
I tried converting the driver to MATLAB instrument driver format using the following command:
>> makemid('Tkdpo2k3k4k')
This resulted in the following error:
Error using makemid (line 139)
File does not comply with the VXIplug&play sub file format.

 Accepted Answer

MAKEMID can sometimes throw an error as shown below, when trying to create an MDD from an IVI-C or VXIPnP driver, such as the TEKTRONIX IVI-C Scope driver:
Error using makemid (line 139)
File does not comply with the VXIplug&play sub file format.
As the error suggests, the .SUB file is not formatted correctly. In this case, the .SUB file is encoded in UTF-16, but the default encoding scheme of the machine is different.
To work around this issue, do the following steps:
1. Navigate to the directory containing the .SUB file. Commonly, it is found under the directory:
C:\Program Files\IVI Foundation\IVI\Drivers\Tkdpo2k3k4k
You can also refer to the installation instructions on the vendor's site to find the installation files and locations.
2. Open the .SUB file in a text editor such as Notepad++.
3. Save the .SUB file with the same name but with ANSI(ASCII) encoding.
4. Rerun the command
>> makemid('Tkdpo2k3k4k')

More Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Products

Release

R2014a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!