|
|
|
This sample is in response to a user's question.
Hi, I am using StampPlot Pro version 3 release 5 and can not find the
answers to the following questions.
1) I am plotting 2 analog values and would like the first trace to be black
(both the data points and the
line connecting the data points) and the second trace to be red, how can I do this?
2) How do you plot just the data points without the line connecting the
data points?
Note: Portions of this sample assume the user is using at least Version 3 Release 5 and all discussions may not work properly without it. There are multiple ways to produce the effect you desire, though they all entail using the incoming data in other-than standard plotting fashion. Though the use of the ACHN and FCIR instructions, incoming data may represented as you specify. Template for Analog Channel Instruction: Template for Filled Circle instruction:
Sending String from Controller
Creating a Macro Assuming only can or want to send values, another way would be to create a small macro, or text script, to accept and plot the data. By having StampPlot use the analog data for a macro only (!USEA ON), it can be manipulated prior to being plotted. As data arrives, it is placed into macro values AINVAL0 to AINVAL9 (and on up to 50) for use in macros. Sending the data: Writing the macro: Save the macro, run it (Macro--> Run Macro), connect and plot. Using the Developer's Licensed Object Editor:
Using the Calculation and Plotting control The new Calc-N-Plot control can be used to plot this data as desired.
With a developer's license, the additional plots may be deleted, the main plot area resized, and the calc-n-plot control made not-visible if desired. A macro configuration of this may then be built to be re-opened or distributed. |