Welcome! Log In Create A New Profile

Advanced

Event codes include negative numbers

Posted by IVanegas 
Event codes include negative numbers
April 25, 2023 03:50PM
Hi Jaewon.
I had an issue with my PC last week because of an outage in the building. I had to reinstall Matlab and Monkeylogic from scratch.

We are using Windows 10, 64 bit, and the National instruments BNC-2090A, to transfer event codes to the Neuralynx acquisition.

The behavioral codes I use in my tasks are numbers between 2 to 90, all positive numbers.

However, I noticed in my recording session today that there are hundreds of additional numbers surrounding the actual behavioral codes I use. Those additional event codes are all negative, such as -128 -127 -126 -124 -119 -118 -114 -113 -111 -110 -109 -106 -105 -102 -100 -99 -98 -92 -80 -77 -76 -75 -74 -73 -72 -71 -70 -67 -66 -65 -64 -63 -62 -61 -60 -28 -26.

I have reinstalled the NIdaq drivers and also added the NIdaq toolbox from ML to the Matlab path. However, these negative numbers continue coming in the acquisition.

Please let me know if you have any guidance, have you seen this before, or where do you think the issue can be?
Thank you very much for your help.
Re: Event codes include negative numbers
April 26, 2023 10:37AM
What NIMH ML and the NI board send out is just a series of 0s and 1s. It is Neuralynx that reads them as negative or positive numbers. So I guess you need to look into Neuralynx.

The strobe test sends out a bunch of numbers in which only one binary digit is set (e.g., 1, 2, 4, 8, 16, ...), so it is easy to detect a pattern in the error, it there is any.
Attachments:
open | download - strobe_test.png (18.5 KB)
Re: Event codes include negative numbers
April 28, 2023 01:31PM
Hi Jaewon.
Thank you very much for your explanation. This was really helpful and we figured out it was a faulty cable (BNC).

Have a nice weekend!

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.