02-16-2009 03:16 AM
Hi, I am trying to control a lifelines trackit EEG (www.llines.com) recorder using LabVIEW via serial communication (DB9). Does anyone has any experiences connecting this device with labview? I've done several communication via serial communication with labview before but not as tough and difficult as the current task. I am not able to understand the device (trackit) command in order for me to apply the Basic Serial Read and Write VI. Please advice. I have the Lifelines trackit recorder Interface specification in softcopy as reference but do not know how to attach here. Please let me know if you guys need the copy as reference. TQVM
Host Transmit Write Data and Write Command
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> [Data]# [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> <Data># [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> {Data}# [EOP]
02-16-2009 03:49 AM
Hi nhmh,
what is this:
Host Transmit Write Data and Write Command
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> [Data]# [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> <Data># [EOP]
Or:
[SOP] <AddrHi> <AddrLo> [Chr(W)] <ParamBlock> <Index> {Data}# [EOP]
?
Are this some of your commands?
How many device can you connect over one serial line?
Mike
02-16-2009 04:23 AM
Hi Mike,
That is not my command, that is the command given by the manufacturer which I do not know what should i replace/write in the command. I only connect 1 device to my notebook via serial communication.
Thanks
02-16-2009 05:07 AM
Hi nhmh,
i think your description for the device should explain, what you have to send and what you have to replace.
Mike
02-16-2009 05:42 AM
Hi nhmh,
maybe it is "SOP" -> start of package and "EOP" -> end of package. Do your device have an adress?
Mike
02-16-2009 07:06 PM
Dear Mike,
Yes, I know that the SOP stands for Start of packet and EOP is end of packet. EOP normally represented by the CR icon in labview (CR= carriage return) but i do not know what is represented SOP in labview. All i know that SOP symbol in hex is the FS (file separator if i am not mistaken).
Where can I find the adress? please advice
I won't be able to use internet for the next two days (out of town), and will response your reply once i managed to use internet line. tqvm
02-16-2009 08:02 PM
02-16-2009 08:33 PM - edited 02-16-2009 08:34 PM
Is there a demo program from the manufacturer that works?? you can use portmon or NI spy to capture the serial datastream and reverse engineer the labview code. Sometimes ya have to think like a hacker.
http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx
http://www.ni.com/support/gpib/max/nispy.htm
02-16-2009 08:52 PM
02-16-2009 11:49 PM
Dear Unclebump,
Thanks for your suggestion using NISpy. I will try on this later since I don't have the hardware with me know as I am out of office at the moment.
TQVM