LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

standalone 3rd party(spectrometer) driver recognition

Solved!
Go to solution

Hello

 

I am making the standalone (excutable) file to control the spectrometer not in the developer pc but in the different pc. I made a standalone and a intaller for run-time machine for running the file in the different computer which does not have the driver of the spectrometer and labview software. Once I made a exe.file in the developer pc and ran the exe in the different pc, but it does not recognize the spectrometer. The driver is provided by manufacturer using wrapper.dll and dll file. So I chose the option 'supplement directory' for coying dll files and the dependencies. I made an file which can control the spectrometer using the VI (supported by the manufacture). And I add the file in the project file. The project tree shows the dependecy and the VI that I selected among the Wrapper.llb file. I moved the all vi to Always Included except the file(start-up) which call those sub VI. It works well in the developer's computer.But it does not work in the different pc. I guess the possible reasons are two things as follow. 1. I missed the some additional installer ( run-time machine , or others) 2. Do I need to select another option for building exe file? Please let me know.

0 Kudos
Message 1 of 9
(3,732 Views)

How are you going to control a spectrometer which is not connected to the PC?

 

What protocoll ahve you implementes between the PC which HAS the spectrometer and the PC without it?

 

Shane.

0 Kudos
Message 2 of 9
(3,729 Views)

The spectroemeter has the USB connection. To contorl the spectrometer, the manufacturer provides vi file. I guess if I make the exe file which contains all the VIs, and if I connect the spectrometer in the target pc, the exe file will control the spectrometer. Am I wrong?

0 Kudos
Message 3 of 9
(3,724 Views)

Well the driver will only connect to a local USB port so that normally won't work if the EXE is running on the PC which does not have the spectrometer attached.

 

Is the driver fromt he manufacturer a VISA driver? If so it might be able to share the USB port via VISA over the network but I've no experience of that.

 

Normally a program to control hardware on another computer needs to do most of the heavy lifting itself.  These things don't happen automatically unfortunately.

 

Shane.

 

Ps I think I understand your question.  I originally understood that you want to be able to control the spectrometer from another computer but let me know if this is wrong.  I now think you're talking about developing on a computer without the hardware and then deploying to a PC with the hardware, right?

0 Kudos
Message 4 of 9
(3,717 Views)

Hi Shane

 

I am developing a standalone exe on the developer's computer with the hardware(spectroemter). THen I want to get the signal by running the exe file in the target pc which is connected by the spectrometer (Definitely, I will physically move the spectrometer from the devleoper's pc to the target pc. But I do NOT want to set up the hardware driver and the labview software (except run-time machine). Just running the exe file to get the data. THanks~ 

0 Kudos
Message 5 of 9
(3,708 Views)

You HAVE to install the hardware driver on the other pc. With a hardware driver, hardware will not work.

0 Kudos
Message 6 of 9
(3,700 Views)

Yes, but what I am trying to do is to extact the hardware driver files ( VIs distributed by the manufactuer of the hardware) in the developer's pc and then make the exe file. If the target PC install the exe file, I think I do not need additional process to install the hardware drivers seperatly. This is the question, Thanks

 

0 Kudos
Message 7 of 9
(3,697 Views)

Sorry, but you think incorrectly. You MUST install the hardware driver. It is not included in the exe. Simple as that. The wrapper VIs are not the driver.

0 Kudos
Message 8 of 9
(3,694 Views)
Solution
Accepted by topic author Move_on

Driver files have to register themselves with the system (unless they're RS-232 drivers).

 

USB drivers in Windows are normally kernel mode drivers meaning your approach simply will not work.

 

Exceptions are HID, Mass Storage etc.  Spectrometers certainly do NOT belong to these classes.

 

Shane.

0 Kudos
Message 9 of 9
(3,685 Views)