hey,
thanks for your suggestions. my problem was a little more simple than
that--i figured it was. since the drivers i downloaded were for the
specific device (Keithley 2000 DMM) i was working with, i didn't think
that any hard programming would be necessary (i mean, shouldn't the
drivers already do this?). turns out this was correct.
for those of you who are interested, Keithley has several example vi's
included with their instrument drivers (available from ni.com with a
'Keithley 2000 instrument drivers' search). a few good ones are 'Read
Single Example.vi' and 'Read Multiple Example.vi', etc., which use the
more basic vi's to
perform most measurements and you can expand these to your own
applications quite easily. there is also a good bit (Visual C++, Basic,
and older versions of LabVIEW) of documentation on the Keithley website
for the 2000. these downloadable instrument drivers can save you A LOT
of time: i have been working on this measurement using Visual C++ and
LabVIEW versions 6.0 and 7.0 without the instrument drivers, and it is
very trying--the instrument drivers are the basic building blocks you
need to set up your measurements, and they take care of a lot of the
little 'technical stuff' that would take you so long to figure out.
after the initial run of the program didn't work, i went through parts
of the block diagram, and, in the 'Read Single Example' (for example),
i noticed that the baud rate in one of the sub-vi's was given as 19
200, while on my instrument it was set to 9 600. i changed the rate in
the sub-vi, but it still wouldn't work. i called NI and spoke with a
technician for a while, but we were unable to isolate the problem.
a little later, i was explaining the problem to some one else, and i
decided to set the instrument baud rate to 19 200 to follow the value
that was in the 'Read Single Example. vi'. it worked! same for the
'Read Multiple Example.vi'.
i believe the problem originated because when i changed the baud rate
in the vi, i only changed it in one place. there are a few sub-vi's
running in this example vi, and i am pretty certain that the baud rate
has to be set somewhere in some of them, too. since i didn't change ALL
of the baud rates to follow the instrument, my program fizzled.
however, when i changed the instrument baud rate to follow the vi, that
wasn't a problem, because there was only one loose end to tie up.
hope this helps some one out--use the instrument drivers whenever
possible, they will add years to your life. i did all of this for the
serial port, but these example vi's have the option for GPIB too.
thanks again,
random