LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 7
(4,440 Views)

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 Kudos
Message 2 of 7
(4,433 Views)

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 Kudos
Message 3 of 7
(4,423 Views)
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 Kudos
Message 4 of 7
(4,417 Views)

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
Message 5 of 7
(4,413 Views)

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

Thanks!

Mitch

0 Kudos
Message 6 of 7
(4,407 Views)

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 Kudos
Message 7 of 7
(1,694 Views)