09-18-2018 08:43 AM
There are two things, that I don't understand about the solution yet and which I would like to learn for the future:
1. Does it make a difference, whether the graph is inside or outside the loop for on-demand sample acquisition?
2. When I connected the graph directly to the DAQ assistant, there was an error message about incompatible data types. If I first connect the DAQ assistant to a field for numeric output and in parallel to the graph, everything works, suggesting some casting going on. Is this indeed the case? How would I realize as a beginner when it is happening?
09-18-2018 08:57 AM
For 2. Any time there is a DDT (Ugly blue wire) there is likely to be a data type mismatch. They hide too much code behind them.
09-18-2018 09:00 AM
Ah, that is interesting. For me as a beginner the solid blue lines looked quite nice so far.
09-18-2018 09:09 AM
@Wuffi wrote:
1. Does it make a difference, whether the graph is inside or outside the loop for on-demand sample acquisition?
Are you using a Graph or a Chart? A graph will only display the last waveform you wrote to it. A Chart has a history associated with it. Generally, charts are best inside of your FOR loop while graphs are best to build up all of your data (autoindexing tunnels, etc) and then write to it when you want to show all of the data.
@Wuffi wrote:
2. When I connected the graph directly to the DAQ assistant, there was an error message about incompatible data types. If I first connect the DAQ assistant to a field for numeric output and in parallel to the graph, everything works, suggesting some casting going on. Is this indeed the case? How would I realize as a beginner when it is happening?
As already stated, the Dynamic Data Type is an abomination as it hides too many important details (ie what the data actually is). A graph or chart should accept the DDT coming from the DAQ Assistant I last saw you post. So I would suspect something changed there.
09-18-2018 10:46 AM
@Wuffi wrote:
1. Does it make a difference, whether the graph is inside or outside the loop for on-demand sample acquisition?