‎11-20-2006 09:13 AM
‎11-20-2006
10:02 AM
- last edited on
‎10-21-2026
08:49 AM
by
Content Cleaner
You will probably have to write your own instrument driver, which isn't really difficult to do. There's tons of examples on the NI Instrument Driver Network that you can use as a template. My suggestion is to make a separate VI for each command as that will make integration easier.
The company seems to have this application that you can use to collect data and put it into Excel. You may wish to contact them to see if it has an ActiveX interface. That may be another option, though the overhead is going to be substantially larger than writing a few VIs to implement the commands the instrument uses.
‎11-20-2006 10:05 AM
‎11-20-2006 10:23 AM - edited ‎11-20-2006 10:23 AM
I've used the Instrument I/O Assistant previously, but with less involved machinery on the receiving end.
I'm not receiving a Code Generation Type, leaving me unable to apply a VISA Code Generation. As expected I receive an Execution Error: Timeout expired before operation completed - VISA; Status Code - bfff0015. I increased the Timeout value but received the expected error again cause I am not given an option for Code Generation. I selected the instrument COM1, and I know it's hooked up in the right COM slot so that can't be the problem.
Any reasons for this?
Thanks
Message Edited by Steve.Briggs on 11-20-2006 11:24 AM
‎11-20-2006 10:37 AM
I don't know what you mean by Code Generation Type. Where do you expect to see this? I'm not a big fan of the assisant's capabilities in 7.1 so I've only played around with a couple of times but I don't remember anything like this.
You may have the instrument connected to the correct port but do you know if it's connected correctly? Have you tried it with Hyperterminal?
‎11-20-2006 11:39 AM
‎11-20-2006 12:08 PM
Okay, I see that now. I had 7.0 open and it's not there. I have no idea what this is for but I can't select it either. VISA Code Generation should be the only option you have and there should be no reason to change it.
There are many ways to be connected incorrectly. The baud rate, parity, data bits, etc., could be incorrect and the calbe may be miswired. Some instrument require a null modem cable where the TD and RD lines are swapped between the instrument and the pc and some instruments use a stratight through cable. You can also get a timeout error if you send an incorrect command in the query and parse or if you choose an incorrect termination character.
‎11-20-2006 12:20 PM
‎11-21-2006 10:23 AM
‎11-29-2006 02:37 PM