castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1529857809
· Edited
Reply with quote
#1
Hello, i am facing a big problem about combine behavioral codes and eventmarkers with my recording system. Here is my connection way, i got a 68 pin port, my recording device is USB-ME32-FAI-System Here is the 68-Pin MCS Standard Connector of USB-ME32-FAI-System (Digital IN / OUT Connector ) And i connect pin27-34 to my BNC-2090,as the second picture show, The 8 pins are all inserted into DIO. and the pin27 is firstly inserted into DIO-0, and the other seven pins followed in order Here is my settings in monkeylogic: And i define the eventmarker in my behavioral file like this below: At last my neuron spike recording software is MC_Rack, and it was set like this: ........But i can see anything combine with my behaviour task...so here must be somthing wrong, maybe i connect wrong pin cable, or maybe my set of both softwares were wrong, but the important thing is that i wander how to test whether you have made the I/O assignments of behavioral codes and strobe bit sucessfully? and what else should i do?
aboharbf
Member
Registered:1486490929 Posts: 69
Posted 1529862806
Reply with quote
#2
The part where you have similarly colored cables seems like a potential source of problems. If you're confident those are correct, I would additionally share what your "Strobe" setting is in MonkeyLogic, which you'll see next to "Strobe" a few lines below the IO Assignment boxes you're showing. I found the "Strobe Test" to be very useful for determining what was going wrong. It sends 10 cycles of 1, 2, 4, 8, 16, 32, 64, 128 (2^7, in your case). You can sometimes get a sense for what is going wrong if you can read these numbers out at the other end. See if you can start the recording of your system, initiate a strobe test, and then stop and recover those values. If you have a "Raster plot" option in your recording device, that will allow you to see signals arriving, which allows you to know that the connection exists. Also, when I was having these issues, people recommended using Port 0 (Which I'm guessing DIO is), Line 0 as Strobe (0.0) and then using P1.1 - P1.7 as the bits of the code (which I'm guessing is PFI 1 - 7 for you). This is the thread where I had related issues - http://forums.monkeylogic.org/post/interfacing-with-blackrock-system-8422729?pid=1294899836
Jaewon
Administrator
Registered:1435685587 Posts: 775
Posted 1529895349
Reply with quote
#3
What is the sampling rate of the USB-ME32-FAI-System?
castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1529935106
Reply with quote
#4
Quote:
Originally Posted by Jaewon What is the sampling rate of the USB-ME32-FAI-System?
hello, Jaewon, here is the sample frequence that we set in MC_Rack and it's the mannual: By the way, Did i have mistakes about these pictures above?
castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1529935645
Reply with quote
#5
Quote:
Originally Posted by aboharbf The part where you have similarly colored cables seems like a potential source of problems. If you're confident those are correct, I would additionally share what your "Strobe" setting is in MonkeyLogic, which you'll see next to "Strobe" a few lines below the IO Assignment boxes you're showing. I found the "Strobe Test" to be very useful for determining what was going wrong. It sends 10 cycles of 1, 2, 4, 8, 16, 32, 64, 128 (2^7, in your case). You can sometimes get a sense for what is going wrong if you can read these numbers out at the other end. See if you can start the recording of your system, initiate a strobe test, and then stop and recover those values. If you have a "Raster plot" option in your recording device, that will allow you to see signals arriving, which allows you to know that the connection exists. Also, when I was having these issues, people recommended using Port 0 (Which I'm guessing DIO is), Line 0 as Strobe (0.0) and then using P1.1 - P1.7 as the bits of the code (which I'm guessing is PFI 1 - 7 for you). This is the thread where I had related issues - http://forums.monkeylogic.org/post/interfacing-with-blackrock-system-8422729?pid=1294899836
Hello , Maybe I'm sure it's correct about the cable connection, but i have one question, the strobe bits have it's own cable connection or not? so please share with me what "Strobe" setting in MonkeyLogic
Jaewon
Administrator
Registered:1435685587 Posts: 775
Posted 1529947295
Reply with quote
#6
One thing I am not sure about is the meaning of the mask. The description in the manual sounds as if it filters out the unused bits, but you set the mask the same as the "Bit". What if you change the mask to 8-15?
castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1530116804
Reply with quote
#7
Quote:
Originally Posted by Jaewon One thing I am not sure about is the meaning of the mask. The description in the manual sounds as if it filters out the unused bits, but you set the mask the same as the "Bit". What if you change the mask to 8-15?
Hi, Jaewon, here is the mask: Here is a strobe test that i recieved in my MC_Rack, it's digital out display, the biggest number is 129. Can you explain the meaning of this numbers?Monkeylogic Should Send: 2 4 8 16 32 64 128 256 512 (10x) Plexon Records: 255 254 253 251 247 239 223 191 127 (10x)
Jaewon
Administrator
Registered:1435685587 Posts: 775
Posted 1530127675
· Edited
Reply with quote
#8
The figure doesn't give me a clue, since I cannot see the numbers it received. Because you are using 7 data bits (plus 1 strobe bit), the maximum number you can get is 127 (= 2^7-1), so 129 doesn't make sense. As for the numbers you posted at the end, I guess you tested with Plexon and used 9 data bits. Then the numbers that NIMH ML is supposed to send is [1 2 4 8 16 32 64 128 256], not [2 4 8 16 32 64 128 256 512]. The numbers that Plexon actually received was decreasing, so I think it may be the case that LOW is set to be true in your Plexon. And it seems that the connection is misaligned by one line. If you subtract the numbers from 255, you will see a pattern.>> 255 - [255 254 253 251 247 239 223 191 127] ans = 0 1 2 4 8 16 32 64 128
castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1530289307
· Edited
Reply with quote
#9
Quote:
Originally Posted by Jaewon The figure doesn't give me a clue, since I cannot see the numbers it received. Because you are using 7 data bits (plus 1 strobe bit), the maximum number you can get is 127 (= 2^7-1), so 129 doesn't make sense. As for the numbers you posted at the end, I guess you tested with Plexon and used 9 data bits. Then the numbers that NIMH ML is supposed to send is [1 2 4 8 16 32 64 128 256], not [2 4 8 16 32 64 128 256 512]. The numbers that Plexon actually received was decreasing, so I think it may be the case that LOW is set to be true in your Plexon. And it seems that the connection is misaligned by one line. If you subtract the numbers from 255, you will see a pattern.>> 255 - [255 254 253 251 247 239 223 191 127] ans = 0 1 2 4 8 16 32 64 128
Hello, Jaewon, today i try some strobe tests, and i recover the values recorded with my recording software: it's 2,4,8,16,32,64,128, (the order that these values appears was random.) I'm using 7 data bits (plus 1 strobe bit: port 0, line 0). But i still can not see the eventmarker in the recording display of MC_Rack..so i have to exclude all things, firstly is there anything wrong with these values which means probably the wrong cable connection? secondly, is it right for me to use this code: "eventmarker(20) " to define the event? Can you show me a spike recording display picture with eventmarkers? anyother data device is okay, maybe i can understand how to set my MC_Rack....
Jaewon
Administrator
Registered:1435685587 Posts: 775
Posted 1530446668
Reply with quote
#10
You should describe what test you did and how you "recovered" the values. I don't understand what result should be expected. Whatever numbers you send, you should be able to get the same numbers in the same order. If you call eventmarker(20), you will get 20. Unless you let us know which number you sent and which number you received one by one, there is no way for us to tell whether your connections are correct or wrong. I don't know whether your recording system can display eventmarkers on the screen. That's something you have to ask to the company who made the system.
castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1530451794
Reply with quote
#11
Quote:
Originally Posted by Jaewon You should describe what test you did and how you "recovered" the values. I don't understand what result should be expected. Whatever numbers you send, you should be able to get the same numbers in the same order. If you call eventmarker(20), you will get 20. Unless you let us know which number you sent and which number you received one by one, there is no way for us to tell whether your connections are correct or wrong. I don't know whether your recording system can display eventmarkers on the screen. That's something you have to ask to the company who made the system.
Sorry, i have seen the markers on the display, but another question i have sent two mails to you mailbox, maybe you can see more clearly. The test was strobe test, i record the video, and use photoshop to slow down the video, and read out the number
castiel
Junior Member
Registered:1509340715 Posts: 27
Posted 1530628674
Reply with quote
#12
Quote:
Originally Posted by Jaewon You should describe what test you did and how you "recovered" the values. I don't understand what result should be expected. Whatever numbers you send, you should be able to get the same numbers in the same order. If you call eventmarker(20), you will get 20. Unless you let us know which number you sent and which number you received one by one, there is no way for us to tell whether your connections are correct or wrong. I don't know whether your recording system can display eventmarkers on the screen. That's something you have to ask to the company who made the system.
Hello, Jaewon, i searched many posts here, and found a question..i connected the DGround of BNC 2090 to the Ground pin of ME32 device, i will test tomorrow, wish everything will be fine.