08-03-2005 07:09 AM
08-03-2005 09:49 AM
08-03-2005 09:53 AM
The primary source of documentation for the Measurement Studio VISA C++ library is, as you mentioned in your original post, the NIVCVisa help file that is included as part of the Measurement Studio help. Can you tell me a little more about what you'd feel is missing from the online help? You can also find some example programs that demonstrate using the Measurement Studio VISA C++ library in the VCNET\Examples\Visa directory under your Measurement Studio directory.
Since you referenced the .chm help file in your original post, I assume you're using Measurement Studio 6 - is that correct?
08-03-2005 10:12 AM
Thanks for your quick reply.
An example for all (non-trivial) functions and constructors in the help would be useful - eg you could show an example for creating a visa session using CNiVisaSession and send an *IDN? string and read it back. That sort of short example would be very useful in the help to provide a basis for getting started.
Excpetion handling would benefit from more examples - eg How does the GetErrorCode() function work on the CNiException template? Take a simple case, trying to find the error code when a visaresourcelist couldn't find any instruments (ie all instruments turned off)... using this function ,the returned code did not match the one generated by GetErrorMessage().
After 2 days ploughing through the documentation I could find, I'm still not clear what viStatus data type is and how it is used - this is used all over the CNiVisa classes. Looking in help visa>constants>attributes>status codes, I can see lots of different codes - but I don't know what to do with them! Again a few examples of handling this return value would be useful.
In my installation I don't have any examples in \vcnet. I am using version 6 with vc6. I seem to remember opting not to install the .net stuff. I'll rerun the installer and see if I can find these examples you mentioned. There are examples in \vc, but nothing obviously related to visa
08-08-2005 10:18 AM