01-13-2010 12:40 PM
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!
Solved! Go to Solution.
01-14-2010 12:04 AM
Hi E.Onorato,
i'm not really sure what you mean, but maybe the use of an FTP Server would solve your problem.
Mike
01-14-2010 04:55 AM - edited 01-14-2010 04:55 AM
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
01-14-2010 08:54 AM
Thanks Daniel!
That worked perfectly, I completely forgot about the System Exec VI.
04-03-2012 05:19 AM - edited 04-03-2012 05:20 AM
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?
04-04-2012 12:27 PM
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
04-04-2012 12:54 PM
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.