LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error When Running LabVIEW Executable - drawmgr.cpp, line 2952

I am running code(not compiled into an executable) that keeps spitting that error. The VI is multi-use ECG reader that can either Read ECG off a device and save it to a file or read one of the saved filed and then playback the ECG run(useful for post processing).

When I try to run the playback function it keeps giving me said error. 

I did not personally write this code from scratch, I am new to labview and basically was told "hey you are a programmer go do Labview and update this software". So I am somewhat unfamiliar. I am about to being trying to trace through it but it would be nice if I could be give a direction like "this error relates to this problem". I have tried searching the net for said problem and came up with nothing.

help?

0 Kudos
Message 1 of 6
(3,068 Views)

A drawmgr.cpp error is usually related to drawing something on the screen. Sometimes video card drivers cause these issues, and sometimes it's specific controls. Are you using some sort of graph or picture indicator?

 

One thing you can try, if possible, is to run the code on another machine that has a different graphics card to see if the problem goes away. If it does, try updating the video card drivers. Another thing to try is to temporarily hide an indicator that might be drawing, like a graph. If the problem goes away, we can focus on what might be causing the drawing/update of that indicator to cause that error.

 

There's a few other things you can try

0 Kudos
Message 2 of 6
(3,047 Views)

Manged to update the drivers this morning(most Dls are blocked from work so I had to bring it from home). It didn't solve the problem.

Just to state and maybe throw it out there. The program runs multiple data charts that plot poits of data from an ECG monitor. When I read the data "Live" from the bioradio it works just fine. When I attempt to run a playpack from a file is when it crashes.

I set some breakpoints and it does some funny stuff. One breakpoint it will actually hit it....then crash after.

Really confused right now, especially with my lack of familiarity with Labview(only being doing labview less than a month)

0 Kudos
Message 3 of 6
(3,026 Views)
Unfortunately, without seeing some code it's hard for me to guess at what's going on. What exactly is happening when you "play back"? Are you reading from a file? Can you upload some code?
0 Kudos
Message 4 of 6
(3,024 Views)

The code is on my development machine which is not connected to the internet. Also flash drives are banned from use here still(yay federal government rules).

When the VI lauches it goes through its normal intiialization. When it hits into the main loop a selector case seperated the various modes(Live, Playback, playback from textfile[I don't know if that works or not, I don't have a text file to test it as of right now]).

I just wish I had a more descriptive error than "line 2952" so I could have an idea what to look for.

0 Kudos
Message 5 of 6
(3,021 Views)

Hello BCharlton44,

 

After reading this post, I have a few questions to clarify how your code works. Could you define what playback means in your code and explain the difference between playback and playback from file? Does playback place the data from the last ECG reading on a graph and is playback from file just a previous ECG reading stored in a file that is displayed on a graph as well? If it isn't the case, can you explain this in detail so we can understand this process?

 

Also have you separated this playback from a file state and tested to see if this works by itself? If you haven't, I think this would be a good test to determine if the problem follows the code. Also could you state which version of LabVIEW you are using? Thanks.

 

JimS.


Jim St
National Instruments
RF Product Support Engineer
0 Kudos
Message 6 of 6
(2,973 Views)