I ran the sample strip chart project Jason F sent me on my system (LabWindows/CVI 5.5) and I did observe 3 traces of random signals that exhibit three different line styles when commanded by the "change line style" control button. The blue trace shows "Dash" line, the yellow trace shows "Dash-Dot-Dot, and the red trace shows "Dash-Dot". I then modified the code in stripchart.c to change the data points of trace #2 and trace #3 into constants instead of random data. In other words, datapoints[0]= 100.0 * rand()/RAND_MAX, datapoints[1]= 35.0, datapoints[2] = 70.0. After the code is modified, I ran the project again. Guess what! Only the blue trace ( the one with the random data) changes line style as commanded by the control buttons. The
yellow trace (trace #2) and the red trace (trace #3) do not show the proper line styles when commanded by the control button. I wonder why the line style works for trace of random data but does not work for constant data. Of course, in our application, the data will not be a "constant" in general. However, we are using the traces for monitoring multiple voltage levels which are very close to being constant and we are currently having problem of showing different line styles to distiguish diferent traces. If the line style does not work for us, we will be forced to use color only for distinguishing the traces which is less than desirable because the number of voltages to be monitored on one chart is too numerous (about 16).