Open soniamgaf opened 6 years ago
Is the info structure also empty? Did you successfully load the library via
lib = lsl_loadlib();
On 12/19/2017 04:08 PM, soniamgaf wrote:
Hello,
I'm trying to use the device BITalino in LabStreamingLayer using the code attached. I added the updated version of liblsl-Matlab to the Matlab path as recommended. I get an error when a run the code:
/Error while evaluating TimerFcn for timer 'timer-1' Struct contents reference from a non-struct array object./
I think it has something to do with the line lsl_outlet(bitalino_info) that returns an empty structure:
/ans = lsl_outlet with no properties./
Can you help with this error? I'm new to LabStreamingLayer and I can't understand why lsl_outlet doesn't work.
Thank you very much!
Sónia
script.txt https://github.com/sccn/labstreaminglayer/files/1572083/script.txt
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/257, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7kHh2PlqwaBWQ1eoOU--LNCFPgGcks5tB9F7gaJpZM4RHGYA.
Are you asking about bitalino_info?:
_bitalino_info =
lsl_streaminfo with properties:
LibHandle: [1×1 struct]
InfoHandle: 634294160_
For lib I get:
_lib =
struct with fields:
hlib: 140729918881792
lsl_protocol_version: 140729919054352
lsl_library_version: 140729919779152
lsl_local_clock: 140729919054480
lsl_resolve_all: 140729919054528
lsl_resolve_byprop: 140729919062912
lsl_resolve_bypred: 140729919065648
lsl_create_streaminfo: 140729919481808
lsl_destroy_streaminfo: 140729919486880
lsl_get_name: 140729919487008
lsl_get_type: 140729919487040
lsl_get_channel_count: 140729919487072
lsl_get_nominal_srate: 140729919487088
lsl_get_channel_format: 140729919487104
lsl_get_source_id: 140729919487120
lsl_get_version: 140729919487152
lsl_get_created_at: 140729919487168
lsl_get_uid: 140729919487184
lsl_get_session_id: 140729919487216
lsl_get_hostname: 140729919487248
lsl_get_desc: 140729919487280
lsl_get_xml: 140729919487520
lsl_create_outlet: 140729919298384
lsl_destroy_outlet: 140729919384384
lsl_push_sample_f: 140729919384512
lsl_push_sample_ft: 140729919385056
lsl_push_sample_ftp: 140729919385616
lsl_push_sample_d: 140729919386208
lsl_push_sample_dt: 140729919386752
lsl_push_sample_dtp: 140729919387312
lsl_push_sample_l: 140729919387904
lsl_push_sample_lt: 140729919388448
lsl_push_sample_ltp: 140729919389008
lsl_push_sample_i: 140729919389600
lsl_push_sample_it: 140729919390144
lsl_push_sample_itp: 140729919390704
lsl_push_sample_s: 140729919391296
lsl_push_sample_st: 140729919391840
lsl_push_sample_stp: 140729919392400
lsl_push_sample_c: 140729919392992
lsl_push_sample_ct: 140729919393536
lsl_push_sample_ctp: 140729919394096
lsl_push_sample_str: 140729919396912
lsl_push_sample_strt: 140729919398784
lsl_push_sample_strtp: 140729919400192
lsl_push_sample_buf: 140729919401632
lsl_push_sample_buft: 140729919402944
lsl_push_sample_buftp: 140729919404336
lsl_push_sample_v: 140729919394688
lsl_push_sample_vt: 140729919395760
lsl_push_sample_vtp: 140729919396320
lsl_have_consumers: 140729919481120
lsl_wait_for_consumers: 140729919481264
lsl_get_info: 140729919481408
lsl_create_inlet: 140729919157760
lsl_destroy_inlet: 140729919180688
lsl_get_fullinfo: 140729919180816
lsl_open_stream: 140729919183696
lsl_close_stream: 140729919186464
lsl_time_correction: 140729919186608
lsl_pull_sample_f: 140729919189344
lsl_pull_sample_d: 140729919189632
lsl_pull_sample_l: []
lsl_pull_sample_i: 140729919190208
lsl_pull_sample_s: 140729919190496
lsl_pull_sample_c: 140729919190784
lsl_pull_sample_str: 140729919191072
lsl_pull_sample_buf: 140729919193136
lsl_pull_sample_v: 140729919194912
lsl_samples_available: 140729919277520
lsl_first_child: 140729919489632
lsl_last_child: 140729919489648
lsl_next_sibling: 140729919489680
lsl_previous_sibling: 140729919489696
lsl_parent: 140729919489728
lsl_child: 140729919489744
lsl_next_sibling_n: 140729919489872
lsl_previous_sibling_n: 140729919490000
lsl_empty: 140729919490144
lsl_is_text: 140729919490160
lsl_name: 140729919490192
lsl_value: 140729919490224
lsl_child_value: 140729919490256
lsl_child_value_n: 140729919490320
lsl_append_child_value: 140729919492592
lsl_prepend_child_value: 140729919492736
lsl_set_child_value: 140729919492448
lsl_set_name: 140729919490352
lsl_set_value: 140729919490384
lsl_append_child: 140729919490416
lsl_prepend_child: 140729919490464
lsl_append_copy: 140729919490912
lsl_prepend_copy: 140729919491024
lsl_remove_child_n: 140729919491136
lsl_remove_child: 140729919492400
on_cleanup: [1×1 onCleanup]_
Thanks!
Hmmmm. Unfortunately, I don't have access to matlab until after the new year. Until then, I have no way of recreating this issue. I don't know all the details of the matlab streaminfo object off the top of my head, but I'm pretty sure that it should have more stuff in it than just the lib handle. There should be some meta data (stream name, sampling rate, etc.) in a structure or something in there.
My guess is that the info object isn't being created correctly and that due to this, the outlet cannot be constructed.
Please provide your lsl related code. As I say, while I'm away from matlab for the holidays, I can't promise that I can get to the bottom of this, but there may be some stupid, overlooked detail that I can spot.
On 12/19/2017 05:08 PM, Sónia Ferreira wrote:
Are you asking about bitalino_info?:
_bitalino_info =
lsl_streaminfo with properties:
|LibHandle: [1×1 struct] InfoHandle: 634294160_ |
For lib I get:
_lib =
struct with fields:
|hlib: 140729918881792 lsl_protocol_version: 140729919054352 lsl_library_version: 140729919779152 lsl_local_clock: 140729919054480 lsl_resolve_all: 140729919054528 lsl_resolve_byprop: 140729919062912 lsl_resolve_bypred: 140729919065648 lsl_create_streaminfo: 140729919481808 lsl_destroy_streaminfo: 140729919486880 lsl_get_name: 140729919487008 lsl_get_type: 140729919487040 lsl_get_channel_count: 140729919487072 lsl_get_nominal_srate: 140729919487088 lsl_get_channel_format: 140729919487104 lsl_get_source_id: 140729919487120 lsl_get_version: 140729919487152 lsl_get_created_at: 140729919487168 lsl_get_uid: 140729919487184 lsl_get_session_id: 140729919487216 lsl_get_hostname: 140729919487248 lsl_get_desc: 140729919487280 lsl_get_xml: 140729919487520 lsl_create_outlet: 140729919298384 lsl_destroy_outlet: 140729919384384 lsl_push_sample_f: 140729919384512 lsl_push_sample_ft: 140729919385056 lsl_push_sample_ftp: 140729919385616 lsl_push_sample_d: 140729919386208 lsl_push_sample_dt: 140729919386752 lsl_push_sample_dtp: 140729919387312 lsl_push_sample_l: 140729919387904 lsl_push_sample_lt: 140729919388448 lsl_push_sample_ltp: 140729919389008 lsl_push_sample_i: 140729919389600 lsl_push_sample_it: 140729919390144 lsl_push_sample_itp: 140729919390704 lsl_push_sample_s: 140729919391296 lsl_push_sample_st: 140729919391840 lsl_push_sample_stp: 140729919392400 lsl_push_sample_c: 140729919392992 lsl_push_sample_ct: 140729919393536 lsl_push_sample_ctp: 140729919394096 lsl_push_sample_str: 140729919396912 lsl_push_sample_strt: 140729919398784 lsl_push_sample_strtp: 140729919400192 lsl_push_sample_buf: 140729919401632 lsl_push_sample_buft: 140729919402944 lsl_push_sample_buftp: 140729919404336 lsl_push_sample_v: 140729919394688 lsl_push_sample_vt: 140729919395760 lsl_push_sample_vtp: 140729919396320 lsl_have_consumers: 140729919481120 lsl_wait_for_consumers: 140729919481264 lsl_get_info: 140729919481408 lsl_create_inlet: 140729919157760 lsl_destroy_inlet: 140729919180688 lsl_get_fullinfo: 140729919180816 lsl_open_stream: 140729919183696 lsl_close_stream: 140729919186464 lsl_time_correction: 140729919186608 lsl_pull_sample_f: 140729919189344 lsl_pull_sample_d: 140729919189632 lsl_pull_sample_l: [] lsl_pull_sample_i: 140729919190208 lsl_pull_sample_s: 140729919190496 lsl_pull_sample_c: 140729919190784 lsl_pull_sample_str: 140729919191072 lsl_pull_sample_buf: 140729919193136 lsl_pull_sample_v: 140729919194912 lsl_samples_available: 140729919277520 lsl_first_child: 140729919489632 lsl_last_child: 140729919489648 lsl_next_sibling: 140729919489680 lsl_previous_sibling: 140729919489696 lsl_parent: 140729919489728 lsl_child: 140729919489744 lsl_next_sibling_n: 140729919489872 lsl_previous_sibling_n: 140729919490000 lsl_empty: 140729919490144 lsl_is_text: 140729919490160 lsl_name: 140729919490192 lsl_value: 140729919490224 lsl_child_value: 140729919490256 lsl_child_value_n: 140729919490320 lsl_append_child_value: 140729919492592 lsl_prepend_child_value: 140729919492736 lsl_set_child_value: 140729919492448 lsl_set_name: 140729919490352 lsl_set_value: 140729919490384 lsl_append_child: 140729919490416 lsl_prepend_child: 140729919490464 lsl_append_copy: 140729919490912 lsl_prepend_copy: 140729919491024 lsl_remove_child_n: 140729919491136 lsl_remove_child: 140729919492400 oncleanup: [1×1 onCleanup] |
Thanks!
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/257#issuecomment-352804734, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7kueQ5rcpArPJP8Hval-iSfts44Mks5tB99ygaJpZM4RHGYA.
Hello,
Thank you for your help. I tried with Python and it's working, but it will be nice to have the code in Matlab as well, but I can wait until you have access to Matlab. I use the Python scripts from https://github.com/Introspectibles/tobe-misc, in case someone has the same issue.
Thank you and merry Christmas!
Sónia
Hello,
I'm trying to use the device BITalino in LabStreamingLayer using the code attached. I added the updated version of liblsl-Matlab to the Matlab path as recommended. I get an error when a run the code:
Error while evaluating TimerFcn for timer 'timer-1' Struct contents reference from a non-struct array object.
I think it has something to do with the line lsl_outlet(bitalino_info) that returns an empty structure:
_ans = lsloutlet with no properties.
Can you help with this error? I'm new to LabStreamingLayer and I can't understand why lsl_outlet doesn't work.
Thank you very much!
Sónia
script.txt