Page 1 of 1

Program than can mimic tractrix out?

PostPosted: Wed May 02, 2007 12:48 pm
by shaolin_racer
I was wondering if there is a program that can mimic the output of a tactrix cable. I have a friend who is trying to put together a digital dash, and needs to have some input to process while he is away from my car. Any help will be appreciated.


Thanks in advance.

PostPosted: Wed May 02, 2007 1:27 pm
by Newfoundlancer
So, basically a virtual running car? I highly doubt it.

PostPosted: Wed May 02, 2007 5:17 pm
by Freon
You might be able to use a serial port looped back into the computer through a separate serial port with a null modem cable, use Hyperterminal, then send a log file as text from the first serial port, with your digital dash connecting to the second.

PostPosted: Wed May 02, 2007 9:33 pm
by NSFW
Another approach would be to have Enginuity log to a csv file, and have your friend's digital dash software read from that file. You don't have to stop reading when you hit EOF - just keep checking for more data. :)

I just wrote a little toy program to try this out, and surprisingly TaskMan shows it using 0% CPU, even if I use synchronous reads. I just have to "Sleep(1)" when the read comes up empty (otherwise it's up at 97% CPU).

With this approach, your friend can use csv files as input data, and not bother with serial ports at all. At most he might want to write a test utility that reads one CSV file and writes to another with realistic pauses between lines.

All of this assumes that you're OK with using Enginuity to do the actual logging, and that Enginuity opens the csv file in a way that allows other processes to read from it. I haven't actually checked that, but if that's not the case it's probably just a one-line fix.

PostPosted: Sat May 05, 2007 6:59 am
by shaolin_racer
Thank you.