02-22-2017 02:27 PM
The type of device I believe is irrelevant, but it is an oscilloscope, funciton generator and a power supply that I've tried. I get the same error regardless of device i hook up, which is either through GPIB or a straight up USB connection. Maybe I'll have to try reinstalling it.
02-22-2017 02:41 PM - edited 02-22-2017 02:48 PM
@DonutLord wrote:
The type of device I believe is irrelevant, but it is an oscilloscope, funciton generator and a power supply that I've tried. I get the same error regardless of device i hook up, which is either through GPIB or a straight up USB connection. Maybe I'll have to try reinstalling it.
Actually the knowing what device you are using is very relevant.
As I have found using a LeCroy Oscilloscope.
This works:
This does not:
But inside LCWAVE WRITE there is nothing but a VISA Write:
I don't know what kind of secret sauce LeCroy puts in their VISA Write but their oscilloscopes only work with with their vi's.
SCPI commands using the VISA Write on the LabVIEW palette always fail.
02-22-2017 02:51 PM
Ah well all of my equipment is Agilent.
02-22-2017 02:57 PM
There is a difference. You can see if if you look closely at the icons on the VISA Write VI's.
The one in their subVI does not have a watch at the upper right. The one in you VI does. The one with the watch is set for Asynchronous mode. The one without is set for Synchronous mode. You can change it if your right click on the VISA Write function.
I don't know why that would cause the error message you are seeing about insufficient information finding the device. Unless perhaps a behind the scenes query to see if the device exists takes longer than normal, and putting it into Synchronous mode gives it just enough time for the device to respond.
02-22-2017 03:18 PM - edited 02-22-2017 03:21 PM
OT@ RTSLVU
Look at those VISA writes a bit closer.... See the clock glyph? LeCroy never implemented Async calls well.
That's what I get for playing with the driver and going through old notes. Raven's fan beats me to the punch.
02-22-2017 04:07 PM
@RavensFan wrote:
There is a difference. You can see if if you look closely at the icons on the VISA Write VI's.
The one in their subVI does not have a watch at the upper right. The one in you VI does. The one with the watch is set for Asynchronous mode. The one without is set for Synchronous mode. You can change it if your right click on the VISA Write function.
I don't know why that would cause the error message you are seeing about insufficient information finding the device. Unless perhaps a behind the scenes query to see if the device exists takes longer than normal, and putting it into Synchronous mode gives it just enough time for the device to respond.
Doh! Thanks, you just figured out something that neither NI, or LeCroy could figure out!
02-22-2017 04:15 PM
@DonutLord wrote:
Ah I'm not sure about the serial drivers. However i am using labview 2016 64bit and have NI-VISA drivers 16.0. I would assume they are compatible as they are the latest versions of each.
I guess you need to install also NI Serial drivers. If you've installed NI VISA from NI Device Drivers pack, then it is included there by default. But if you've installed NI VISA separately, there are chances, that NI Serial drivers are missing now on your machine.
But, it does not explain the fact, that you could run code via VISA express VIs...
02-22-2017 04:48 PM
@kosist90 wrote:
@DonutLord wrote:
Ah I'm not sure about the serial drivers. However i am using labview 2016 64bit and have NI-VISA drivers 16.0. I would assume they are compatible as they are the latest versions of each.
I guess you need to install also NI Serial drivers. If you've installed NI VISA from NI Device Drivers pack, then it is included there by default. But if you've installed NI VISA separately, there are chances, that NI Serial drivers are missing now on your machine.
But, it does not explain the fact, that you could run code via VISA express VIs...
You only need to install NI-Serial drivers if you are using a serial device that is made by NI. If you are using something already built into your PC, or some other companies add-on, you would have probably installed drivers made by that company. In which case you only need to have NI-VISA installed.
02-22-2017 06:48 PM
I'll look into the serial drivers.
also actually discovered that the express vi only works when testing it, once I put it on the block diagram and it generates code it doesn't work and gives the same error.
02-22-2017 08:29 PM
It won't work. Because the underlying code that that the Instrument Assistant generates also uses the Asynchronous mode of the VISA functions.