LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver Wizard INF file dont tranfer vista to xp

I made the INF driver files for a custom Humidity/Temp sensor with the Driver Wizard, supplied in the NI-VISA 4.2 download. I made the VI with LabView 8.2 on a Vista system. Worked great on the Vista system.

The problem arrised when I tried to tranfer the INF and VI to WIN XP. The drivers seem to load up correctly with any error. When I start the the VI in Labview 8.2 it does not reconize the USB device by the same name as it did in Vista. It also does not seem to be communicating with the USB device. I do not get any error messages. I have attached the VI and INF files. Any help would be nice.

OttoBerge
0 Kudos
Message 1 of 21
(5,101 Views)

OttoBerge,

INF files have dependencies based upon the operating systems.  Another item to keep in mind is that Windows Vista stores files in different locations than Windows XP.   With regard to your current situation one way to address your current situation is to rebuild the driver on the XP machine.  This would ensure the both the driver and the INF files are built and compliant for Windows XP.  If you would like to create an INF file that is cross-platform see Microsoft Developer Network.  However, if you read the first sentence in the article, "The simplest strategy for cross-platform INF files is to create a separate INF file for each platform type because this approach is the easiest to create and maintain."

A_Ryan
AES
National Instruments
0 Kudos
Message 2 of 21
(5,086 Views)
Thanks for the suggestion.

I made the INF files with NI_VISA 4.2 on the WIN_XP pro system running Labview 8.2 and I obtained the same results. Windows agian loads the drivers without error. Windows shows the USB device as NI VISA RAW Device, USB Tenki. However when I run my VI it shows the name as USB0::0x1781::0x0A98::708250::RAW and its doesn't seem to be communicating. While running the VI I get no errors. Any help, thamks.

C
0 Kudos
Message 3 of 21
(5,070 Views)
OttoBerge,
 
When you run the code next time can you please take an NI-Spy capture.  Please post the capture after completion.  This will help determine what if any commands are being sent to the device.  Do you have the device configured correctly inside of Measurement & Automation Explorer (MAX)?  If you know the message based commands for your USB Raw device can you use those along with the VISA test panels to communicate with the device inside of MAX?  What commands are you sending to the device in LabVIEW?
 
When your device was working using Windows Vista, what was the name of your USB Raw Device in LabVIEW?  Did it have its proper name or did it read USB0::0x1781::0x0A98::708250::RAW?
 
A_Ryan
AES
National Instruments
0 Kudos
Message 4 of 21
(5,060 Views)
OttoBerge,
 
When you run the code next time can you please take an NI-Spy capture.  Please post the capture after completion.  This will help determine what if any commands are being sent to the device.

See attachment below.

Do you have the device configured correctly inside of Measurement & Automation Explorer (MAX)?

Yes, it says the device is working properly, with the idenification of USB0::0x1781::0x0A98::708250::RAW.

If you know the message based commands for your USB Raw device can you use those along with the VISA test panels to communicate with the device inside of MAX?  What commands are you sending to the device in LabVIEW?

The commands I sent with the VISA test panels are:

Temp:                              Humidity:
viUSBControlIn              viUSBControlIn
wlength:4                        wlength:4
bmReqestType:255       bmReqestType:255
bRequest:16                   bRequest:16
wValue:0                         wValue:1
wIndex:0                        
wIndex:0

It returned for both:

ReturnCount:0
ReturnStatus:BFFF0078 or VI_ERROR_INV_PARAMETER


When your device was working using Windows Vista, what was the name of your USB Raw Device in LabVIEW? 

In Vista it had the name "USBTenki" and the USB Raw Device name was "USBTenki".

Did it have its proper name or did it read USB0::0x1781::0x0A98::708250::RAW?

It had it's proper name.


Download All
0 Kudos
Message 5 of 21
(5,041 Views)

OttoBerge,

I have a couple of additional questions.  What type of pipe flow does your USB device use (Interrupt, Bulk and Control)?  If you send viUsbControlIn command using Vista OS inside of MAX do you still get the error BFFF00078?  What is the specific USB device you are using (make and model number)?

A_Ryan
AES
National Instruments
0 Kudos
Message 6 of 21
(5,025 Views)
OttoBerge,
 
One more thought, can you use the shipping examples using VISA to communicate with your device?  While in LabVIEW if you search examples for USB Raw you will find several examples.  Let me know if you can use these to communicate with your device.
A_Ryan
AES
National Instruments
0 Kudos
Message 7 of 21
(5,017 Views)

I have a couple of additional questions.  What type of pipe flow does your USB device use (Interrupt, Bulk and Control)?

Control

If you send viUsbControlIn command using Vista OS inside of MAX do you still get the error BFFF00078? 

In MAX on my Vista system it doesn't report any errors when I send a command in viUSBControlIn, it also doesn't send any data back either. Hower when I use the "VISA USB Control In" in the vi I wrote with the same command (see vi attached above in the *.zip) it gives no errors and also returns data.

While in LabVIEW if you search examples for USB Raw you will find several examples.  Let me know if you can use these to communicate with your device.

In USBRawControl.vi example running on Vista, I obtain the same results as I did in MAX above, no error and no data returned. As note I used this example vi orginally to write my custom vi, so it seem strange it doesn't work now.

What is the specific USB device you are using (make and model number)?

All information obtained from MAX

XP                                                                          Vista

ID USB0::0x1781::0x0A98::708250::RAW         ID USB0::0x1781::0x0A98::708250::RAW
Device Type: USB Raw Device                          Manufactuer: raphnet.net(0x1781)
VISA Alias on My System: Blank                      Model: USBTenki(0x0A98)
                                                                               Serial #: 708250
                                                                               Interface #: 0

One more thought, can you use the shipping examples using VISA to communicate with your device? 

Can you explain what shipping examples are.

0 Kudos
Message 8 of 21
(5,003 Views)

OttoBerge,

The LabVIEW shipping examples are examples programs that come included when you install LabVIEW.  If you open LabVIEW>>select Help>>select find examples>>click search tab.  Search for USB Raw, this will pull up a list of some example code that uses USB Raw.  I want to see if you can communicate with your device using this example code.  You may want to specifically try USB Raw - Control.vi example.

A_Ryan
AES
National Instruments
0 Kudos
Message 9 of 21
(4,998 Views)
Ok, thanks for the clarification. See above for answer.
0 Kudos
Message 10 of 21
(4,990 Views)