LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Another FileSelectPopup

hi all,

a short question into the group:

If I call "FileSelectPopup(...)" sometimes another kind of popup appers (attached a png). does anybody know the mechanism behind this behaviour ?

best regards

Simon

0 Kudos
Message 1 of 7
(3,689 Views)
This doesn't look like a LabWindows program nor popup to me.
If it is LabView, your are in the wrong forum.
--
Guillaume Dargaud
http://www.gdargaud.net/


0 Kudos
Message 2 of 7
(3,679 Views)

Actually, that is a LabWindows/CVI dialog. It is the dialog that CVI used in Windows 3.1.

 

In the CVI environment, that dialog can appear, as a fall-back option, if an error happens when launching the standard dialog.

 

In a CVI program, when calling FileSelectPopup, that dialog is displayed, if CVI thinks that the program is running in an old OS, which should not be the case.

 

Simon: you mentioned that it appears "sometimes". Have you been able to detect any pattern for when it does and does not appear? Try adding the following code to your program:

 

#include <windows.h>

 

OSVERSIONINFO osInfo;

osInfo.dwOSVersionInfoSize = sizeof (OSVERSIONINFO);
GetVersionEx (&osInfo);   // check the return value here. It should not be 0.

DebugPrintf ("OS version: %d\n", osInfo.dwMajorVersion);

 

Please confirm that the value printed is greater than 4.

Luis

 

0 Kudos
Message 3 of 7
(3,649 Views)
Luis, yes, I have never seen this on the development-system, but the solution runs in the customer device on an XPembedded-System and he sent me the screenshot. after your description XPembedded will be the reason. but this really only appears sometimes and not everytime. So I' m looking for a solution: Is there any possibility to "set" the OS-Version to CVI or does CVI everytime ask the OS for the version-info ? best regards Simon
0 Kudos
Message 4 of 7
(3,628 Views)

You can't really set the OS version, so far as I know. And the CVI runtime does check the OS version, not just for the purpose of displaying this dialog, but also in other situations.

 

I would expect that the version returned by XP Embedded would be the same as with normal XP. But it's possible that it might depend on which specific components your customer included in his particular configuration, which might result in it not even being possible to get the version at all.

 

One thing you can do is to add some form of the code that I included in the previous post to your program, then send it to your customer, and see what you get back. The two possibilities are that GetVersionEx returns 0, or that the version returned is less than 4 (unlikely). Knowing which might help us. Another helpful thing would be to ask your customer if he can qualify a bit what he means by "sometimes". Is there any pattern at all to when this does or does not happen, or is it really completely random?

 

Luis

0 Kudos
Message 5 of 7
(3,612 Views)

Do you have solved this problem?

 

I have the same problem.

 

At my case, FileSelectPopup changes between normal and different popup when communicating with my PLC, LS GM6 with Ethernet port.

 

We use the same source for 3~4 years, but it's first time this happens.

 

If you have solved the problem, please Let me know solution.. ^^;

JaeYong Jeong
KumchunSystem Co. Ltd
0 Kudos
Message 6 of 7
(3,092 Views)

Just to add some more info about this problem. I have also seen it with a CVI v7 release mode executable when it was run using the Windows Remote Desktop. It was a Windows XP Media Center PC remoted to a Windows 7 computer which was remoted to a Windows XP computer. The same executable ran fine on the same XP computer when it was using it's local display, keyboard and mouse.

 

Jim

 

0 Kudos
Message 7 of 7
(3,056 Views)