OpenViBE forum

The OpenViBE community
It is currently Wed Apr 24, 2019 6:27 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Jul 17, 2015 3:40 pm 
Offline

Joined: Sun Mar 30, 2014 8:42 am
Posts: 14
hi,
i am using python script to get the data from 'genereric stream reader',and output data to the 'GDF file writer'. this is the scenarios used to save the filtered data as gdf file, the python is just output the data as it received. when i run,the python script can print the data right, but the saved GDF file in 'GDF file writer' is wrong,the value is always '-0.9980'.

thank you for your help :D


Attachments:
File comment: this is the scenarios used to save the filtered data as gdf file, the python is just output the data as it received
scenarios.png
scenarios.png [ 7.28 KiB | Viewed 3913 times ]
File comment: it's the saved data in gdf file ,always '-0.9980'
GDF saved value.png
GDF saved value.png [ 14.28 KiB | Viewed 3916 times ]
File comment: in the code ,i print the received 'chunk',
than output the chunk to 'output[0]'

python script code.png
python script code.png [ 42.64 KiB | Viewed 3916 times ]
Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 17, 2015 4:04 pm 
Offline

Joined: Sun Mar 30, 2014 8:42 am
Posts: 14
dennis wrote:
hi,
i am using python script to get the data from 'genereric stream reader',and output data to the 'GDF file writer'. this is the scenarios used to save the filtered data as gdf file, the python is just output the data as it received. when i run,the python script can print the data right, but the saved GDF file in 'GDF file writer' is wrong,the value is always '-0.9980'.

thank you for your help :D




this is the output imformation when running the scenarios,we can see that the chunk can be print by python script rightly


Attachments:
File comment: this is the output imformation when running the scenarios,we can see that the chunk can be print by python script rightly
output imformation.png
output imformation.png [ 42.1 KiB | Viewed 3910 times ]
Top
 Profile  
Reply with quote  
PostPosted: Sat Jul 18, 2015 1:47 am 
Offline

Joined: Sun Mar 30, 2014 8:42 am
Posts: 14
hi,
i want to use 'python script' to get the data from 'Generic stream reader' and output the data as it received , the detail can see 'http://openvibe.inria.fr/forum/viewtopic.php?f=6&t=9518' ,
can you help me ? :D


Top
 Profile  
Reply with quote  
PostPosted: Thu Jul 23, 2015 1:56 pm 
Offline

Joined: Tue Apr 01, 2014 8:22 am
Posts: 71
Hi,

Can you join the xml of your scenario please?

Guillaume


Top
 Profile  
Reply with quote  
PostPosted: Sun Jul 26, 2015 4:04 am 
Offline

Joined: Sun Mar 30, 2014 8:42 am
Posts: 14
gserrier wrote:
Hi,

Can you join the xml of your scenario please?

Guillaume



hi,
i'm sorry to reply late,i have finished the output :P , but there is a new problem, the error is
[ INF ] At time 1.344 sec <Box algorithm::(0x0000212d, 0x0000449a) aka Python scripting> Traceback (most recent call last):
File "C:/Program Files/openvibe//share/openvibe/plugins/python/openvibe.py", line 173, in realProcess
self.process()
File "C:/Program Files/openvibe/share/openvibe/scenarios/box-tutorials/python/scripts/Classification_test.py", line 29, in process
for chunkIndex in range( len(self.input[0]) ):
TypeError: bad argument type for built-in operation

is the 'for chunkIndex in range( len(self.input[0]) ):' wrong? And the chunkIndex is not difined,is there something wrong in it :? ?

thank you for your help! :D


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 28, 2015 8:35 am 
Offline

Joined: Tue Dec 04, 2012 3:53 pm
Posts: 778
Location: INRIA Rennes, FRANCE
My suggestion is to look at the existing python examples bundled with openvibe. First get them to work. Then customize your thing starting from them with baby steps, and if it breaks at some point, don't proceed until you've traced back the issue.


Good luck,
Jussi


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Americanized by Maƫl Soucaze.