07-07-2006 08:19 AM
07-07-2006 08:44 AM - edited 07-07-2006 08:44 AM
I'm assuming you are talking about the driver that is available on NI's site? Then the author is someone at NI. At the download page, there is a 'Comments' link. The best forum for discussing drivers is the Instrument Control one. I'm not familiar with the instrument but if you wanted to try a little troubleshooting on your own, you might want to see what the programming manual has to say about the CGET command and what else may need to done prior to getting any valid data. The command being issued by the driver is CGET? channel#,mode and assuming that the channel number and mode are correct, the VI is returning something so it just may be a matter of doing some other inititialization to get valid data. A good way to debug instrument communication is with MAX. There you can experiment with the different commands and queries.
Just to add a little more, Stanford Research may not provide any support for the driver but they should support the instrument and remote programming. If you say you issue the command CGET? 0,0 and get garbage data, they should be able to tell you why. You don't even need to mention LabVIEW. The commands are the same with whatever programming language you use.
Message Edited by Dennis Knutson on 07-07-2006 07:48 AM
07-12-2006 09:41 AM
07-12-2006 09:57 AM
07-12-2006 04:31 PM
Thanks Dennis,
Yes I see now what you're saying. I've spent the day playing around with it and I think I have a temporary solution. The Labview driver works as it should. It brings the binary data in from this instrument. I wrote a short program to simply write that data to a file. Then I open up a program provided by the SRS company that reads the file and graphs/exports it.
My next goal is to try to eliminate the step of having to write to a file, and use another program to interpret the data.
All I have to do is remove the header from the data (I believe it's the first 77 bytes), then take the remaining array, and 4 bytes at time convert this to decimal numbers from the IEEE 754 standard. ( I am searching for a LV function for this but not sure if it exists to convert a 32 bit binary IEEE754 number into a float).
Thanks again for the help!
Jeff
07-13-2006 09:45 AM
07-13-2006 03:29 PM
07-13-2006 04:13 PM
07-13-2006 05:41 PM
Yes, the Querey Display Data VI (and the command) reads the data from the display (what the instrument shows) not the capture buffer. The problem is that the display only shows a portion of the total buffer.
Jeff
07-13-2006 06:35 PM