Troubleshooting my Labview code

Problem Description :

Labview has been programmed to display data acquired from transducers through

the DAQ every second and save every minute (the sampling

rate from the producer loop is set to 1 Hz, which corresponds to 1 sample per

channel per second.). It had been performing this

successfully for several weeks prior to this occurrence. Since the occurrence,

which happened overnight when nothing had been changed in system operation, the

Labview display updates every 10 seconds and saves every 10 minutes. In

addition to this, the data that is being displayed and saved on these intervals

are not consistent with the real time operation of the experimental set up.

There seems to be a lag or disconnect between real data and that which is being

displayed, as it is completely incorrect and at least 10 minutes behind.

Labview specialist response:

As I mentioned on the phone based off the info I have, I believe that the producer loop is essentially running too slow to keep up with the hardware.

More specifically, in the producer loop the DAQmx Analog read Vis are set to read a single sample from the DAQ card's buffer on each iteration. This will work as long as the loop is faster than one second. However, if it begins to run slower than one second, it won't be able to catch up to the buffer. This could be fixed by setting the reads to Read in N samples, which reads the entire buffer by default. That will require some changes to the rest of the code, however.

Additionally, the consumer's rate is always a multiple of the producer loop. You could overcome that restriction by using time stamps to check if a minute has passed rather than check the items in the queue.

As for why the loop is running slower, it's difficult to say without further testing, but it could other programs running on the computer taking higher priority. There might also be a memory leak. You check this by watching the windows performance monitor as the program runs.

Finally I'd recommend benchmarking the producer loop speed and using VI analyzer to search for areas that could be improved. You can access VI analyzer under tools>>VI Analyzer. Here's a forum post with an example code snippet for benchmarking code:

[login to view URL]

As I mentioned on the phone, all of these steps will take some time and effort to get through. Since you haven't been working with the hardware for very long, I could recommend you for NSCS to have an applications engineer available to help you determine the best architecture. If you decide that it would best to find someone to code it for you. I can get you in contact with one of our sales engineers to talk about options in that direction.

Skills: LabVIEW

See more: 16f877a eeprom writing assembly code problem, labview code control stepper motor, cyclic code problem, labview, stepper motor labview code, troubleshooting net code, code quality architect testing phase, code problem virtuemart, oscommerce gift voucher discount code problem, labview code stepper motor, virtuemart coupon code problem, port testing programs, php code live score updates, html code problem ebay, programs taking pictures, battleship code problem, microphone code problem, winpe testing programs, paypal pro coupon code problem, stock testing programs

About the Employer:
( 0 reviews ) Los Angeles, United States

Project ID: #15793659

10 freelancers are bidding on average $251 for this job


This sounds like an error in Producer-Consumer loop which should be overcome using a slightly different technique of data acquisition. Relevant Skills and Experience I am a Certified LabView Associated Developer with More

$277 USD in 10 days
(62 Reviews)

I am former Engineer from national instruments. From your code I know you are using Compact DAQ system. Rest assure that I can get rid of your problem. But I am on vacation until 10/12. Relevant Skills and Experience More

$111 USD in 3 days
(9 Reviews)

This needs in depth analysis of your code. I will use team viewer to access the system. Kindly discuss with me for clarification of scope of the project. Relevant Skills and Experience Certified LabVIEW Associate Deve More

$250 USD in 10 days
(7 Reviews)

Hello, I am CLD certified Labview developer with over 10 years experience in tests automation. I have required experience to complete this task. Just let me know if you interested. Nicolae

$150 USD in 5 days
(8 Reviews)

I can help you with this task because I've been working on DAQ cards and producer consumer architecture in LabVIEW for 3+ years. I've experience of synchronizing loops to meet timings. Edit: I've checked your VI and More

$180 USD in 3 days
(5 Reviews)
$150 USD in 3 days
(1 Review)

Hello, I checked your problem. Let me suggest a much elegant solution that I used to acquire data in much faster way using LabVIEW 2017. I utilize a new feature named channel wires that is much better than the legacy p More

$277 USD in 5 days
(1 Review)

i am certified labview developer , just let me try to help you Relevant Skills and Experience cld Proposed Milestones $222 USD - 100

$222 USD in 10 days
(2 Reviews)

I have understood your requirement and can help you, I am an IT engineer. I am geared up with years of experience as a developer, I am well proficient in lab view. I can sort out your problem. I have a vast portfolio t More

$555 USD in 2 days
(0 Reviews)

Hi I am a Certified LabVIEW Architect and would love the opportunity to review your code and see if I can resolve your issue. Thanks & Regards, Shane

$333 USD in 10 days
(0 Reviews)