LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX with Window's Media Player causing LabVIEW crashes and general front panel glitchiness

I'm having lots of problems getting Window's Media Player to function properly in LabVIEW, and more issues calling the VI in TestStand.. I think it's primarily a LV issue and didn't want to take up too much space by posting in both places, but let me know if there is a more appropriate protocol I should follow here. I am new to both ActiveX controls and TestStand. I'm using LV 2019, TS 2019, and WMP 12. I think I must be doing something wrong in clean-up as the VI generally works correctly the first time it's called and not on subsequent calls.

 

 

Desired behavior: I want to be able to call this VI multiple times in TestStand playing a different video file each time.

 

 

Actual behavior: If I run the VI in LabVIEW only, it generally works but crashes very frequently in clean-up and the front panel has some weird behavior (as in, it "thinks" my continue button is higher than it is, so I have to click on the top half of the continue button and then the button jumps upwards). Aside from the crashing and FP glitches, I am able to run the VI with 1 file specified, stop the VI, and then run it again with a different file specified and both videos display.

However, if I call the VI in TestStand, the 2nd call does not display anything where the video should be on the 2nd call. Just a black box.

 

 

I tried to simplify things as much as possible to demonstrate the behavior I'm seeing. There is a VI, TestStand sequence to call the VI, and a couple of test video files to play with. Does anyone see anything wrong here? Let me know if any other info would be useful.

Thank you,

George

0 Kudos
Message 1 of 3
(1,549 Views)

Attachment got scrapped, here it is...

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

I'm attaching a crash report, in case it helps explain anything.

 

Alternative request: Is there any way to play videos in LabVIEW without using windows media player?

0 Kudos
Message 3 of 3
(1,460 Views)