09-15-2010 11:16 AM
Hi Harika,
I experienced the same issue when testing your original files. It is caused by VeriStand not properly handling relative paths for models. A workaround is to move the model outside the same folder as the system definition file which will cause the model path to become absolute. I apologize for the inconvenience and will investigate the issue further.
Thanks,
09-16-2010 04:52 AM
Thanks Sappster.
I am able to deploy my system definition successfully without any errors after changing the path of the .mdl file as you suggested.
Thanks alot for your support.
Harika
09-16-2010 11:32 AM
To clarify my previous post:
The NIVeriStandSignal Probe is required for Veristand to communicate with the model. The NI Veristand inports and outports are required for any model inputs or outputs you want to access from VeriStand. You do not have to have NI Veristand inports or outports in your model but you you do have to place the signal probe block within the model.
In this situation (executing a mdl model with VeriStand) the NIVeriStandSignalProbe is required and the NIVeristand Inports and Outports are necessary to access inputs and outputs.
In the situation where the mdl is being compiled into a dll, the signal probe is not necessary. Similarly, the NI VeriStand inports and outports are not necessary in a top level model, but are necessary in subsystems to access the inputs and outputs of the subsystem.
07-18-2012 07:32 AM
Hi Harika!
Would you pls tell me how did you manage to jump from message 5 to message 6 by installing VC++.
Thanks,
AAK
07-25-2012 09:36 AM
Hello
I'm using Matlab R2011a and VeriStand 2011.1.0.32 under Windows 7 64bit.
I am facing the same problem as described that can not select the NIVeriStand.tlc file in the Configuration Parameters of Simulink.
I red the article:
but I was not able to get it work.
I wrote the following into the Matlab shell:
addpath('C:\VeriStand');
and I've received the following response:
Warning: Name is nonexistent or not a directory: C:\VeriStand.
> In path at 110
In addpath at 87
My VeriStand software is installed in the following path:
"C:\Program Files (x86)\National Instruments\VeriStand 2011"
Then I wrote:
NIVeriStandAddPaths;
and I've received the following response:
??? Undefined function or variable 'NIVeriStandAddPaths'.
What should I do in order to be able to select the right system target file (NIVeriStand.tlc) in my Configuration Parameters of Simulink?
07-25-2012 01:16 PM
hi Luk04,
This is because your current MATLAB directory might not be C:\VeriStand, therefore it's unable to find the function/m-file.
Try this instead:
- Open C:\Program Files (x86)\MATLAB\R2011a\toolbox\local\matlabrc
- Append the following to the file:
addpath('C:\VeriStand');
NIVeriStandAddPaths;
- Save and relaunch MATLAB. On load, the MATLAB Command Window should show the NI VS server as starting.
07-25-2012 01:29 PM
...also
- Make sure you installed the Model Support option
- Confirm the following directory exist: "C:\VeriStand\2011"
07-26-2012 03:05 AM
Hi NestorG
Thanks for your help!
In fact, I do not have a directory called "C:\VeriStand\2011".
How do I install the Model Support option?
I already thought that some installation might be missing, thus yesterday I have inserted my "NI VeriStand 2011" and "NI VeriStand 2011 / Service Pack 1" DVD's and installed again all default software packages. Anyway I will check it again and have a closer look if something concerning Model Support will appear.
Might it be problematic that my Matlab is running also under 64bit, like stated in
http://digital.ni.com/public.nsf/allkb/2604448E783151BA862579F4006E2AE6
"Note NI VeriStand does not support the 64-bit versions of the MathWorks,..."?
If the problem persists I will swap to the 32-bit version of Matlab and Simulink.
Any other hints?
Greetings!
07-26-2012 08:18 AM
Hi NestorG
I finally got the VariStand directory at "C:\VariStand".
I have also changed my Matlab and Simulink Software to the R2011a 32 bit version.
But unfortunaltely I am still getting an error message when writing the following into the Matlab prompt.
>> addpath('C:\VeriStand');
>> NIVeriStandAddPaths
NI VeriStand: Added paths for NI VeriStand 2011
??? Undefined function or variable 'NIVeriStandServer'.
Error in ==> NIVeriStandAddPaths at 112
NIVeriStandServer;
The NIVeriStandAddPaths.m file adds several paths to the "Matlab search path".
On of them is the path: C:\VeriStand\2011\UserInterface\tmw\Shared. This folder contains the file NIVeriStandServer.mexw32 file.
At the end of the NIVeriStandAddPaths.m there is the call of the function NIVeriStandServer and I think that the system tries to run the file NIVeriStandServer.mexw32. And somehow he is not able to do this!
Does anybody has a clue how to get rid of this error message?
Greetings
Lukas
07-27-2012 04:02 AM
Hi
I could get rid of my problems.
I had to do following steps:
1. Problem: The C:\VariStand folder was not available.
Solution: While installing with the VariStand installation DVD the "Model Based Framework" and the "Model Support" option was activated. Nevertheless there was still no C:\VariStand folder. Afterwards I have done further installation via the VariStand SP1 DVD, where I had to activate manually that the "Model Based Framework" and the "Model Support Option" have to be installed. Just after this manual activation and installing proces the C:\VariStand folder with its necessary content has appeared.
2. Problem: Problem while executing the command "NIVeriStandAddPaths" in Matlab.
Solution: VariStand 2011 is till now (27.07.2012) only supporting the 32 bit Version of Matlab and Simulink R2011a. Therefore I have downloaded the 32 bit Version and I have directly started the installation through the Matlab setup file. This installs per default the 64 bit version. Therefore, I was thinking that I have the 32 bit version running but in fact it was the 64 bit version. An indication about your Matlab version you are getting on the Matlab start picture while starting Matlab.
To install the 32 bit Version you have to unpack the 32 bit installer folder of Matlab and execute the setup there.
Once you have installed Matlab 32 bit everything worked perfectly.
Cheers,
Luk04