DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

AutoDrvUser and GraphDrvUser problem

 I have the following piece of code:

 

Dim i, SharedPath, Chans
Chans = Array("Roll","Slip","HW","Storq","StMean","Fslip","Sslip","HW_Strat")

CHNNAMEOVER      =0
CHNCOMMENTOVER   =0
CHNNAMINGMODE    ="GroupUnique"
EXTENDCHNNAME    ="IndexName"

SharedPath="N:\Dynamics Data Processing\Spad\"
AutoDrvUser= SharedPath&"VBS\"
GraphDrvUser= SharedPath&"layouts\"

 which has always worked until we switched to DIAdem 2010. Now the last two lines apppear to operate as if the variables were the same one. That is to say, the code sets AutoDrvUser to SharedPath&"VBS\" and at the same time sets GraphDrvUser to the same value. When the following line is executed BOTH variables change to SharedPath&"layouts\"! They operate in unison.

 

Wondering if it was a case of old variables, I changed the last two lines to read:

 

ScriptReadPath= SharedPath&"VBS\"
LayoutReadPath= SharedPath&"layouts\"

 Again I used the watch window to see what value each variable took during debug mode and exactly the same thing happened! All four variables acted in unison.

 

What's going on?

 

Cheers,

 

Si.

0 Kudos
Message 1 of 2
(3,450 Views)

Hi Si,

 

See the attached KB, this should solve the issue.

 

Regards

 

Richard

Richard S
Applications Engineer
Certified LabVIEW Associate Developer
National Instruments UK&Ireland
0 Kudos
Message 2 of 2
(3,412 Views)