i want to pass visa resource name from one vi to other vi through tcl .i am able to obtain the visa resource name from initialise.vi to tcl , it returns something like "dmm 1099384" no when i pass this to my other subvi it gives error like "paramnames type mismatch.expected 1d array of strings or 1d array of string variants". Below is the code that i am using
package require tcom
#
# close Tk widnow
#
catch {wm withdraw .}
# open LabVIEW application
#
set lview [::tcom::ref createobject "LabView.Application"]
set path "C:\\Documents and Settings\\rajr1\\Desktop\\project\\dmm\\initialise.vi"
set vi [$lview GetVIReference $path]
$vi Run
set seid [$vi GetControlValue "VISA resource name out"]
set path "C:\\Documents and Settings\\rajr1\\Desktop\\project\\dmm\\singlemeasurement module.vi"
set vi [$lview GetVIReference $path]
set names [list "Measurement Data" "VISA resource name"]
set values [list 2 $seid]
$vi Call names values
puts [lindex $values 0]
$lview Quit