01-06-2007 03:22 PM
01-08-2007 02:08 PM
Hi GE,
Try inserting a Wait function inside your while loop to supply a small execution timing delay to free up your processor. 5-10ms should be fine. Also, does your code run properly if you only read from one device/task instead of both at the same time?
Feel free to attach your code and a screenshot or exported list from the Event Viewer.
Regards,
Nicholas B, National Instruments
01-08-2007 06:43 PM
02-06-2007 01:33 PM
02-07-2007 02:58 PM
Hi GE,
After looking at the code, it seems like the problem could be coming from the fact that you have several while loops embedded inside each other, and one that is software-timed. One test I would recommend is to set up a very simple DAQ VI that just reads the value of the temperature in a while loop. We have many examples in the Example Finder that you could run as-is. Try performing this simple DAQ while the other compiled VI is running and see if that changes the results.
Regards,
Nicholas B, National Instruments
02-07-2007 08:13 PM - edited 02-07-2007 08:13 PM
Hello GE,
When you have multiple while loops embedded inside one another, Each loop should have a wait command ( 1 millisecond at least). And careful consideration on the amount to wait. The innermost loop would have the shortest wait ( the amount depends on all loops execution rates). Applying the wrong wait times can get you into trouble fast with you current structure. For instance in your code, the first case structure (the one that is dependant on start, exit, print and default) the default, and print cases do not have a wait timer in them, which basically means literally no other running program has a chance to do much.
Another tip would be to log your data to the hard drive during the entire test so no data is lost.
Also, I would think you would wait for all of the hot/cold booleens to be true to grab the calib temp for its respective range. Right now the program applies the calib temp if the first hot/cold booleen is true and in range. but then again i do not know what you are trying to achieve.
I hope this helps you.
Chris Co
PS. I personally would abondon the multiple while loop structure and rewire it to either an event or single loop structure, well any other will do.
Message Edited by Chris Co on 02-07-2007 08:15 PM
02-09-2007 11:52 AM
02-09-2007 11:53 AM
02-15-2007 04:01 PM
Hello:
Yet another PC has a problem with my application. This one runs an PCI 6503 card compilied VI.
Hope this helps!