LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Repeated data.

Solved!
Go to solution

Hi. I have the same problem with my VI.  I use a WIKA P30 pressure sensure with a  DAQ NI 9209. Can someone help me? (I added my pressure.VI and an image of the excel data file output. After n seconds the program repeats the same data!).

 

Thanks!

Download All
0 Kudos
Message 1 of 41
(4,038 Views)
Solution
Accepted by topic author Iskandark

@Iskandark wrote:

Hi. I have the same problem with my VI.  I use a WIKA P30 pressure sensure with a  DAQ NI 9209. Can someone help me? (I added my pressure.VI and an image of the excel data file output. After n seconds the program repeats the same data!).

 

Thanks!


I started a new thread for you. replying to a 5 year old thread with a new problem makes it difficult to follow what is going on 😄

Then fixed your code with less than a dozen keystrokes.

Select the collector Express vi, Ctrl+Space, Ctrl+R, Ctrl+U! Then deleted the Wait and the constant.  The DAQ Read will throttle the loop since it has to wait itself for samples to become available.

Capture.PNG

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 41
(4,028 Views)

Thank you so much for your help!!! I wrote in an old place not to open a new one (I did not want to crowd the forum!) In this morning i will try the VI (with your advises).

0 Kudos
Message 3 of 41
(3,969 Views)

Now i have another problem! (sorry but i'm completely new in LabView). (look at the attached figure)

 

Thanks to all for your help!!!

0 Kudos
Message 4 of 41
(3,960 Views)

Buffer overflow.  This is because you loop is too slow.  What I typically suggest here is to use the Producer/Consumer architecture so that the saving of the data to disk is not slowing down your DAQ loop.  It would also help your case if you got rid of the Express VIs and used read functions, especially for the file IO so you can avoid constantly opening and closing the file.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 41
(3,955 Views)

Hello! Thank you for your reply. As i said before, i only start to use labview now and then i don't know what i should do. Are you telling me that i have to change all my VI? There is no possibility to solve this problem with the VI that i already have?

0 Kudos
Message 6 of 41
(3,949 Views)

Learn 10 Functions in NI-DAQmx and Handle 80 Percent of your Data Acquisition Applications.  If you do a Web search with the previous sentence, you'll find an excellent White Paper that will show you how (relatively simple it is) to "change all your VI" and create an VI that will solve your problem.

 

Bob Schor

Message 7 of 41
(3,946 Views)

Thanks. i found it on the web. Now i'm reading it. 😉

0 Kudos
Message 8 of 41
(3,940 Views)

I'm sorry, for my case it is better to use a PRODUCER / CONSUMER design pattern (DATA) or a PRODUCER / CONSUMER design pattern (EVENTS)? Thanks!

0 Kudos
Message 9 of 41
(3,937 Views)

@Iskandark wrote:

I'm sorry, for my case it is better to use a PRODUCER / CONSUMER design pattern (DATA) or a PRODUCER / CONSUMER design pattern (EVENTS)? Thanks!


Data.  I am not a fan of the Events version since it is really turning into a Queued Message Handler (QMH), but that is another story.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 41
(3,929 Views)