05-17-2012 04:49 PM - edited 05-17-2012 04:51 PM
Hi there,
I'm new to IVI drivers (started using them last week) and I have a problem with the RangeCheck initialization option.
In order to get used to IVI drivers, I used the example that comes with the IVI-COM AgilentE36xx driver (on my computer it's located at C:\Program Files\IVI Foundation\IVI\Drivers\AgE36xx\Examples\VS.NET\Cpp\Example1).
I have been able to do all I wanted except getting an out-of-range error when passing an out-of-range value to a function. I set the RangeCheck init option to true but I did not get any error in simulation neither with the hardware connected.
Attached is the code (from the Agilent example) but modified in a way that it should throw an out-of-range error when setting the voltage at the following line: spOutput1->VoltageLevel = 1000; // ... why no error.
Still it's executing fine. Can anyone point me to what I'm not doing correctly.
Regards,
Romain
Solved! Go to Solution.
05-18-2012 08:53 AM
It probably depends to what extent the range checking feature is implemented in the driver. National Instruments does not support Agilent IVI-COM drivers so it would probably be better if you ask Agilent for help. I am not sure which exactly model you use but NI provides these two IVI-C drivers:
05-18-2012 09:54 AM
Hi gagi1,
Thank you for your answer. Yes, I will contact Agilent.
In the meantime, do you have any example of C/C++ code (using IVI-C or IVI-COM drivers from NI) that throw an out-of-range error?
Regarding the links in your reply, I think the drivers are either for LabWindows/CVI or for LabVIEW. Unfortunately, I use C/C++ as ADE.
Regards,
Romain
05-25-2012 04:19 PM - edited 05-25-2012 04:20 PM
Hi,
I posted the question on the Agilent Forum.
Here is the link to the post: http://www.home.agilent.com/owc_discussions/thread.jspa?threadID=33348&tstart=0
The problem is now solved. Thank you for your help.
Regards,
Romain