01-16-2018 12:55 AM - edited 01-16-2018 12:55 AM
Hi guys,
I am trying to solve a problem related with Chroma AC Source and Labview. I want to set chroma using parameters in the excel file then I am going to measure chroma paramaeters. At the final, I want to graph measurements. But it requires 3.5 seconds for one sample and I did not use 3.5 seconds delay. I think, the source of this problem is chroma's set and measure blocks. Is there anyone who face with this problem ? This is my lecture project.
Thanks for your time and concern in advance.
01-16-2018 01:53 AM
Hi ibr,
But it requires 3.5 seconds for one sample and I did not use 3.5 seconds delay
So the problem is in your VI!?
Why don't you attach your VI then with your message?
- Did you implement a state machine with states like "read parameters", "set parameter", "wait for device", "do measurement"?
- Does the Chroma device offer any possibility to check for execution of previous commands?
01-16-2018 04:08 AM
Hi Sir,
You can find main VI and sub VIs in the attached file.
Thanks for your time and effort.
Best regards.
01-16-2018 04:27 AM - edited 01-16-2018 04:28 AM
Hi ibr,
put a wait between the ChromaSet and ChromaMeasure subVIs! Use dataflow to ensure the wait is executed between both functions…
Additional hints:
- use AutoCleanup from time to time!
- NEVER hide the labels of control/indicator terminals in the block diagram!
- use a boolean value for "value" instead of the I32 and keep this "value" in a shift register to avoid local variables!
- avoid race conditions like you have in your inner case structure - because of local variable overuse/abuse!
- why do you need so many tab controls/indicators? They way you use them make me think you should replace them by clusters…
- when uploading more than 2 files you should put them in a ZIP for easier handling…
01-16-2018 05:13 AM
Hi,
I am going to try those hints and I will write results.
Thanks.