02-14-2011 04:08 AM
Hi,
I have a USB TMC Pattern Generator PSPL 12060. I am using NI MAX version 4.6, and is able to detect the instrument. When I try to communicate with the instrument, there's no problem writing SCPI commands to the instrument. I can set the instrument parameters without problem.
The problem occurs for the query statements because I keep on getting timeout error. I've tried the basic query statement (eg:*IDN?), and keep on getting the same error 0xBFFF0015 (VI_ERROR_TMO)
Please advise if I've missed out any settings.
02-28-2011 07:19 PM - edited 02-28-2011 07:20 PM
Likely the instrument may not terminate the response with EOM (End Of Message, defined in USBTMC spec).
Try enable the termchar attribute, which is effective on read action.
Or try to append 0x0A after *IDN? when sending like "*IDN?\n"
04-18-2011 09:58 AM
Hello,
I am using the USBTMC.vi example as my starting point to create a LabVIEW to USB Interface or a small data aquistion system. I get the same error, ie. "0xBFFF0015 Timeout expired before operation complete completion".
How can the VI_ATTR_TERMCHAR_EN = VI_TRUE be setup in the USBTMC.vi example ?. I do not see a function within Instrument I/O, VISA that can be used to set the VI_ATTR_TERMCHAR_EN.
04-18-2011 10:27 AM
Your code is not sending the control character. You are sending the characters '\' and 'n'. As has been endlessly discussed, you need to right click on the string constant and select '\' Codes Display.
Also, there is a VISA property to set the write termination character.