12-04-2013 12:34 PM
When the Fluke DMM ECHO setting is on, the following happens using the VISA test panel in NI MAX:
Note that this is entirely the same when the ECHO setting is off, except that step 2 does not occur.
Now, this is entirely the same as the following output when issuing the *IDN? command in Tera Term:
*IDN?
FLUKE, 45, [sn redacted], 1.7 D1.0
=>
(Tera Term, does not display the carriage return (\r) or line feed (\n) like the VISA panel does.)
So, it would appear that the VISA panel is communicating with the DMM in the same way as terminal, it is just not actively reading like Tera Term and requires the user to request a line read.
What I do not understand, is the difference between behavior of the DMM when using Tera Term or the VISA test panel and when using LabVIEW.
When communicating with the DMM in Tera Term or the VISA Panel, the DMM responds by going from display state 1 to display state 2 (see images below). When attempting to use even the most basic example serial communication VIs or the Fluke plug and play driver VIs, the DMM stays at display state 1. Note that the change from state 1 to state 2 happens only after initiating a connection in Tera Term or the VISA panel; so, I believe that I am experiencing an issue where LabVIEW is unable to acquire a communication lock with the serial instrument.
If anyone has insight, please let me know if you have any way to troubleshoot this particular issue.
Display State 1:
Display State 2:
Solved! Go to Solution.
12-04-2013 12:46 PM
12-04-2013 12:56 PM
I've tried it without, with both, and with either.
I don't think that the commands are even reaching the instrument when using LabVIEW because the device never enters display state 2 as described in my original post. Display state 2 occurrs without any commands issued on my part, and I believe results from Tera Term or the VISA Panel acquiring an exclusive lock on the DMM.
Even after multiple resets and ensuring that no other program is trying to communicate over COM, I can't get LabVIEW to acquire a lock on the DMM.
I am, however, able to succesfully perform a loopback test in LabVIEW with the same RS232 cable on COM 1. So, it's clear that the issue occurrs only when trying to use the DMM.
12-04-2013 01:17 PM
A loopback test is pretty meaningless. What is the actual LabVIEW code? Are you closing the VISA resource at the end which would release the port? Are you getting results when you request them? Not seeing a specific screen is not in itself that significant
12-04-2013 01:27 PM - edited 12-04-2013 01:27 PM
I have used a number of example VIs that issue open and close VISA.
Two that come to mind are:
These generally result in timeout errors.
12-04-2013 01:28 PM
12-04-2013 01:29 PM
I used \r\n in string display
12-04-2013 01:34 PM
12-04-2013 01:39 PM
I used the example found here: http://digital.ni.com/public.nsf/allkb/171D2D70CFB66E74862571390062D12B
I believe it's set up correctly, based on what you've said. I've also tried every combination of \r and \n
12-04-2013 01:42 PM
I should note that I do not think that this is an issue of formatting the command correctly. I think that there is an issue with the way LabVIEW is attempting to open VISA communication with the DMM.
The fact that I can use default Tera Term settings or default NI VISA Test Panel settings and communicate, but not use example VIs with the same settings is confusing. (And yes, I have reset the hardware as well as the software multiple times to ensure that I don't have resources competing for COM1.)