Example_UploadProfileFromFile.m
5.6
LabVIEW Examples
The LabVIEW example code has been saved for LabVIEW 2015, and is not compatible with previous versions.
A complete copy of the code examples may be downloaded from within the help section of the WaveShaper Software.
Example_UploadPredefinedProfile.vi
Example_UploadProfile.vi
Example_UploadProfileFromFile.vi
addpath
(
'WSMethods'
)
% Define device IP
ip
=
'169.254.6.8'
;
% Open the "wspTestFile.wsp" file from the same directory as this file
string
=
fileread
(
'wspTestFile.wsp'
);
% Run splitWspString() function using the WSP string from the file
[
wsFreq
,
wsAttn
,
wsPhase
,
wsPort
]
=
splitWspString
(
string
);
% Upload profile using split data
r
=
uploadProfile
(
ip
,
wsFreq
,
wsAttn
,
wsPhase
,
wsPort
);
WaveShaper A Series User Manual
41