04-08-2008 10:34 AM
04-08-2008 10:37 AM - edited 04-08-2008 10:39 AM
04-08-2008 10:41 AM
04-08-2008 10:43 AM
04-09-2008 03:35 PM
10-19-2010 02:08 AM
One little question?
What about the original and very old theme of this post, update tolerances trough ActiveX?
I'm using VBAI 2009 SP1 and Visual Basic 6 (right, in 2010).
I try to change LowerLimit and UpperLimit properties value, but they never apply. Every time I do a Inspection.RefreshLimits the limits return to original values.
Now I'm using a ini file as a middle solution for user updated tolerances.
10-19-2010 09:55 AM
The ActiveX only allow you to retrieve the limits, not set them. to have the user modify limits, the recommended way is to not use the step limits, but instead add your own decision making step (logic calculator or calculator step), and compute the pass/fail condition based on the results you're interested in and limits that you read from Modbus registers. Use Modbus commands from your application to set these Modbus registers.
A less optimal way is to read those limits at each iteration from a file that you write from your application.
Updating the limits programmatically is a common request, and is on our list of potential future features.
-Christophe
10-21-2010 02:26 PM
Ok, many thanks. There is any documentation about the ActiveX methods and properties?
I suppose that another very popular feature request for the ActiveX control should be reading and writing inspection and system variables, without the need of the Measurement Studio.
10-21-2010 03:17 PM
CVI and Measurement studio provide APIs for accessing shared variables.
On Windows, we also provide an ActiveX interface to the DataSocket library. If you have DataSocket installed on a PC, through the LabVIEW runtime or some other means, you can write a C++ or .NET app to access shared variables through that interface.
However, this is not well supported outside of the Measurement Studio environment.10-25-2010 03:56 AM
That's interesting!
Do you have any example of the DataSocket ActiveX interface (for .net, c++ or labview)?
Thank you.