AnsweredAssumed Answered

vrf Calls to Imported User Function Output Pin Check?

Question asked by VRFuser on Jul 20, 2005
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word" xmlns:st1 = "urn:schemas-microsoft-com:office:smarttags"><HEAD><META http-equiv=Content-Type content="text/html; charset=us-ascii"><META content="MSHTML 6.00.2900.2668" name=GENERATOR><o:SmartTagType name="PersonName" namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]><STYLE>st1:* {     BEHAVIOR: url(#default#ieooui)}</STYLE><![endif]--><STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }P.MsoNormal {     FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"}LI.MsoNormal {     FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"}DIV.MsoNormal {     FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"}A:link {     COLOR: blue; TEXT-DECORATION: underline}SPAN.MsoHyperlink {     COLOR: blue; TEXT-DECORATION: underline}A:visited {     COLOR: purple; TEXT-DECORATION: underline}SPAN.MsoHyperlinkFollowed {     COLOR: purple; TEXT-DECORATION: underline}SPAN.EmailStyle17 {     COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose}DIV.Section1 {     page: Section1}</STYLE></HEAD><BODY lang=EN-US vLink=purple link=blue><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>Hi Joe -</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>I think you are right in that you have to manually go through the code and change all UF calls.</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>It sounds like an excellent feature request though to do this check </FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>(Personally I think function overloading would be an excellent feature to add too and this</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>would also solve your problem I guess since you seemingly don't care about the extra output value.. </FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>but that's a different discussion)</FONT></SPAN></DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV dir=ltr align=left><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>> <FONT color=#000000>When I am configuring a lot of instances using the find command, these get changed but are unfortunately not saved. </FONT></FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>Hmm - this sounds like you are finding calls to the modified UF inside imported UF's.</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>You need to do the search & update pinout in every _file_ that uses the modifed function..</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>For each of those files I would..</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005></SPAN><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>    Load the library first thing in main(), run program and stop after import is done.</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>    Then search for all calls to the modifed UF. </FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>    Jump to each of the UF calls, right-click on the call </FONT></SPAN><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>box and select "Configure Pinout". </FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>This will update the pinouts. Repeat for all calls, save the file and move on to the next file that uses that library </FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>A bit tedious thought if you have lots of calls.. </FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>I guess if you have a lot of files that use that library a quick way to find the ones that call that modified function</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>would be to do a text search for "Call |your modified UF name>" on the entire directory tree that contains all vee files</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>that might be affected.. mind you with lots of files & calls that Vee code parser that Shawn suggested sounds like the best </FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>approach really.</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV><DIV><SPAN class=625263907-21072005><FONT face=Arial color=#0000ff size=2>Regards,</FONT></SPAN></DIV><DIV><SPAN class=625263907-21072005></SPAN><SPAN class=625263907-21072005></SPAN><FONT face=Arial size=2><SPAN class=625263907-21072005>    Sascha.</SPAN></FONT></DIV><DIV><FONT face=Arial size=2></FONT> </DIV><DIV><BR></DIV><BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>  <HR tabIndex=-1>  <FONT face=Tahoma size=2><B>From:</B> Joe Flynn   [mailto:jflynn@sequoiacommunications.com] <BR><B>Sent:</B> 20 July 2005   20:07<BR><B>To:</B> VRF<BR><B>Subject:</B> [vrf] Calls to Imported User   Function Output Pin Check?<BR></FONT><BR></DIV>  <DIV></DIV>  <DIV class=Section1>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Is there a way for VEE 7.51 to   automatically check the output pin configuration on calls to imported user   functions?<o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I have an application with many   calls to many imported user functions. I had to add an output to the user   function, <o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">But now need to manually go find   each and every one to configure the output. (As I forgot some of them, that   only execute once and a while, seems like only during the wee hours to crash   my program)<o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It would be nice if Vee would warn   me there is an output mismatch at runtime instead of crashing during the   execution, or someone can tell me of a way to do   it.<o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">A “feature” I found while doing   this check manually, is that VEE will let you configure the output pins on a   call inside of an imported user function marked “view only”. When I am   configuring a lot of instances using the find command, these get changed but   are unfortunately not saved.  I guess read only is just for advice. (I   did not execute the hidden edit imported user   objects).<o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Many thanks in   advance,<o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><st1:PersonName w:st="on"><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Joe   Flynn</SPAN></FONT></st1:PersonName><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial size=2><SPAN   style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P></DIV><BR>---<BR>You   are currently subscribed to vrf as: sspangenberg@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". </BLOCKQUOTE><BR>---<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