10-01-2013 09:50 AM
Hi everyone,
I am trying to develop a data acquisition program. In this program, I have two independent while loops that each output a number of type double each iteration of the loop. I am able to successfully create two independent waveform charts (data vs. time) for each of the loops when it is placed inside. However, I now want to create an xy chart of the live data (the output of one loop is x and the output of the other is y).
I am having trouble doing this because of the separate nature of the loops...when I try to pull data outside of the loops it (naturally) doesn't refresh with each loop iteration causing the xy chart to not work in the way I intend. Is there an easy way to fix this? If more clarification is needed, please let me know!
David
Solved! Go to Solution.
10-01-2013 09:59 AM
Yes, more clarification is needed. Please attach your code to clarify.
I'll take a wag at it, though. It sounds like you are trying to pair X and Y data which happen during a single time chunk, then repeat, is this right? (If not, don't bother to read on.) If so, why not just use a single loop. If your VI is getting too big/complicated for comfort, just put the data-generating stuff into subVIs which run to generate a single data point, then stop, put them into a while loop and send the putputs to a graph or chart inside the loop. That way you won't extend your data trace until you get one and only one point from each subVI and things will stay synchronized.
Cameron
10-01-2013 12:21 PM
If the two loops are not synchronized,how exactly do you want to do the xy graph, where each point, by definition, must contain a value from each loop.
#2 is easiest. Simply create a third loop with a suitable delay and graph the two values via local variables. You probably also should limit the chart history in some way.
10-11-2014 04:43 PM
Hi altenbach,
I am encountering a problem that says the DAQ is reserved. I know that you cannot run two DAQ Assistants in a single while loop. but how do i come about it?. I want to read load cell data and strain gauge data on the same XY graph. If i run them seperately, then it is working fine, but if i club them together it is giving me an error . Can you please tell me how to go about this. I need this thing up and running by the next week since i have my thesis defense the week after that. Your help will be greatly appreciated.
Thanks and Regards,
Manjunatha Prasad R
10-11-2014 05:17 PM
Your message has nothing to do with the thread you posted in.
From your description, it sounds like you are getting error -50103. Search the forums for that error message and you'll find your answer.
10-11-2014 06:58 PM
@ManjunathaPrasad wrote:
Hi altenbach,
Sorry, this is not a personal answering service, so please post a new question in a new thread instead of hijacking an old, unrelated thread that is already marked as solved!
I am not sure why you are addressing this to me. When was the last time you saw me answering a DAQ related question? 😮
10-11-2014 07:35 PM