01-17-2018 07:20 AM
Hello all,
i have analog ( multiple channels - 2d Array ) and counter data ( single channel - 1 d array). I need to plot it on XY graph. so i used a for loop for auto indexing and plotted on XY graph . is it correct ??
or any other better ways?
I have attached an image of that. Kindly download
note: I have already checked ( only analog - multiple channels -2D array ) on the waveform graph. I am getting output fine.
01-17-2018 07:33 AM
Hi bhuvanesh,
didn't I told you before not to rename your PNG images to JPG?
so i used a for loop for auto indexing and plotted on XY graph . is it correct ?? or any other better ways?
What's the purpose of concatenating empty 1D arrays to your DAQmx data?
Do you really want to use the counter data for X axis and those AI voltages as Y data?
Why don't you read the very same number of samples from your counter task as you do for the AI voltages?
I have attached an image of that.
We cannot debug images using LabVIEW.
Why don't you attach your VI?
01-17-2018 09:32 AM
hi Gerdw ,
What's the purpose of concatenating empty 1D arrays to your DAQmx data?
Then how can you mingle 2d array ( analog ) with 1d array ( counter ) to reproduce with XY graph ?
can you Picture it out ? That is what i am expecting ? any better possible way ?? sir ?
Why don't you read the very same number of samples from your counter task as you do for the AI voltages?
Ya we can change.. no issues. Just for an example, i tried.
i have attached a VI here .
01-17-2018 10:44 AM - edited 01-17-2018 10:46 AM
Hi bhuvanesh,
just get rid of those empty array constants!
When you read a fixed amount of samples using DAQmxRead you should NOT use an additional wait in your loop!
Ya we can change.. no issues.
When you don't read the same amount of samples from both tasks then the loop building the plots for the graph doesn't make (a lot of) sense: you would try to bundle two arrays of different length!