LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

network drive login

Solved!
Go to solution

I am trying to get LabView to log into a network drive with a designated Username and Password to save data, then disconnect after the data is written. 

 

I cannot have windows automatically logon because this is a "public" test computer, one that will have a shared logon name for multiple technicians.  I need to make sure that the netdrive maintains individual logon for traceability.

 

I saw some posts for using DIAdem, which I do not have nor need.

 

Any Ideas?


Thanks!

0 Kudos
Message 1 of 7
(4,154 Views)

Hi E.Onorato,

i'm not really sure what you mean, but maybe the use of an FTP Server would solve your problem.

 

Mike

0 Kudos
Message 2 of 7
(4,125 Views)
Solution
Accepted by topic author E.Onorato

You can map the network drive using "net use". This is possible using system exec.

"net use" lets you specify a drive letter and user credentials to use. Use the "/persistent:no" flag to not save the connection.

You can also disconnect a network drive using the same command ("/delete" flag).

 

Hope this helps

Daniel

Message Edited by dan_u on 01-14-2010 11:55 AM
0 Kudos
Message 3 of 7
(4,112 Views)

Thanks Daniel!

 

That worked perfectly, I completely forgot about the System Exec VI.

0 Kudos
Message 4 of 7
(4,101 Views)

I am writing a program that need to startup as soon as the computer boots up, someone may not be logging in at that time. I need to log into gain access to the network and retrive data froma another labview device. using the system exe how do I format that string to enter user name and password?

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

What you are describing may or may not be possible depending on your system - what is the OS of the local and target machines? 

 

The format of the net use command for Microsoft Windows is detailed here - let me know if that answers your question.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/net_use.mspx?mfr=true

 

Tom L.
0 Kudos
Message 6 of 7
(3,760 Views)

I was able to find a solution, I used the Create Task to auto start the Labview program under system this did not require a User Name and Password, the only draw back was if you wanted to see the program when you login it does not show up except in Task Manager, in this case it is not a big deal.

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