| Author |
Message |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 22, 2016 7:37 PM Post subject: Bioera and PocketNeurobics |
|
I'm currently running into difficulties with these two. I'm using the Q-wiz and I connected the device to the Bioera, but when I run the tests or examples, there is no data from the device being processed even on signal generating mode. Could anyone offer me some advice?
Thanks. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 22, 2016 8:14 PM Post subject: |
|
Make sure you see "Serial port" added in Device Manager when Q-Wiz is connected (before you start BioEra).
What do you mean by "signal generating mode"? |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 22, 2016 8:27 PM Post subject: |
|
When the Q-wiz is connected there is a new "Serial port" in Com5 that is named "Pocket Neurobics Wireless Dongle". Is that what you mean by the "Serial Port"? This was already added when I ran the tests before.
Also the Q-wiz has an option that can send test signals indefinitely, which is what I meant by "signal generating mode". |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 22, 2016 8:46 PM Post subject: |
|
You serial port looks good. There is no need to use the signal generating mode, Q-Wiz should send data in the default mode even if no electrodes are connected.
Have you tried to use your QWiz with other software on this computer?
You may want to try this (simple) design, see if you see any activity. Please start BioEra with Console and see if there is any error or warning there. Make sure you set COM5 in Properties of the SerialPort (this is needed only if you have more COM ports).
http://proatech.com/design/qwiz.bpd |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 22, 2016 8:55 PM Post subject: |
|
I tried out the data and I saw some activity, which was a flat line. This poses the question, why did I see activity in this design as opposed to the example designs in BioEra?
Thanks. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 22, 2016 9:09 PM Post subject: |
|
| Did you set the "PN Wiz" on the "Device selection" dialog? (can be opened from menu Tools, then "Device selection and configuration"). |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 22, 2016 9:35 PM Post subject: |
|
| Yes I set that once I opened BioEra. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 22, 2016 9:53 PM Post subject: |
|
| Maybe try to set the source to Simulator. Reload. Verify that you see the signal from the Simulator. Then change it back to QWiz and reload the design (make sure the device is connected). Hopefully you will see the signal from your Q-Wiz. |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 25, 2016 7:08 PM Post subject: |
|
| I managed to get the device working and all set up. I used the premade designs for bioera, but there is no button to record the data. Do you happen to know how I would be able to record the data and maybe save it to folder to be used in Matlab? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 25, 2016 7:31 PM Post subject: |
|
BioEra examples have "Record" button which is enabled after the design has been started. When used, the recording is saved in "replay.xdf" file in the main BioEraPro folder.
This file is saved in xdf format which Matlab can't read. So you will need to convert it to something which Matlab understands. I don't know about Matlab, so can't help with that. I suspect Matlab may be able to read a text file, so ExcelFileWriter might be useful.
If you are not using BioEra example design (but prefer a simpler designs, like the one I gave you before), then connect all outputs from Q-Wiz element to XDFFileWriter (or other, like ExcelFileWriter). |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 27, 2016 10:30 PM Post subject: |
|
| Oh I see thank you so much. Also does Bioera support a TCP/IP or UDP protocol? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 27, 2016 10:37 PM Post subject: |
|
| Yes, it has several network elements which use TCP/IP protocol. |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 27, 2016 10:42 PM Post subject: |
|
| Is there a guide to so I can see how to arrange them? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 28, 2016 1:02 AM Post subject: |
|
| My goal is to add a module or such, so I can read the data from a different program over TCP/IP. The closest thing I found in the manual was the element HttpWriter, but I cannot find the element in the list. I downloaded the example, but it wasn't really helpful. Any suggestions? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 28, 2016 1:05 AM Post subject: |
|
| I you want BioEra to read data from another program over TCP socket, you probably want to use NetworkClient. It will connect to the specified host/port and receive 8-bit data sent from that program. |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 28, 2016 1:20 AM Post subject: |
|
| Sorry for all the questions, but what would I connect the element to? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 28, 2016 1:26 AM Post subject: |
|
Well, perhaps before researching BioEra you should first research that program you want to connect to.
I am talking about TCP Sockets (since you asked). But I don't know if that is how this program connects.
That may not be as easy as it sounds. |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 28, 2016 1:39 AM Post subject: |
|
| I want to connect to Matlab. There should be a TCP/IP module in Instrumentation and Control Toolbox. |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Jan 28, 2016 1:49 AM Post subject: |
|
Matlab is not a real time application. It is possible, but doubtful that it uses network to send data.
You need first to figure that out. Maybe try to connect to it manually (for example using telnet <host> <port>) and see if that is even possible. |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 28, 2016 3:29 PM Post subject: |
|
| I believe that it is possible |
|
 |
Chanks9285
Joined: Jan 22, 2016 Posts: 13
|
Posted: Jan 28, 2016 4:33 PM Post subject: |
|
| Matlab also supports server sockets, which uses the NetworkRole property on the TCP/IP interface. |
|