Jump to content

BobbyCee

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by BobbyCee

  1. Yes, in fact I haved looked through those - it was the first thing I did. The heaps of results on Google resulted in several Blocked sites(corp Internet filters), others that had advertising for shareware, a couple that directed me to NI Forums that said that EXIF wasn't supported in LabVIEW, suggesting finding a 3rd party API to access the data would be the answer.

    Since, time is money in our business, I thought I'd pose the question in LAVA to help the cause as well. I guess I'll just go back to the heaps of Google results - I'm sure that I just overlooked the project saving link...Thanks!

  2. OK... I got intrigued by this whilst waiting for an installer test to finish running and came up with a little something that works:

    post-9667-126635704751_thumb.png

    Hope this helps,

    Shaun smile.gif

    Thanks for the code snipet, Shaun. I did try out your method and had a User Account Control popup appear. I did some futher MSDN reading and it looks like via impersonation I may be able to run my administrator account elevated so as to not need to acknowledge the UAC popup. This system will be used without a monitor and will not have user interaction. I need to keep standard permissions on the box because the system will be on a network and I want to limit people running scripts that could affect system operation.

    I will post this code as soon as I get it tested successfully. Thanks again for showing me another way to access Process Start Info processes!

  3. I've not communicated with the PCS 7, but I've communicated with a couple of different Siemens PLCs. We've used OPC through PROFIBUS (Siemens card) and Ethernet (KepWare) to the PLCs and both worked well. OPC is a process control communication method and not really suitable for machine control (though you can make it work). I assume you're performing process control, though.

    Tim

    Thanks Tim. I do use OPC quite often, but mainly for monitoring tags. As you said, machine control is possible, but it's not a can o' worms that I want to open. I noticed that NI does sell a Profibus card, I just haven't ever heard of anyone using it. My goal would be to connect to the Siemens Profibus Master and use LabVIEW to communicate with the Siemens symbols - I was also curious to find out if using LabVIEW profibus drivers was a cumbersome activity or not.

  4. I believe that in order to start and stop a service you need to have administration privileges in Windows 2000 higher. Windows Vista and higher might even require specifically elevated privileges that an administrator account doesn't automatically grant to an executable, but requires an additional explicit User Authentification as administrator.

    It would be strange that CMD.EXE itself is requiring elevated privileges but it is the service manager start and stop command you try to execute in CMD.EXE that is barking on the to low privileges you have as normal user. .Net can't circumvent the privilege level control for the service control manager but it might have extra support to allow temporary privilege elevation for the current executable for execution of service control manager commands which would require at least the according admin login credentials somehow (and if they care about security it won't be a programmatic login but an interactive login).

    You are correct, higher administrative privileges are needed to control services. I have found that the .NET architecture is more flexible than simply using System_Exec.vi with string commands and therefore I will be pursuing the .NET method to handle querying, starting, and stopping my local services. However, I will have to talk with the system owner regarding the removing the User Access Control level that prevents interaction at the service level. I am fortunate to have a number of in-house resources to offer expert advice on .NET coding and will share my findings with the LAVA community.

  5. Does anyone know of a LabVIEW user group in Mid-Michigan? If not, would anyone like to start one? I live in Midland and know of several developers living in the Mid-Michigan area. It would be great to have a centralized group. So, if there are any wireworkers interested in getting together from the Mid-Michigan area, let me know!

  6. Hello All,

    My name is Robert Cummer and I just recently joined the fabulous VI Engineering family, located in lovely Farmington Hills, MI. I have been using Labview since the mid '90s. I have been a test engineer for most of my 13yrs and an "dedicated" software integrator for the past 2. I look forward to sharing experiences with you all - whatever that means!?!

    Later

    Bob

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.