NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
ccollins92
Posts: 5
0 Kudos
Accepted Solution

DAQ data graph not displaying

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!

Knight of NI
RavensFan
Posts: 13,235
0 Kudos

Re: DAQ data graph not displaying

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.

Active Participant
P@Anand
Posts: 1,617
0 Kudos

Re: DAQ data graph not displaying

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.

-----

I don't believe in Hard work. I love my work :smileyhappy:
Member
ccollins92
Posts: 5
0 Kudos

Re: DAQ data graph not displaying

[ Edited ]

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.

Active Participant
Broken_Arrow
Posts: 1,839
0 Kudos

Re: DAQ data graph not displaying

Those are charts, not graphs.

Richard
Proven Zealot
Jeff·Þ·Bohrer
Posts: 5,346
0 Kudos

Re: DAQ data graph not displaying

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!


"All shall be well and all shall be well and all manner of things shall be well" -Julian
Member
ccollins92
Posts: 5
0 Kudos

Re: DAQ data graph not displaying

[ Edited ]

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!

Knight of NI
Dennis_Knutson
Posts: 29,306
0 Kudos

Re: DAQ data graph not displaying

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

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page