AnsweredAssumed Answered

vrf Duplicate UF names ?

Question asked by reiner.schlieker on Nov 5, 2004
I always prefix all function names within a library with a common prefix,
which is USUALLY the same name as the import name, and I do away with the
dot notation.  E.G.  DMM_Initialize(), DMM_Range(), etc.

Reiner

-----Original Message-----
From: jason.hicks@nokia.com [mailto:jason.hicks@nokia.com]
Sent: Friday, November 05, 2004 11:07 AM
To: VRF
Subject: [vrf] RE: Duplicate UF names ?


Hi,

I have loads of instrument drivers / testcase libraries that all have
duplicate UF's and there are no problems.

Each library is imported into the main system as a unique import (cannot do
it any other way). Internal function calls will always call look for the
function within its namespace or library as I would define it. If it does
not find it here then it could get it from anywhere.

The only issue I have with this is when I double-click an Call function
object to open it that does not have explicit library name infront of it -
the development environment does not necessarily have the same presidence
for searching for UF names when it is NOT running as it does when it is
running.

I can also load the same library multiple times and there is no problem.

External function calls to the library must use the correct imported
librarname though.

i.e.

Call SigGen1.SetFreq(12.5MHz) or SigGen2.SetFreq(12.5Mhz)

internal function calls of each library will not affect the other even
without the x.y notation.
Assumming DoThis(n) is in both libraries then....
Call DoThis(5) in SigGen1 can be called without the the libraryname and will
always execute the function within its library.

.....I hope you get this because I've forgotten what I'm talking
about......asdgwehjkj

BR
Jase



-----Original Message-----
From: ext Alexander Poulikakos (KI/EAB)
[mailto:alexander.poulikakos@ericsson.com]
Sent: Friday, November 05, 2004 3:45 PM
To: VRF
Subject: [vrf] RE: Duplicate UF names ?


There are no parallel threads, thank god :o)

/Alex

-----Original Message-----
From: Shawn Fessenden [mailto:shawn@testech-ltd.com]
Sent: den 5 november 2004 16:41
To: VRF
Subject: [vrf] RE: Duplicate UF names ?


> Single step and when you find a call that's calling the
> wrong function, get rid of it and replace it.

Hang on.. make sure you take into account any thread switching that may be
going on. If you've got parallel threads executing you can't be sure of
exactly what is supposed to happen.

If it's a parallelism problem that's happening, then serialize the whole
darn thing. Make sure that any calls into any library function will execute
to completion (return) before any other thread has a chance to use the same
library.

Also, make sure that any parallel threads that are accessing the same
instruments are using different instrument names in instrument manager. If
you don't do different names and two threads happen to try to talk to the
same instrument at the same time, WHAM! Everything gets all messed up.
-SHAWN-


---
You are currently subscribed to vrf as: alexander.poulikakos@ericsson.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: jason.hicks@nokia.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: reiner.schlieker@siemens.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".

---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

Outcomes