LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Desgning a VI that plays/pauses a movie depending on the incoming signal

Solved!
Go to solution

Basically what I'm trying to do is to design a VI which plays or pauses a movie depending on the signal it receives. This VI will be used with an EEG device and what I want it to do is play the movie if the signal exceeds a certain threshold, and pauses it if it doesn't, in other words a VI that responds to neurofeedback.

Since I dont have access to the EEG equipment yet, I'm using a sine wave for the moment as the EEG signal in the VI of attachment of this post (which of course will later be replaced by the EEG waves being recorded), and what I want it to do is play the movie if the signal is above 0 and pause the movie if the signal is below 0. Any help would be appreciated

 

Regards,

 

varkong  

0 Kudos
Message 1 of 7
(3,127 Views)

Hi Varkong,

 

I've made few changes to your VI so that it works as per your requirement. Hope this helps you out..

 

 

Cheers!!

 

Prashant

 

0 Kudos
Message 2 of 7
(3,104 Views)

Hey thank you for replying but unfortunately I couldn't open the file because I have LabView version 8.6. Could you repost the file in a format so I could open it? Or maybe just post screenshots of the block diagrams?

Thank you very much!!!

 

Regards,

 

Gábor

0 Kudos
Message 3 of 7
(3,077 Views)
Solution
Accepted by topic author varkong

I've attached code for LV8.6 version.

 

Regards

 

Prashant

0 Kudos
Message 4 of 7
(3,058 Views)

Check and let me know if it works....

0 Kudos
Message 5 of 7
(3,029 Views)

I didn't have access to the computer that had LabView installed at my university for the weekend so just checked it right now. It works like a charm thank you very much!!

 

Regards,

 

Gábor Várkonyi

0 Kudos
Message 6 of 7
(3,019 Views)

Hey I was wondering if you could help with something else, I' really appreciated.

 

I've created a VI in LabView which plays a video file, and changes the size of the video screen and volume depending on the the received signal from a signal generator, which generates a sine wave. So if the sine wave has a value(amplitude) of 1 the screen is at maximum size and volume, if it's at -1 then it's at minimum screen size and volume. What I want to do now is to replace the signal generator in LabView by a signal produced in Matlab(Simulink). So I would generate a sine wave in Simulink which would control the screen size and volume in LabView. I have been using the Simulation Interface Toolkit (SIT) to interface the two programs, which results in an additional code being dropped into my block diagram. I've been trying to wire this part of the code to the part of the VI to control the video parameters, but am unable to make it work. Furthermore I've been experimenting with mapping VIs onto the Matlab signals. I'm unsure which part of the SIT block is responsible for sending that data that would be able to control the video size and volume and how I should connect that to the parts of the block diagram that I made. I've attached the VI without the SIT block to this email, and furthermore the one with the SIT block where I tried to attach it the video VI. Unfortunately it wont let me attach the Simulink file but it's just a simple sine generating block diagram.

Regards,

 

varkong 

Download All
0 Kudos
Message 7 of 7
(2,961 Views)