From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-12-2007 12:15 PM
03-13-2007 02:40 AM
Hi leachdor,
... all I want to do is take an S19 file, and upload it via COM2 serial port to a microcontroller.... LabVIEW will be replacing an old DOS program that we have used for years...
I don't have any experience with this specific file format, though, according to this (found via wiki) reading S19 and extracting address/data-blocks will not be hard - see attached VI. However you read the S19 files, that part of your program ought to be reuasable.
How to talk to the microcontroller (on COM2), in what format it will expect data, and how to make that part of the program generic? I guess that's unknown at this point(?) Hopefully you will have an "Interface Control Document" for the microcontroller-device, or can scratch-up the source code for the old DOS program.
Cheers.
03-21-2007 03:48 PM
03-22-2007 01:32 AM
03-22-2007 08:14 AM
03-22-2007 12:55 PM - edited 03-22-2007 12:55 PM
Message Edited by tbd on 03-22-2007 12:58 PM
03-22-2007 01:06 PM
03-22-2007 09:42 PM
Hi leachdor,
I hate to "go out on a limb", but it looks like there's a legitimate checksum error on that line. I made the change pictured above and get exactly the same results. It's a very short line - something like 5 values are being summed. If you can explain why the checksum should be "3D" and not "4A" I'll fix it!
I'd leave the 8-bit solution as-is (it's simpler) but if you want to see that the 16-bit version works, it's implemented in the attached VI (back-saved to LV 7.0) This VI includes other improvements too. The check-"summer" was summing the "S1" bytes too - it had no negative effect because "S1" converted to hex added zero! The last-line check is better.
Cheers!
04-02-2007 05:33 PM
follow up...
By odd coincidence, a friend recently mentioned using "S-files" at his job - and it turned out to be S19 files. More amusing was that he'd edited a data-byte (or two) without updating the associated checksum - this was sounding so familier!
On reviewing the VI last attached, I found a bug was introduced with the "improvements" (wrong address is reported by Util.File.S19.Parse2.vi). Here it is again, (in LV 8.2.) in case somebody eventually stumbles across this thread.
Cheers!
04-03-2007 06:24 AM