01-25-2011 10:11 AM
Hello All,
I am using E4402B Agilent's Spectrum Analyzer.
I need to take screen-shot after every n mins and then again change the parameters, then take screen-shot save it on PC. I can save all the screen-shot on PC.
My Problem is i have kept my program in Loop "Changing Parameters, then saving the screen-shot" So many times in loop same screen-shot get saved and message on Spectrum analyzer appears as" File Already Exists"... SO what might be the reason??? After deleting that save file from Spectrum Memoray I wait for 5 sec and after changing the parameters i wait for 3.5 mis to take screenshot. But still this happens.. I hope anyone can tell me the solution...
Thanks in Advance,
Pals
01-26-2011 03:06 AM - edited 01-26-2011 03:06 AM
Hello Pals,
as the error message describes your spectrum analyzer tries to save a screen-shot to a file which already exist.
You can try to change the filename, than this errors shouldn't appear any more, because you write the new screen-shot to a new file.
Kind regards,
TobyS
01-26-2011 03:48 AM
Hi Tobys,
Thanks but every time i am deleting that file before saving. And not always i get this error. I do this process of saving the screen-shot for 24*7 so in middle like after 13 or sometime after 20 screen-shot for one screenshot i get this message and screen-shot is not being saved. So i was wondering y in middle sometimes it behave so wired... So if you can help me in same...
Thanks so much...
Pals
01-26-2011 05:24 AM
Hi Tobys,
If i highlight my program and then run for hours... then i dont get that error... So i guess somewhere timing problem or its when highlighted it runs step by step but in actual its misses sometimes...
Thanks
01-26-2011 06:04 AM
Hi Pals,
this sounds that the deletion is not executed at this special moments.
But to get sure about this I would like to check this with your code. So if you can send me that, I can try out more.
01-26-2011 06:19 AM
HI Tobys,
Yes u r right... and strange is that when i highlighted the code and then started running not a single time i got this error... Anyways... i have upload my Code....
Thanks so much...
pals
01-26-2011 06:20 AM - edited 01-26-2011 06:22 AM
Hi Tobys,
You will need more File to check the code so attaching remaining files also...
Thanks
Pals
01-26-2011 09:09 AM - edited 01-26-2011 09:10 AM
Hi Pals,
in some of your VIs you are using WAITs, like in Monitoring.vi. In the last sequence you are in fact using the five WAITs parallel. In the way you put them it seems you want to wait between the reading, storing, deleting commands, but for this you would have to use an additional Flat Sequence Structure, and put each of the commands and waits in a single frame.
01-26-2011 09:18 AM
Hi,
Actually i was getting this error so i thought that its due to some time mismatch so i have put those delay... If i take them out then is it fine??? I am so much confused that why in middle that error comes so i was just doing trial by putting wait and all...
Thanks
pals
01-26-2011 09:45 AM - edited 01-26-2011 09:48 AM
Hi Pals,
you have to try it out, I can just read your VI, because I do not have the same HW equipment like you. This with the WAITs was the first thing that looked strange to me and could fit to your idea of timing problems.
The next thing is that you are initializing the FOR LOOP with different arrays, that are provided by your SubVI "SubViReading_From_Ex.vi". Please consider that the smallest array dominates the number of FOR LOOP iterations.