LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Binning pixels in B&W Tek USB Spectrometers in LABview

I'm using a B&W Tek USB spectrometer to characterize the pass band of filters and in order to obtain a usable signal I need to change the pixel monitoring mode to a binning average. This is easy enough to do in their BWSpec software but the catch is I need to do it using their LABview example vi included in their development package. I was wondering if anyone had any experience controlling B&W Tek spectrometers in LABview and could point me in the right direction as there seems to be little information on the topic. Anyway, I can attach the .vi on request. Any help would be greatly appreciated.

 

 

Thanks so much,

 

Sam

0 Kudos
Message 1 of 6
(3,827 Views)

Attaching the VI would be great! I'll let you know if I have any thoughts.

0 Kudos
Message 2 of 6
(3,808 Views)

Thanks for the response. Here are the .vi and its sub .vis. I've found that binning pixels is not the issue though it would be nice to accomplish. It turns out my main problem is that the bwtekcalibration.vi file is buggy (It is called in the second pane of the sequence stack in the main program). The main idea of this .vi is to read the .ini file included in the folder which contains a set of numbers which it uses to convert pixel numbers into wavelength values to display on a waveform graph. To begin with the .vi uses out of date sub vis which I have updated in the file bwtekcalibrationupdate.vi (which I would suggest calling in place of the original). However, even after replacing the out of date sub vis I still get an error from the read from text .vi which simply says "Not Executed". Anyway, sorry it's abit of a convoluted issue, any input would be greatly appreciated.

 

Thanks again,

 

Sam

0 Kudos
Message 3 of 6
(3,796 Views)

I think I managed to recreate the error you were getting with the updated version. The problem was that the .ini is Read Only. I disabled the read only check box in the file properties for the ini file (in windows) and it was able to execute successfully.

0 Kudos
Message 4 of 6
(3,777 Views)

Do you have BWTEK SDK or h file with BWTEKUSB.DLL? I have fied bwtekcalibration.vi, see attached file.

0 Kudos
Message 5 of 6
(3,710 Views)

Hello ronke,

 

Do you have any more details on the files that you're looking for? 

Colden
0 Kudos
Message 6 of 6
(3,694 Views)