LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

oscillscope project

Yea i know , The VI you posted is using the window that popup when u push Configure Data Collection ......it does the changes for .xls file :smileyhappy:

but if you run the vi and you select Collect only witout changing the sample rate value...it wont write the header info.... is this what you need to know ? 😞

LV 8.2
0 Kudos
Message 341 of 401
(1,300 Views)

I think I know what is going on.  You start the program, then you change the filename.  It has already written the header to the default filename, but not to the new filename.  You then click Collect and <<no header>>.

 

Is that the scenario?  The filename is changed while spirometer is running?

 

Well...   that is because of a design constraint.  You cannot place spiroHeader.vi into the FALSE case because it will always clear your new header.

 

So that means you need to identify a new set of constraints, such as having a popup to change the filename.  But there was never anything mentionned about this feature, so it does not exist. 

 

Does the above describe what is going on?  One way to test is to run it without changing the filename and check to see if the header is there.  If it is, then what I have described is true...  Otherwise, something else is happening.

 

That's why properly designing or at least defining the project is important.. You need to consider all the "what if's" and "what happens when"...

 

-sigh- 😞

 

R

Message 342 of 401
(1,287 Views)

Hey Ray , sorry for being late , after work i went to help my uncle at his Resto till 1:00 the morning and then today i am doin the same thing till a later time. 😞 no choice he is so so busy.

I will let you know the scenarios that are going on tonight .....

Ray , I am leaving in sep 26 for 2 weeks , my Grandmother is getting sick and i have not seen her abd the family since 6 years now....Could we meet up tommorrow for 1 or 2 hours ? U see how time is going fast.....

Thank you 

LV 8.2
0 Kudos
Message 343 of 401
(1,270 Views)

Sorry to hear about your Grandmother.. 

 

I've has a busy weekend...

 

Try the scenario I posted last week and reply to this thread what you observed.

 

R

Message 344 of 401
(1,250 Views)

Salut Amigo 🙂

Ok here are the scenarios:

  • I delete my .xls from c:\ to assure that there is no file I there. I run the VI only (I don’t push any thing else), it creates Spirometry.xls and if I take a look at it, the header info are there.
  • I push end program to start from beginning, I delete my .xls from c:\ to assure that there is no file I there once again. I run the VI,), it creates Spirometry.xls and now I push collect. Every thing is there the header info with CH1, 25 and the data.
  • I push end program to start from beginning, I delete my .xls from c:\ to assure that there is no file I there once again. I run the VI, it creates Spirometry.xls and now I push Configure Data Collection I change the sampling rate to 30 and I collect, every thing is fine.
  • If I don’t end the program, and I change the sampling rate, then collect, it will continue writing to the same Spirometry.xls, it does not delete any previous data.
  • Now I push end program, I change the name of Spirometry.xls manually on the front panel to Spiro.xls, it works fine with all the scenarios I listed above.
  • Now if I change the browse options to Enable (it was disabled and grayed) I run and I browse to a file that I made manually on c:\ it won’t write any thing and I know why because the header info won’t be available.
  • So basically it is working fine if the browse button is disabled and this is what I want , but I don’t know how I want the students to change the file after L if it is Disabled , they will be able to use only one file name.
  • If we can solve this issue that will be perfectttttttttt……if not because I ran out of time will do it after ……..I can let students go to their c:\ and rename the file there or move it to their network drive.
  • One more thing we need to fix is  that I want to delete any previous data and write over J
  • And if if if  it is easy to do we will include 2 other info in the excel file (header) lengh , samples to be collected (both are on configure data collection Popup) , this is an extra work I am suggesting J so no need to do it if it is gonna take time now.
  • I need the GUI to be working after J , I had 70% of it working until now.
LV 8.2
0 Kudos
Message 345 of 401
(1,242 Views)

kmous wrote:

 

  • If I don’t end the program, and I change the sampling rate, then collect, it will continue writing to the same Spirometry.xls, it does not delete any previous data.

kmous,

 

You have never specified or mentionned how the program should behave if it is not terminated.  This is what I have been trying to tell you all along.  You have to specify each and every bit of what a sofware does, down to the most miniscule aspect of it.

 


kmous wrote:

 

  • Now if I change the browse options to Enable (it was disabled and grayed) I run and I browse to a file that I made manually on c:\ it won’t write any thing and I know why because the header info won’t be available.
  • So basically it is working fine if the browse button is disabled and this is what I want , but I don’t know how I want the students to change the file after L if it is Disabled , they will be able to use only one file name.

 


You need to specify how this should work.  As I said numerous time before:  You can't get what you want until you know what you want. 

 

 


kmous wrote:

 

  • If we can solve this issue that will be perfectttttttttt……if not because I ran out of time will do it after ……..I can let students go to their c:\ and rename the file there or move it to their network drive.
  • One more thing we need to fix is  that I want to delete any previous data and write over J

 Again...  you can't get what you want till you know what you want...  Now, what about the consequences of deleting previous data when that is not what the operator wanted to do?  Have you considered all possible scenarios?

 

 

 


kmous wrote:

 

  • And if if if  it is easy to do we will include 2 other info in the excel file (header) lengh , samples to be collected (both are on configure data collection Popup) , this is an extra work I am suggesting J so no need to do it if it is gonna take time now.

 


 Without defining all the details, the list grows on and will continue to grow on endlessly..   One important thing I wanted you to learn is how to define your requirements.  You don't seem to understand that.  Because it is more complicated to patch things together than to properly design a solution.  And the software looks like an accumulation of patches..  not something that was designed!

 


kmous wrote:

 

  • I need the GUI to be working after J , I had 70% of it working until now.

I don't understand what you mean.. What do you mean you had it 70% working...  << until now >>??

 

 

 

Message 346 of 401
(1,234 Views)

Ray , I explained the scenarios only.

I will explain again how this is going to work , I told you that before 🙂 

Just want you to know something and of course you know it that when you make a GUI.....and u select this VI to work with , it is going to be running , means that i dont have to run it manually.....that's why i am saying end program because we are doing it now in labview , there is no .exe until now 🙂

 

the reason why i am not demanding things , i know that you are helping me and this means alot to me , i know u have family and u got ur own bussnis to take care with , so that's why i dont want to ask more and more u know 🙂 i want to keep things easy.

If you really want me to define what I want and how this will work here you go :

All the students have to do when the Vi is running 3 things :

  • Choose a file name .xls through popup that ask the user to enter a file name FIRST and save it somewhere on his pc , so we dont worry about writing back to the same file
  • Set up a sampling rate and a lengh in the configure data collection popup Second
  • Then collect data and write it to file.xls  Third (with the header info)



now you gonna tell me that the VI does not do the first one , i would say yes i know because i dont want you also to pass ur time helping me 🙂 but thank you anyways

i was trying to make things easy 🙂

LV 8.2
0 Kudos
Message 347 of 401
(1,229 Views)

kmous wrote:

Ray , I explained the scenarios only.

I will explain again how this is going to work , I told you that before 🙂 

 

Maybe so, but not enough details were given.  I am not telepathic 😉

 

Just want you to know something and of course you know it that when you make a GUI.....and u select this VI to work with , it is going to be running , means that i dont have to run it manually.....that's why i am saying end program because we are doing it now in labview , there is no .exe until now 🙂

 

You are assuming...  You cannot say that "of course you know it that when you make a GUI"...  so many people do things differently that there is no way of knowing what people want.  That's an assumption...  Even with the same functionality, the main program (top level) may be running until it is stopped, but the sub-vi's should be able to handle events from start to finish independently of the calling vi.  At least that is how I define them.  Other people define them differently, and I respect that.  But to say that "we know that this will do that because..." is not true unless we participated in the definition of the software behavior.  In over 300 posts, the software behavior has never been defined.  So there is no telling what it is "supposed to do"  😮

 

the reason why i am not demanding things , i know that you are helping me and this means alot to me , i know u have family and u got ur own bussnis to take care with , so that's why i dont want to ask more and more u know 🙂 i want to keep things easy.

 

I am helping people on this forum because I enjoy working with LabVIEW and I have fun sharing and learning from this forum.  Not because I have to.  And although it may not seem that way, I am trying to help you.  But just continuously writing tid-bits of patches is not helping anyone.  It is a messy way to proceed and does not reflect how I approach a project.  If I do not try to help you fully describe your needs after so many posts, then I should go back to some sort of schooling because I would not be adhering to what I believe.  😞   😉  You should look at it this way... Here is an opportunity to learn something... Something beyond the language..  Something that can be used anywhere in your life experience..  To clearly describe what you want..  In all it's details, as you imagine it, which can include the colors, the time it takes, the size, and all the events and exception handling that is necessary to be flawless..  (or at least reasonably so)..  🙂 

 

If you really want me to define what I want and how this will work here you go :

 

Yes, I do want to you define what you want, otherwise how do you expect anyone to even try to do someting unless we know what you want???  Think about that one for a minute 😠    Come one..  How could you expect someone to try to help you if you don't want to tell them what you want??  

<sarcasm ON>

D'euh..

<sarcasm OFF>

 

All the students have to do when the Vi is running 3 things :

  • Choose a file name .xls through popup that ask the user to enter a file name FIRST and save it somewhere on his pc , so we dont worry about writing back to the same file
  • Set up a sampling rate and a lengh in the configure data collection popup Second
  • Then collect data and write it to file.xls  Third (with the header info)


Now that's a start..


now you gonna tell me that the VI does not do the first one , i would say yes i know because i dont want you also to pass ur time helping me 🙂 but thank you anyways

 

So are you telling me you no longer want or need my help?  I'm confused..

 

i was trying to make things easy 🙂


 

Message 348 of 401
(1,202 Views)

LOOOOOOOOL NO NO dont get me wrong 🙂 i would not do something witout you , the help is very Appreciated and I need your help of course 🙂

So what's happening with the Vi now ?

BTW , I am taking your advices in consideration , u know graduate students when they start a job the first time , the are scared a bit , first real life work experience.......U have a wayyyyyyyyyyyyyyyyyyyyyy wayyyyyyyyyyy much exp than me , i am still at the beginning 🙂 and i was nor expecting this project.....i just took it to show them i am good worker and i can every thing , but the others things needed timeeeeeeeeee and now it is the more more busy time. Any ways .......let's get back to work 🙂

I made the GUI for the VI's it it working well , i will post it later just to take a look at it 🙂 

LV 8.2
0 Kudos
Message 349 of 401
(1,198 Views)

kmous,

 

<rant on>

I am probably going to be flamed into oblivion for this, but it needs to be said. If you are a graduate student, then you need to start acting in a more professional manner. I am probably not much older than yourself, being in my late twenties, but I learned in university that how you present yourself is so very important to how people react and respect you.

 

I have been following this thread in interest since its inception, and I have to say you do not come across as someone who has very much understanding of how to act in "the real world".These are skills you should probably have acquired at this stage in your life. If your university/college did not teach them to you, you will need to pick them up yourself.

 

It is 2008, and I know it is commonplace to use emoticons and abbreviations and such, but this forum is not digg, they should probably be used with subtlety, pls, ok? Smiley Wink 

 

Final words: Ray has way way more patience than I do......

 

<rant off>

Message Edited by nrp on 09-23-2008 02:58 PM
Message 350 of 401
(1,189 Views)