04-13-2012 02:09 PM
Hi everyone! I am writing a program to collect data from a force transducer. I know that the data is correctly acquired at the right values, but my charts aren't displaying the data. I even used a sample program from the manufacturer of the force transducer, literally copying and pasting the waveform chart that displayed the forces in that program, and wired it to the same places, but I am still getting nothing when I run it. Does anybody have any idea why this might happen? Thank you!
Solved! Go to Solution.
04-13-2012 10:12 PM
No. We don't have any idea. Without seeing your VI, or at least a screenshot of your code, anything we can come up with is pure speculation.
04-14-2012 12:43 AM
As Ravens Fan said its very tough to give the solution. But there are two possibilities where you will not get the data in the graph
1. Your graph portion of your code is not runing (If you have a seperate loop)
2. The values going to the graph should be NaN this may happen when you are performing any calculation before giving it to graph.
Try to post a snippet of your code if your problem is not resolved.
04-19-2012 09:59 AM - edited 04-19-2012 10:02 AM
Ok, fair enough. I am attaching screenshots of the code and the front panel. The picture of the front panel shows what the graphs are doing wrong - they're just displaying a vertical line that changes length rather than a continuous line. I would guess this is a problem with my graph settings but I copied a graph from a program I was using as a guide that does what I need my graphs to do, and that one didn't even display the vertical lines.
04-19-2012 10:14 AM
Those are charts, not graphs.
04-19-2012 10:17 AM
What are you trying to do? let's point out the obvious WTFs and then we might be able to get somewhere.
Essentially there is no data to display- you threw it all out!
04-19-2012 10:22 AM - edited 04-19-2012 10:32 AM
Jeff: I completely believe you when you say my program makes no sense, I'm really new to this so I'm certain it's really sloppy. However, it does work, aside from the charts. I can't have thrown the data out, because the numbers are showing up and I know for a fact that they're correct. Since the same wire feeds into the numerical display as the charts, then what is wrong with the charts? That's the only thing I'm looking for help on.
Broken Arrow: yes, you're right. I knew that, but I misspoke. Sorry for any confusion that might have caused!
04-19-2012 11:21 AM
We can't debug a picture. I don't understand why you simply did not post the actual VI. If you insist on posting a picture, at least make it a snippet (look it up in the help).