LabWindows/CVI

取消
显示结果 
搜索替代 
您的意思是: 

Prompt Popup

I am using the PromptPopup as follows:
 
PromptPopup(title, instruction, operator_id, 25);
 
When the Popup appears on the screen, the confirm button says "%s is not a directory" instead of "OK".
This Popup was working properly in the past.  Has anyone else experienced this problem or know how to fix this?
 
Thanks,
Mitch
0 项奖励
1 条消息(共 7 条)
5,682 次查看

Hi Mitch,

Just a couple of questions.

- What version of CVI are you using? Is it the same version that you used when the PromptPopup function was working?
- Did you move from different Windows OS's? I have seen issues before where popups would display wrong on some operating systems and others would work?
- Is it pretty easy to reproduce?
- Is this on a deployed machine or development machine? In that I mean did you create a CVI application and deploy it to a target machine and that is where the strange behavior is occurring?

Best Regards,

Jonathan N.
National Instruments
0 项奖励
2 条消息(共 7 条)
5,675 次查看

The LabWindows version is 7.1.1.  This is the same version that I was using when the PromptPopup function was working correctly.

The problem is happening on my development computer which has always had Windows XP and LabWindows Version 7.1.1 installed on it.  Also, this is the same computer where the PromptPopup was working correctly in the past.

The message "%s is not a directory" is shown everytime that the PromptPopup is displayed.

Mitch

0 项奖励
3 条消息(共 7 条)
5,665 次查看
Hi Mitch,

What happens if you make another call to the PromptPopup function? Does it also not show the OK button? How long has it been since you have tested your code? Have you had any Windows service packs added to your system?

What if you create a new project?

The reason I am asking all these questions is because I can't reproduce it on my end.

Best Regards,
Jonathan N.
National Instruments
0 项奖励
4 条消息(共 7 条)
5,659 次查看

Hi Mitch,

One of my co-workers brought to my attention just a few minutes ago that your message files in the C:\Windows\sytem32\cvirte directory might have gotten corrupted somehow. If that's the case, let’s try these steps:

1) Make a backup of the cvirte folder by copying that folder to some arbitrary location.
2) Delete the cvirte folder
3) Do a repair of the CVI Runtime Engine under Control Panel >> Add/Remove Programs >> National Instruments Software.

Hopefully that will copy over the new and corrupt-free message files.

Let me know what happens!

Best Regards,

Jonathan N.
National Instruments
5 条消息(共 7 条)
5,655 次查看

I did a repair of the CVI Runtime Engine and the problem has been fixed.

Thanks!

Mitch

0 项奖励
6 条消息(共 7 条)
5,649 次查看

I have a similary problem :

I'm using a promptpopup and I am waiting for a scan entry which is actually working. But the user can also presse the confirm button to close the window and I have no answer then...

Is there a solution ?

0 项奖励
7 条消息(共 7 条)
2,936 次查看