Jump to content

mattdl68

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by mattdl68

  1. QUOTE (jakestern @ May 30 2008, 05:01 PM)

    I'm trying to print out a webpage programmatically, without the user having to do anything (and hopefully, not even see anything). I've tried using the ActiveX container to load a page, but when I try to print, I get an error (see ActiveXPrintWebpage.vi). I've also looked into using the .NET container, which is a bit more complicated, but I've had no luck there as I don't quite understand how it works. The third idea I had was to invoke a browser using the command line, but I don't know how to send in a command to print.

    Any ideas?

    I think this is what you want

  2. Thanks RolfK.

    I was able to get MAXs to reconize the Visa Raw but it had an error. It reconized thre device and forund the id and serial number of the device.

    See attached.

    After fighting with the visa raw. I tried using the library function.

    I do have the doucumintation. It says I have to use the SetupDIGetDeviceInterfaces.

    This is some of what the manuals says.

    Use the SetupDiGetDeviceInterfaceDetail function to get the symbolic link name for

    the interface, which the operating system uses to encode its enumeration information

    describing the device. The string contains the VID and PID of the device found

    by the operating system. Test each string to find the one (or more if you have

    multiple Lab Bricks attached) that contains the VID and PID values in it. For the

    Microsoft Windows environment, the portion of the device strings containing the

    VID and PID are in the format:

    sDevSubstring1 = “vid_041f&pid_1201”; // VID and PID for LSG-402

    sDevSubstring2 = “vid_041f&pid_1202”; // VID and PID for LSG-152

    sDevSubstring3 = “vid_041f&pid_1203”; // VID and PID for LSG-251

    Once you have identified a Lab Brick, open it by using the DevicePath from the

    Interface Device Detail Data structure, using the normal CreateFile function. Once

    you have opened the device1 you can read the Lab Brick’s serial number using the

    HidD_GetSerialNumberString function.

    I have the commands to communicate with the device.

    I'm having difficulty on configuring the dll parameters when using the call library function. I made a simple VI that just adds one to the input.I put this vi in a labview prodject and created a dll.

    I called the dll I made using the call library funtion and it automatically confiured the parameters.That worked great.

    What I tried next was to find the header file for the setupapi.dll and create a wrapper around the setupapi dll. it had errors creating the wrapper.

    Do you know of any documatation that has a step by step instruction of using windows dll in in labview.

    Thanks

  3. I trying to communicate via USB with a labbrick generator.It uses the hid.dll to communicate. I tried using the driver wizzrd in labview but the raw driver shows up

    in max as a unknow device and it comes up in the windows device manager with my driver name and under the usd ni visa,

    Windows says it works fine and max can't open a session.

    I try the library function and called the setupapi and selected the SetupDiGetDeviceInterfaceDetail but i'm not sure how to configure the parameters.

    Then I tried to import the driver but it asks me for a header file.I beleive you need to get them from Microsoft by downloading the windows development kit.

    When I search for the kit all i get is the one for 2008 sever,

    thanks

×
×
  • Create New...

Important Information

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