LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

painting of graph cause program crash

All,
when paint graph in my application program, program crash.
 
This will happen if OS is WIndows XP/SP2 and NI-488-2 ver.2.42.
 
Attached is ZIPed source.
 
 
Vincent Lee

由 vincent lee 在 07-21-2006 02:35 AM 上編輯的訊息

0 Kudos
Message 1 of 25
(5,229 Views)
Hi, Vincent.

I took a look at your code, but it was missing a few files and was so large that it's difficult to troubleshoot. Could you please post a very small excerpt of your code that demonstrates this behavior?

Thanks! Have a nice afternoon.
Sarah K.
Search PME
National Instruments
0 Kudos
Message 2 of 25
(5,196 Views)
Sarah,
 
   Please help to check readBack() which will call nyqust_show().
   According to the debug message which com_printf() display thru COM port, the program crashed when call
   PlotPoint(). Please be noted that it will crash when system is XP professional/SP2 and NI-488.2 is version 2.42.
 
 
   Attached is Ziped source and project files.
 
Thanks,
 
Vincent Lee

由 vincent lee 在 07-24-2006 07:28 PM 上編輯的訊息

0 Kudos
Message 3 of 25
(5,189 Views)
Hi, Vincent.

Since I don't have the hardware you do, I being receiving errors before I reach PlotPoint(). (In general, it's best to remove all hardware references when posting code like this.) If you can post an excerpt with I can run, I'll continue debugging.

I did some more searching on this, and I found reference to a couple of other customers having encountered it. Although none of them had a solution, some of them were able to work around the issue by using PlotXY() instead of PlotPoint().

Let me know how it goes! Have a nice evening.
Sarah K.
Search PME
National Instruments
0 Kudos
Message 4 of 25
(5,172 Views)

Hi, Sarah,

   I have removed the hardware referenced com_printf() fucntion by compiler switch of "DEBUG_MSG".

Please help to find out what's wrong in zipped attachment.

I will also try the approach that you suggest, and will let you know if I can make it thru work around.

Thanks for your support.

 

Vincent Lee

 

0 Kudos
Message 5 of 25
(5,167 Views)
all 3 zips are working!
Grüsse aus Deutschland

(GMT +01:00)
0 Kudos
Message 6 of 25
(5,157 Views)

Dubin,

 

   Are you running the program on Windows XP/SP2 with NI-488.2 version 2.42?

 

Vincent Lee

0 Kudos
Message 7 of 25
(5,135 Views)
Hi, Sarah
 
I have tried to use PlotXY, and the result is the same.
 
Attached is ZIP source that include the PlotXY method.
 
PS: There is a control button in graph panel which can select between PlotXY, and PlotPoint method.
 
Thanks,
 
 
 
Vincent Lee
0 Kudos
Message 8 of 25
(5,131 Views)

I dont have a PCI - GPIB. Only USB- GPIB.

 

Running XPprof/SP2

Grüsse aus Deutschland

(GMT +01:00)
0 Kudos
Message 9 of 25
(5,127 Views)
edit: sorry. NI-488.2 v 2.40
Grüsse aus Deutschland

(GMT +01:00)
0 Kudos
Message 10 of 25
(5,125 Views)