Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

how do I access the elements of the StraightEdgeReport?

I'm trying to access the elements of a variable of type StraightEdgeReport*. in IMAQ vision with VC++ 6.0 like this: Edge = imaqFindEdge(procSearchImg, patternRect, endEdgeDir, &edgeOptions, NULL);
float startX = Edge.start.x;
But I get compiler error error C2228: left of '.start' must have class/struct/union type
I know that the imaqFindEdge worked correctly in debug mode. I am kind of new at programming so I need some help on this. Thanks.
0 Kudos
Message 1 of 2
(2,831 Views)
Hello,
This issue was troubleshooted with National Instruments over the phone and it was discovered that the problem was the syntax. The correct syntax is
edge[0].element

instead of edge.element

Regards

Russell Blake
Applications Engineering
National Instruments
Director of Engineering
G Systems, www.gsystems.com
Certified LabVIEW Architect
Certified LabVIEW Embedded Systems Developer
Certified Professional Instructor
GCentral
0 Kudos
Message 2 of 2
(2,831 Views)