LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV code using ActiveX of a spectrometer

Hi all,

we have been using a LV code to make measurements with a spectrometer connected to our computer with a usb plug. It ran fine, the ActiveX being registered in the computere base. Lately, we upgraded LV for LV 8.6. It is now impossible to run our code. We have a "crash", meaning when we launch the program, it takes some long seconds with the computer working but with nothing operating. Then all LV windows are closed, with no error messages. Nothing. We tested the spectrometer with the manufacturer software, and everything works fine. The LV code is extremely simple and will be used after in a larger code. It basically consists in opening an activeX, calling one property, getting an array of values

Any idea of what's happening ?.

 

Regards,

Mario

0 Kudos
Message 1 of 3
(2,517 Views)

Hello Mario,

 

Thanks for posting on the National Instruments forum.

 

Can you give us more information about your system and the behavior you're seeing:

 

1- Which version of LabVIEW were you using formerly?

2- Are you using the same computer?

3- If you re-run the code with the former version of LabVIEW, does it work properly?

4- Did you create the simple example you're talking about from scratch or did you copy it from your project?

5- Can you really see the ActiveX Class you want to use into the ActiveX Class Browser (right click on the Automation Refnum)?

6- Do you reproduce the behavior with another class (from MS Excel form example)?

 

Have a nice day,

Flo

Message 2 of 3
(2,493 Views)

Hello Florent,

 

thanks for your reply. Here are the answers below

 

1- Which version of LabVIEW were you using formerly?

We developped it with LV 8.5, and LV 8.2. Tests and measurements were made months ago on two different computers (Dell Latitude). Worked fine.

 

2- Are you using the same computer?

No, the problem occured on a 3rd computer, a NEC one if I am correct, with LV 8.6.1

 

3- If you re-run the code with the former version of LabVIEW, does it work properly?

Yes, and no. Some issues occured. The PC crashed lately. It was formated and LV reinstalled from 8.5 to 8.6.

The code works but we have some glitches sometimes, as if it could not find yhe specvtrometer.

 

4- Did you create the simple example you're talking about from scratch or did you copy it from your project?

We created it from scratch.

 

5- Can you really see the ActiveX Class you want to use into the ActiveX Class Browser (right click on the Automation Refnum)?

Yes, once the ActiveX registered in the windows registry.

 

6- Do you reproduce the behavior with another class (from MS Excel form example)?

Not tested. Cannot say.

 

My colleague and I took a 4th PC  a laptop (NEC) with LV 8.2 and wrote again the whole code (which is not too long so that was aceptable). It worked fine ! So now we have to figure out if the problem is the PC or our LV 8.6.1 version ...

 

Regards,

Mario

0 Kudos
Message 3 of 3
(2,486 Views)