Paul,
I was curious about your vi to write a chart as a jpeg. Thanks - now I know how to when I find a need for it. I've looked at some of these vi's before but the documentation is pretty slim so I haven't tried them too much.
I tried your vi and looked into the the subvi's of Write Jpeg File.vi.
First thing I did was to look at the error output of the Write Jpeg File.vi. I could not write a file with a depth value of 2. Only 1, 4, and 8. Did you get it to work with a value of 2?
Check out the subvi's of Write Jpeg File. The subvi Check Data Size.vi allows only values of 1, 4, 8, and 24. All other values will produce an error. I would think that 1 = B&W, 2 = greyscale, 4 = 256 col
ors, 8 = 16 bit color, 24 = 32 bit color.
The next subvi, Check Color Table, oddly also allows a value of 2 in addition to 1, 4, 8, and 24. Depth = 24 case is handled differently than the rest. It requires that the color depth be an array of zero length.
See the attached modification, which should let you write with a depth of 24.
Sorry I can't lend any insights as to WHY depth = 24 is handled differently. Don't know enough about it.
Good luck,
Tim Shanahan