11-14-2007 08:18 PM
11-15-2007 12:17 PM
it woudl help if there was even a help file associated with the thor labs driver for these devices.
asking for a sample file is not really being that lazy.
anyone?
11-15-2007
05:24 PM
- last edited on
04-01-2025
09:40 AM
by
Content Cleaner
11-15-2007 10:15 PM
11-16-2007 12:09 AM
11-16-2007 02:33 PM
11-16-2007 08:20 PM
Funny the thor labs customer service people read the post here, yet, didnt return a calls or the emails I sent last week.
The lack of responsiveness was part of what made me think they didnt make the drivers and i was barking up the wrong tree and post on this board..
thanks Scott,
Email sent with attachment
Id like a 2nd opinion so will post part of my email
I am using two different machines, both with labview 8.0, one is mine, one is theirs (peoplei am consulting for)
They have a brand new lc1-usb from thor labs.
So as I previously reported to thor labs tech support (although not knowing as much), one of the problems that each time the device is accessed from labview, there is an error, “device is locked”. At first we figured out the only way to fix it is to reboot the PC. Subsequently, after a few days of work, we happened to notice that running the sample application (no code provided), releases the device so it can be used again. So the problem was determined that if the programmer hits the stop execution button on the front panel, the device is left locked state. So obviously running the sample labview exe hits the “close.vi” so it can be freed. How the sample program is getting a handle to begin with when I cant is beyond me. Ive tried resetting (reset.vi) the device it but that cant be done if you can even get the initialization done to get to it. This is with the premade labview 7 driver that was provided with the installation CD.
Im not an expert with labview, I have made more then a few professional applications, but could be wrong here. But.. I don t remember this ever happening, where a device is left in a locked state after halting execution before hitting close.vi, this even with third party hardware.
The first problem we had to do with importing the instrument driver into labview. The readme.txt says “A convenient way to import the driver directly to your NI-LabView environment is to use the NI-LabView 'Import CVI Instrument Driver' . So we have done such, using the Labview Interface Generator for LabWindows™/CVI™ Instruments for labview 8. When we did so, the
Vis that we ended up with a complete mess and not functional althought it took us a few days to figure that out. We have become disgusted with this and decided to use the premade lab view 7 driver since we can atleast somewhat use them in the current state. This is the reason we wanted to see how these VIs are used by have since then figured out they are just garbage.
11-20-2007 10:07 AM
Hello,
Getting the device locked error doesn't surprise me if the execution is stopped before entering the "close.vi" because my suspicion is that the driver does not have built in logic to reset the device if a session is opened but never closed. Just to clarify, in the sample exe that you mentioned in your previous post, are you able to use the camera as long as the stop execution button is not hit?
11-20-2007 12:28 PM
11-21-2007 09:38 AM
Hello Jimmy,
You're right. Most device drivers will free up their resources if halted before reaching the close.vi, and this is a standard we use in National Instruments drivers. It seems like the driver you are using does not do this. I'm glad you are able to get the program running, but it looks like you will not be able to frequently use the abort execution button.