09-29-2009 03:54 PM
Hi everybody
I have an issue with a name largely used in IVI standards that gets translated as is from a .fp, .h LabWindows/CVI files into LabVIEW wrappers. The name is <repCapIdentifier> and is the IVI standard name for an instrument channel. There are people that would prefer to see instead of <repCapIdentifier> the more familiar name <channel>.
The problem is that the source files build for LabWindows/CVI contains <repCapIdentifier> as a parameter name and the Import Generator Tool let me change only the function name not the name of parameters.
I tried to change the <repCapIdentifier> into <channel> in the corresponding .h header file of the CVI driver but still the final LV wrapper keep the <repCapIdentifier> name for a channel.
I could go in each final LV wrapper and for every one of them replace the label <repCapIdentifier> to label <Channel> but there are so many of them and sometimes created for multiple times that the task becomes tedious.
I wonder if anyone on this board got involved in this <repCapIdentifier> naming issue and if so what was their solution.
Thanks
Sorin
09-30-2009 05:07 PM
10-01-2009 08:30 AM
Hi Olivia
Yes, The Import Generator Tool that I am using to create LabVIEW wrappers is from NI.
Depending on LabVIEW version it is named "Import CVI Instrument Driver" or "Generate VI Interface from CVI Driver" and install as a Tool add on labVIEW under Front Panel => Instrumention menu.
The name of tool driver on NI site is <driverctolv.exe> for LabVIEW 7.1 or <driverctolv_1.2.exe> for LabVIEW version 8.x.
Thanks
Sorin
10-02-2009 04:51 PM
Hi Sorin,
I'm not too familiar with the Import Generator Tool. I'll have to get back to you on that.
10-06-2009 02:55 PM
Hi Sorin,
The Import Generator Tool is basing the control names on what is found in the .fp file. Changing the labels in .fp file might make things a little easier for you.
If you would like, you could post the driver you want to import into LabVIEW and we can take a look at it and offer any suggestions.
10-06-2009 05:00 PM
Hi Olivia
Yes your sugestion is good. I was able to change the label <repCapIdentifier> in all .fp file through one Edit->Replace operation. I supposed that if the .fp file is changed also all LV VI wrappers generated from this file will propagate now <channel> instead of <repCapIdentifier> but I have to test that tomorow and let you know the result.
Thanks
Sorin