07-27-2020 02:31 PM - edited 07-27-2020 02:45 PM
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
07-27-2020 02:34 PM
Attachment got scrapped, here it is...
07-28-2020 09:38 AM
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?