LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

YGraphPopup unhandled exception

I am calling YGraphPopup and getting an unhandled exception. I tried just setting all the graph data to 0 and sending a length of 1. It does not get the exception every time... just sometimes. I have attached a file with the error from the calling program in Microsoft Visual and the call stack. Here is the code:
REAL FlotSAM[1024] = {0.0};
char GraphLabel[80];
int plotlength = 1;
sprintf(GraphLabel,"Sampled Data: Horizontal Resolution = %f microseconds",(pBasePage->RES * 1e6));
YGraphPopup(GraphLabel,FlotSAM,plotlength, VAL_DOUBLE);
2 files attached. Any suggestions would be appreciated.
Download All
0 Kudos
Message 1 of 4
(3,377 Views)
Hello

Is this a CVI project that has been exported to VC? I have been unable to reproduce this on my machine. Can you attach a simple project that would help be see the problem?

Thanks

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 4
(3,377 Views)
It is a CVI function being called in a VC project. Did you look at the attached file of a code segment on the original posting? The problem didn't change when we populated the array before calling YGraphPopup. We switched versions of VXI from 3.2 to 3.3 (which changed the Visa library from 2.5.2 to 2.6.1). The problem seems to be gone, but it was intermittent before and we don't feel confident that this version change fixed the problem. Thanks for looking at the problem. Any other ideas would be appreciated.
0 Kudos
Message 3 of 4
(3,377 Views)
I doubt it was VXI that would cause this problem, since YGraphPopup is actaully a function of the CVI Runtime. If you are able to reproduce this problem consistently, please email in with a simple test project using this link

Bilal
Bilal Durrani
NI
0 Kudos
Message 4 of 4
(3,377 Views)