03-28-2022 06:42 PM
I want to generate one cycle of a sine wave that has 100 data points. I have done that and graphed them. I now want to use those same data points and output them to AO0 to generate a signal. I then want to acquire that data back via AI0 and graph it. I'm only acquiring one data point with the code I got now, and my graph is blank. I want to use 1 sample on demand but doing trial and error when I do generate N samples a graph does appear. When I use the original data without indexing the array, I get the error the number of channels in data 100 and the number of channels in task 1. I know this is because the number of data points doesn't match. I know the solution is simple but I can't seem to grasp it right now.
03-28-2022 07:27 PM - edited 03-28-2022 07:31 PM
Obviousoly, you should start with a few basic LabVIEW tutorials before involving external hardware.
Some quick comments:
03-28-2022 07:38 PM
03-28-2022 09:13 PM
I tried putting it all in a for loops. I tried separate for loops. I'm getting data points now but they're in a 2D array and the graph still doesn't show. I tried separating the arrays to get a 1D array but that still didn't work for me.
03-28-2022 09:50 PM
Set the "from dynamic data" to output a scalar.