11-10-2010 12:16 PM
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
Solved! Go to Solution.
11-11-2010 01:33 AM
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
11-11-2010 08:53 AM
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
11-12-2010 03:15 AM
I've attached code for LV8.6 version.
Regards
Prashant
11-15-2010 05:19 AM
Check and let me know if it works....
11-15-2010 07:41 AM
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
11-23-2010 11:47 AM
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