06-16-2009 02:33 AM
Hello everybody,
I faced this problem and I tried several ways but still no result. Would you please take a look at this and help me:
There are two USB devices (spectrometers) whose DLLs are provided from manufacturers. I worked with their VIs (the manufacturers provide sample VIs) and they works perfectly when opperating independently. However, once I run one VI (controlling one device) and I start runing the second VI (to control the second device, my purpose is to control two devices simultaneously), LabVIEW crashed. Both of the VIs are not responded. I could not stop the VIs so the only thing I can do is unpluging two devices and stop LabVIEW.
Two devices are controlled through two manufacturer-provided DLLs. I used LabVIEW Call Library Function Node to control that DLLs. However, in sample VIs, two DLLs share the same base address: 0x10000000. Their base addresses are displayed clearly in Dependency Walker program. I know that if the base address of two DLLs are the same, loader will load the next DLL to different address. I just want to make sure what is the problem:
1. I tried to change the base address of one DLL through Call Library Function Node and keep the second the same. It did not work. LabVIEW still crashed.
2. I changed the Device Number and Channel number of each DLL and test it again -> It did not work.
3. Follows the discussions in: http://forums.ni.com/ni/board/message?board.id=180&message.id=1321&query.id=779500#M1321 to change the base address of DLLs. In stead of showing 0x10000000 as it was shown in Dependency Walker, that rebase.exe showed 0x0000,0000,0000,0000 for command: read base address. Eventhough I am using E2200 chip (64bit processor), it should show 0x0000,0000,1000,0000 as I expected. I can not understand this process. -> Could not change the base address.
At this time, I could not figure out what is the problem here. Anyone can give me the possible problem and solution? If you think that I forget to provide any information, please tell me and I will fulfill it.
I really appreciate your help.
Thank you!
06-17-2009 12:20 AM
Hello,
I know that there are many professional LabVIEW engineers here, would you please give me some ideas. Please help me!
Thank you very much.
Regards,
Tran Trung