01-25-2011 10:55 AM
Hello All,
I am having issues with creating an IVI driver based application. I am using Agilent N6700B PowerSupply to simply configure and output a voltage through GPIB using LV2009 (and Win7). The main issue is with the "Channel Name" I need to specify in the application. Could anyone please confirm what ChannelName I need to use and if the settings in MAX are correct? I have attached all the necessary files.
When I run my application I get the following error "IviDCPwr IVI Error Converter.vi<ERR>
Primary Error: (Hex 0xBFFA0020) Unknown channel or repeated capability name.
<b>Complete call chain:</b> IviDCPwr IVI Error Converter.vi IviDCPwr Configure Output Range.vi GPIB.vi "
Any help is much appreciated
Regards,
PK
Solved! Go to Solution.
01-26-2011 09:08 AM
Hi PKI,
The correct physical name for channel is "1" and it was prepopulated for you by the driver under the Advanced>Instrument Driver Software Module (please see MAX1.jpg). You can name your virtual channel name however you want under the Driver Sessions>Virtual Names section but the physical name should always be 1 as specified in the driver (MAX2.jpg). In your application, make sure you use the exact same name for the virtual channel as saved in MAX.
01-26-2011 09:53 AM
Hi gagi1,
Thanks. It works now!
The issue was that the PhysicalName for the channel under Driver Sessions>Virtual Names section was not pre-populated to "1" and I had given it a name. Though this name matched with that in the Instrument Driver Software Modules>Physical Names section, it did not work because, as you mentioned, it needs to be "1" specifically.
Appreciate your help.
Regards,
PK
06-30-2011 12:30 PM
I'm using CVI and am having the same problem. Thanks for the solution, but I have one question: What gets passed in as the parameter for the Channel Name when using the IviDCPwr class functions, the Physical Name or the Virtual Name?
06-30-2011 01:49 PM
Hello cmelo258,
If you are asking what gets passed as "Channel name" to the vi, then it is "1" (without the quotes).
I have attached a vi snippet of the file I had created. You should be able to copy this into your block diagram and use it as is, assuming you have LV2009 or higher.
Cheers,
PK
10-06-2011 01:35 AM
Hi guys, I'm having the same problem with a 33521A Agilent function generator.
I'm using TestStand and the driver has populated the physical name with 1 and 2 in Max. I'm using the IVITool to init the device but fails on that step. The init step config doesn't allow for any reference to virtual names, so I'm a little perplexed as to what it's complaining about.
Sorry to tag onto this thread but I can't find anything anywhere else..
Thanks in advance 🙂
10-06-2011 07:23 AM
NDAL,
Could you be a little more specific and attach some error screenshots. That would help.
PK
10-07-2011 01:41 AM
Hi PK, sorry for the vagueness.
Please find attached various screen shots.
All virtual names, physical names etc are defaults after installing the driver. I've set the driver to 'Don't Simulate' and have tried setting the channel qualifiers to 'IViFgen' and 'IviDriver' as well (MAXdriver.JPG).
The IVITools step editor has no reference to virtual names nor can I set any such reference (as suggested in the initial reply to this thread where the application must reference the same virtual name as defined in MAX).
I initially was using theAgilent 33210A where the device would init fine, but any configuration later in the sequence would pass, but not actually do anything. I have since tried the 33521A but have not been able to get passed the init.
On another note. every time I run a single pass, or even open TestStand, the installer runs. I have to cancel it everytime and it gets quite annoying. Would this have anything to do with the init failures, ie there may be a component missing that is required to communicate with the device?
A bit of background, I have been tasked with finishing this test sequence that a colleague of mine started approx a year before. He apparently had everything working using the 33210A. Nothing has changed since in terms of the sequence, config, or the PC in the test room that we are running this from. We've just swapped over to the 33521A to see if there was an issue with the 33210A itself, but can't seem to get it working properly either.
The project was initially setup with reference to www.bourbaky.com/dwnld/SICL/readme/trouble/niinfo.htm where there were specific issues related to Agilent and NI libraries being installed on the same PC. These were followed and the initial sequence was working, as mentioned earlier.
Happy to take this offline or start another thread if it ends up unrelated to this one.
Thanks again 🙂
10-07-2011 01:48 AM
...and more attachments..
10-10-2011 01:08 PM
Hi NDAL,
In looking at your screenshots, it looks like the program is calling "FGen1" but that the Resource Descriptor is just "FGen". Can you try making those match and see if the problem persists? I'd be interested to see if that's confusing the program since the resource names aren't exactly the same.
Regards,
-Dave C