LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph is not showing the correct input.

Hi all, I'm having this problem where the graph is not showing the value that I keyed in. Eg. Input is 12, Graph shows from point 1 to 2. My aim is to show from point 0 to 12. Not from 1 to 2. Can anyone please help me out?

 

 

 

 

Download All
0 Kudos
Message 1 of 3
(2,346 Views)

Hi teohcheesoon,

 

I could suggest 2 things you could try:

  1. You can replace the graph with the chart. Please refer to this link to find the difference between a waveform chart and waveform graph: http://digital.ni.com/public.nsf/allkb/95FEE9F5B252507E862562BA00007657?OpenDocument
  2. If you want to use waveform graph, you could try modifying your code with the following:
    Capture5.JPG
    You can modify your code with the following example:
    So what I'm doing as below is that I am to hold the data whenever value change occur and the case structure is true via shift registers and build array
    Capture8.JPG
    Since I don't intend to store the data if the case condition is false, I'll let the data flow as below:
    Capture7.JPG
     

Hope it helps

 

Warmest regards,

Lennard.C

Learning new things everyday...
0 Kudos
Message 2 of 3
(2,186 Views)

What does the data on the serial port look like?

 

You are only reading a single byte at a time.  So if the value 12 is being sent as the characters "1" followed by "2", you are only reading one character at a time.

0 Kudos
Message 3 of 3
(2,182 Views)