02-26-2007 08:16 AM
altenbach wrote:
What is with all the globals. Is this program part of a bigger system? Most of the globals are not used anywhere. Are they used elsewhere?
The program is not bigger than that, the file I attached is all the program. I have to remove the globals not used anymore (they were in a previous version).
I'll bring those modifications to my program and see if it works better.
Thanks a lot.
02-26-2007 10:41 AM
02-26-2007 12:10 PM
Please show us your new code. 🙂 Are you absolutely sure the array sizes in the shift registers no longer change?
02-26-2007 12:42 PM - edited 02-26-2007 12:42 PM
Message Edited by altenbach on 02-26-2007 10:45 AM
02-27-2007 08:01 AM
02-27-2007 09:39 AM - edited 02-27-2007 09:39 AM
Message Edited by GerdW on 02-27-2007 04:40 PM
02-27-2007 10:30 AM
roberto.venetz wrote:Here's the new application, cleaned. There is just one thing I don't like. When data are displayed the X-axis is sample number and not the time.
My modification above solves this by writing 0.09 to the "x-axis:multiplier" of all graphs. Since you have uniform x-spacing, you definitely don't need an xy-graph as Gerd suggested earlier).
Have you looked at all at my example (LDF_mainMOD2.vi) modifications that I provided above? There are extensive diagram comments in yellow that should be ablt to guide you. If anything is not clear, please ask. Good luck! 🙂
I'm pretty sure you could simplify my version even more: get rid of the inner FOR loop, read 6 bytes at once, and typecase to an array of U16, for example.
One thing is not clear to me: You get three different values (value, volume, speed) in sequence with the same command. Isn't there a danger of a "Phase shift" and things could get scrambled in a worst-case scenario?
02-27-2007 11:53 AM
I've looked at your file and it help me a lot, thanks.
Writing 0.09 to the "x-axis:multiplier" of all graphs is not supported in application for PDA, I'll take a look how I can solve that.
Your absolutely rigth about a "Phase shift" danger but I solved that with a good process managment. I performed some tests and it's all rigth.
I'll continue to work on this application and you'll find more message very soon.
02-27-2007 12:29 PM
03-01-2007 09:37 AM