From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set x axis as passing seconds

Hi all

 

I have a block diagram as in the attachment.I am reading pressure values on y axis and time values in x axis.My problem is how can i fix x axis as passing time in terms of seconds.Becasue x axis stuck between 0 and 0.2 seconds because of the selection of wait(200ms) i did.However when i remove it this time i cannot see any line in the graph as in the pic1.jpg file.

 

I want to write this values into an excel file so the values must contain from beginning to whenever i click stop.

 

Hope I can explain it clearly.

 

Regards,

 

Seyfi

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

I think your problem is in the DAQmx Read.  You need to wire "Number of Samples per Channel" (1000) to force it to wait until all the samples are present.  It looks like you are returning two samples, in which case the Chart is correct.  Otherwise, the code should work ("Famous Last Words") ...

 

Bob Schor

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