LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference Win2k WinXp Readback Numeric Controlls.

Strange Problem: Im developing under Win XP with Labwin 8.1

My prog does the following: (timer controlled):

- read some numeric controlls (read back user input).
- read data from serial interface
- decide if screen output has to be made to a listbox
- return

This works perfectly using windows XP

Running Win2k SP4: the following happens: no textoutput is generated except
- either the mouse is moved
-or the main window LOST (!) focus. Then everythings works fine.

This can be repoduced on any machine we have.

My WORKAROUND:

run

    GetNumListItems(panelHandle,PANEL_DISPLAY,&iDummy);        // sorgt dafür, dass die Liste immer
    if(iDummy>0)
    {
        SetCtrlIndex(panelHandle,PANEL_DISPLAY,iDummy-1);        // mit nach unten scrollt!
    }

before the numeric values are read and everything works fine.


Assumption: For any reason Win2K does not read back the numeric controlls properly if there is no user interaction.

For clarification: the user input is not changed at any time while running.


Hope anyone can help or provide me with a better workaround

DoS

0 Kudos
Message 1 of 6
(3,482 Views)
Hi dos,

I wasn't able to replicate the behavior you described. Is it possible that you could post a snippet of code (perhaps without the serial part) that demonstrates the behavior?

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 6
(3,467 Views)
Thanks for the immediate repyl. I pasted the code below. What it realizes is kind of a "trigger" condition; The Trigger Hexcode is entered on the user panel and the  program compares it with the incoming data stream....

Problem is that running win2k this only works with the workaround posted in the frist message

dos

0 Kudos
Message 3 of 6
(3,441 Views)
Hi dos,

maybe you can reduce your code a little. Please, make a small example (including user interface and all other files) that just shows the behavior (basic UI interaction). This would make it much easier for us to locate the source of the problem.

Thx...

Daniel
NIG
0 Kudos
Message 4 of 6
(3,436 Views)
Thanks for the reply.

I tried. But the Problem disappeared. I have changed my project and removed hardware specific items, now the problem is there even running xp.

I could send you the whole project for review with a detailed description of the problem.

It´s not a secret project but i don´t want to leave it public on the forum....

best regards

DoS
0 Kudos
Message 5 of 6
(3,414 Views)
Hi dos,

If you can reduce your project down enough to where you could post a snippet on the forums, that would be great.

If you can reduce your project down but would like to work with an engineer offline, contact your NI technical support team in your area here.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 6 of 6
(3,406 Views)