LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatic network login dialog

I need to upgrade a PC to from W2000 to XP. I need to feed data to LV from an old legacy program (DM2000) that serves data via netdde in XP all on the same PC. Currently works fine on W2000.

What I find is netdde from LV to excel works fine, no funny stuff. LV to DM2000 pops up a network login dialog and goes on hold until I enter the UID and PW I am logged onto Win with. Then the data is transmitted. This system must function unattended 24/7 several times a minute. Is it possible to programmatically enter the UID and PW via LV when the dialog pops up via a Win API and VI server maybe?

I assume the dialog is this one, however the odd thing is the dialog is actually invisible. I can find it by moving the LV window on screen and an outline of the dialog is left behind. When I mouse over I see a cursor appear. I click the top string and enter UID, then tab to the lower string enter PW then hit enter because the OK button has focus. It then completes the netdde transaction. I have gone through all the tricks about putting in the user to the netdde service properties, setup a trusted dde share, etc, but can't get over the login requirement. As said before, LV to Excel does not have the login problem.

login dialog

0 Kudos
Message 1 of 3
(2,488 Views)

Jim@SONGS

 

Do you know when this window pops up? Is it the same time every day or occurrence? LABVIEW can mimick keyboard outputs so you could programatically "type" the UID and PW into this pop up box: http://zone.ni.com/devzone/cda/epd/p/id/4509 that DLL call is in the system32. This may help too http://decibel.ni.com/content/docs/DOC-4957    🙂

Sam S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,474 Views)
Sam Thanks for the links. As it turns out the login is required only once each time a dde session is instantiated. The "invisible" login dialog does have focus and the virtual keyboard does type in and enter the UID/PW string. The dde loop proceeds until terminated. It is a heck of a kludge, but does the job for now! Thanks! Jim
0 Kudos
Message 3 of 3
(2,456 Views)