AnsweredAssumed Answered

vrf Interchangeable Instrument Architecture

Question asked by gregwale on Apr 27, 2004
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"><html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 10 (filtered)"><title>Interchangeable Instrument Architecture</title><style><!-- /* Font Definitions */ @font-face     {font-family:Tahoma;     panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal     {margin:0in;     margin-bottom:.0001pt;     font-size:12.0pt;     font-family:"Times New Roman";}a:link, span.MsoHyperlink     {color:blue;     text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed     {color:purple;     text-decoration:underline;}p     {margin-right:0in;     margin-left:0in;     font-size:12.0pt;     font-family:"Times New Roman";}span.EmailStyle18     {font-family:Arial;     color:navy;}@page Section1     {size:8.5in 11.0in;     margin:1.0in 1.25in 1.0in 1.25in;}div.Section1     {page:Section1;}--></style></head><body lang=EN-US link=blue vlink=purple><div class=Section1><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Add references using VEE 7’s “Device/ .Net Assembly Ref” menu for all the IVI drivers your app could use. Youcould use ActiveX references but using the .Net route VEE can take advantage ofthe PIA for Agilent IVI drivers and you will see the full API for the driver inthe F&OB (Function and Object Browser). Add Global variable Declares for Objectsof type .Net or ActiveX but you cannot specify which IVI driver library becausefor interchangeability you need late binding. Based on what the ID response is (usingDirectIO) do a Set object = |IVI driver constructor name>. You cangenerate this Set statement using the Function and Object Browser by browsingto the constructor call for your IVI driver. </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>I wonder if there are any real world IVI interchangeabilitysuccess stories out there. I would be cautious. IVI drivers suffer from extremetype-bloat. For example, I counted (estimated) 400 members of an IVI driver fora power supply which had roughly one tenth as many SCPI commands. And have youscoped out what is involved in creating your own IVI driver?</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>An alternative would be very similar tothe above except use a VEE Import Library of type user function where thefilename input depends on the direct IO query response. In the UF library youcould use a variety of IO approaches.</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Regards,</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>Greg.</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'>www.passtechnologies.com</span></font></p><p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:Arial;color:navy'> </span></font></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----
<b><span style='font-weight:bold'>From:</span></b> Fitting, Gary E[mailto:gary.e.fitting@lmco.com]
<b><span style='font-weight:bold'>Sent:</span></b> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>Tuesday, April 27, 2004</span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> </span></font><font size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>7:52 AM</span></font><font size=2face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
<b><span style='font-weight:bold'>Subject:</span></b> InterchangeableInstrument Architecture</span></font></p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Ineed to set up an interchangeable instrument architecture that will identify aninstrument given an address (GPIB, TCP/IP, or VXI).  Using themanufacturer name and model name, the program will select and load theappropriate instrument driver.</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Iam using new instruments (which I would like to use IVI drivers) and legacyinstruments (which I need to write drivers for that are functionally compatiblewith IVI).</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Hasanyone else already done something like this?  Is there a better way?</span></font>
<font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>How doyou programmatically set the information in the Instrument Manager list?</span></font></p><p><font size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>Thanks,Gary Fitting</span></font> </p><p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:12.0pt'> </span></font></p></div></div>---<BR>You are currently subscribed to vrf as: rsb@soco.agilent.com<BR>To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".<BR>To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".<BR>To send messages to this mailing list,  email "vrf@agilent.com".  <BR>If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".</BODY></html>  

Outcomes