LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI version:7.0 - 2 problems:

1. Why is the cursor blinking (irregularly) when placed in a source code ??

2. Timer() function does NOT produce elapsed time since its latest call. Why??
0 Kudos
Message 1 of 2
(2,470 Views)
Hi,

What do you mean by "irregular blinking"? the cursor int he CVI source editor should just blink.... that is what it does in my WinXP machine.

The Timer() function does not return the elapsed time since its latest call, it returns the time since the first call. So you have to subtract the time from the previous call. If you are charting the elapsed time you can do something like this:

/*in your main*/
Mytime = Timer();

/*when ever you check for the time..*/
newTime = Timer();
PlotStripChartPoint (panelHandle, PANEL_CHART, (newTime - oldTime));
oldTime = newTime;


I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,470 Views)