LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting relative model paths for SIT

Hi,

I am trying to use Simulation Interface Toolkit (SIT) to interface with the Simulink model. Most of the things are ok. But when I want to work with the same set of files (LabView GUI as well as the model files) at a different location, I am facing problem. Is anyone aware of setting relative model paths, so that the LabView GUI will not keep the complete original path in memory.
Any thoughts?

Regards,

Amit
0 Kudos
Message 1 of 9
(3,585 Views)
Hello Amit,

Currently, there is no way to set the paths to automatically be the relative paths. When you first load the user interface, you can open the SIT Connection Manager and re-Load the model with the new path and then click OK. When you run the VI, it will again prompt to you to locate the model, but it will give you the option to browse for the file.

Setting relative paths is a great suggestion, and I would encourage you to provide that feedback at our Product Suggestion Center. I will also file a request here.

Please let me know if you have any other questions.

Regards,

Kristi H
National Instruments
Message 2 of 9
(3,570 Views)
Hi Kristi,

Thanks for the response. I guess, the workaround at this point is to maintain similar directory structure at different places (different people PCs). But I am surprised that NI and/or users were not confronted with this issue earlier. Is it true for all the packages (where paths are needed)?
Thanks again for help.

Regards,

Amit
0 Kudos
Message 3 of 9
(3,567 Views)
Hi Amit,

I'm not sure what you mean by all packages where paths are needed. Can you clarify or be more specific?

Regards,

Kristi H
0 Kudos
Message 4 of 9
(3,565 Views)
Hi Kristi,

By this I mean, that there are other packages from NI (like test stand etc). There are quite a few places where users might have to specify paths to certain files right? Eg. result files, or files to read configurations from etc. some similar cases. I was wondering if those users also always specified full file paths etc. To make it more generic, what might be a pertinant question here is, whether there is a notion of relative paths in NI tools at all?(Absence of such a case is totally difficult fathom) If so, then I think this can be easy brought in this case as well. this could also mean modifications to the SIT related VIs (especially SITInitialize.vi). Just a thought.
Thanks.

Regards,

Amit
0 Kudos
Message 5 of 9
(3,566 Views)
I don't think I could make a blanket statement for all NI products, but the concept of relative paths definitely exists. From what I can tell, it seems possible for relative paths to have been implemented for SIT, which is why I think you should make the suggestion. However, there could be other circumstances specific to SIT (i.e. - the fact that it integrates with third party software) that may limit us here.

For more information about how LabVIEW keeps track of paths and VIs, you should reference KnowledgeBase 2CKGQ6G4.

I hope this helps. Have a great afternoon.

Regards,

Kristi H
0 Kudos
Message 6 of 9
(3,559 Views)
Hi Kristi,

In line with your suggestion, I am taking a look at other places I need to specify paths to any file and see if I can work with a relative path. Once I am able to do that, I will work towards trying that idea/concept to the SIT vi. I hope I get somewhere. If not, I still have the work around. :). And in no aspect, I meant to make a generic comment. I was thinking about all the other toolboxes from NI. I am a pretty new user to NI toolboxes, so do not know the length and breadth of the toolboxes.
Oh and btw, I did make the suggestion to NI as you suggested. Thanks!

Regards,

Amit
0 Kudos
Message 7 of 9
(3,556 Views)
Can I connect the Simulation Interface Toolkit to a third-party tool so I can bypass the SimuLink and use some other tool to provide simulation data to the SIT for visualisation ? Thanks
0 Kudos
Message 8 of 9
(3,455 Views)
Tino,
Simulation Interface toolkit is designed to create an interface between LabVIEW and Simulink. The SIT communication manager will interface with the Simulink model and will create the VIs. We haven't tested the toolkit with other third party products.

Ame G.
National Instruments
Message 9 of 9
(3,430 Views)