LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ data graph not displaying

Solved!
Go to solution

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!

0 Kudos
Message 1 of 8
(3,465 Views)

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.

0 Kudos
Message 2 of 8
(3,458 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 8
(3,453 Views)

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.

Download All
0 Kudos
Message 4 of 8
(3,426 Views)

Those are charts, not graphs.

Richard






0 Kudos
Message 5 of 8
(3,405 Views)

What are you trying to do?  let's point out the obvious WTFs and then we might be able to get somewhere.

  • Continuous acq + Read N sample N chan with sample size of 1 = WTF?
  • Transpose 2D array to get 1 column of data that is auto-indexed into a for loop running 1 time? WTF?
  • run all that into a AxB where B has 1 row (How many columns in A?) WTF?

Essentially there is no data to display- you threw it all out!


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(3,400 Views)

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!

0 Kudos
Message 7 of 8
(3,398 Views)
Solution
Accepted by ccollins92

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).

0 Kudos
Message 8 of 8
(3,384 Views)