Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How may I change <repCapIdentifier> in <Channel> in a labVIEW Wrapper created trough Import Generator Tool

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

0 Kudos
Message 1 of 6
(4,316 Views)
Which Import Generator Tool are you using? Is it something from National Instruments?
0 Kudos
Message 2 of 6
(4,297 Views)

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

0 Kudos
Message 3 of 6
(4,290 Views)

Hi Sorin,

 

I'm not too familiar with the Import Generator Tool. I'll have to get back to you on that.

0 Kudos
Message 4 of 6
(4,270 Views)

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.

 

0 Kudos
Message 5 of 6
(4,234 Views)

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

0 Kudos
Message 6 of 6
(4,226 Views)