LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan rate

Morning Everyone.

 

I am trying to write data from 4 channels and time stamp into a single excel sheet using TDMS function. Initially I had all the logic in one single while loop but that slowled down my DAQ, the data used to get refreshed after every 40/60 sec. My process needs very fast scan rate( 1 sample per sec) so I tried to make a while loop just for my DAQ, so that it will always keep on scanning it. I am using local varibale to trasmit the data outside the while loop. Still I am facing the same problem. I have attached my VI.

Can you suggest any solution?

 

Thanks 

0 Kudos
Message 1 of 10
(4,057 Views)

Why do you have a loop inside of another loop?  They need to run in parallel.  Further, you should loop at the Producer/Consumer architecture.  The idea is to use a queue to pass your data from one loop (the data read) to the other loop (the data logger).  This allows for all data to get logged properly.


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 2 of 10
(4,037 Views)

I do not think your daq couse such delay but your answer is using Producer &Consumer methods so use queate for this one 

the attached vi will be help you 

 

 

0 Kudos
Message 3 of 10
(4,033 Views)

Thank you all for your advice I will try to implement it.

 

Cheers.

0 Kudos
Message 4 of 10
(4,023 Views)

Hi everyone.

 I tried the Procedure /csutomer method, please refer to the VI, still my scan rate to display the reading is very less. I though the sensor is the problem so I created a VI with just the DAQ and display chart, I was able to see instatenious changes in the graph. I am not sure what I am missing here.

 

Much appreciate it.

 

Thanks again

0 Kudos
Message 5 of 10
(3,988 Views)

As I told you before you delay problem is not relate to your daq i think you have problem with setting appropriate sample to read for getting faster cycle for your loop 

0 Kudos
Message 6 of 10
(3,943 Views)

Thanks for your reply Hatef.

I don't have much experience in Labview would it be possible for you to suggest me  waysthrough which  I can increase the scan rate for my while loop. I tried  sampling the data but it didnt help.

 

Thanks 

0 Kudos
Message 7 of 10
(3,921 Views)

could you give me some information of your daq cart your vi do not work and is broken because some of subvi are not exists and you have to resend them too 

0 Kudos
Message 8 of 10
(3,913 Views)

Thanks for the quick reply Hatef.

I am using Vernier Labquest mini as a DAQ( Initially I was using two DAQ Labquest mini and Sensor DAQ, which had in total of 7 sensors which made the loop slower so for now I am just using 1 DAQ, Labquest mini with 3 PH sensor). Please find attached VI I have tried to put everything together.

 

Much appreciate it.

0 Kudos
Message 9 of 10
(3,909 Views)

Attached is a modification of your code.

 

I don't have the Vernier LabVIEW software, so I put in a way to simulate it's operation.

A front panel control allows you to select Simulate or Real Hardware.

(Note: you will need to remove the disable structure on your Express VI - or just enable it.)

 

When you exit the program using the Stop button, a TDMS Viewer is started (selectable on the block diagram).

 

steve

--------------------------------------------------------------------------------------------------------------------------
Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
question. Give "Kudos" to replies that help.
--------------------------------------------------------------------------------------------------------------------------
Message 10 of 10
(3,883 Views)