LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

help simplifying function


darnell wrote:

  it does make sense to  leave it this way. the way i had it, seem like i was double checking for some reason which is not necessary.

 thanks.

 

    switch(status_check)                                              
       {                                                                 
                                                                         
           case -3:                                                      
                                                                             
                                                                     
                      DisplayRS232Error (status_check);                  
                      break;                                             
                }         

 

and to end my program i would just put exit(0); in the DisplayRS232Error (status_check); ? correct?

 

that way my program would end after a error.

 

                                                          


 

Well, no: a program should take care of clearing all allocated resources, so you should proceed up the code end where a CloseCom () function should be present (which BTW it isn't at present). The code I posted some message earlier does this (apart closing the port, which I forgot to add).


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 41 of 49
(1,559 Views)
what is BTW ?
0 Kudos
Message 42 of 49
(1,553 Views)

OMG Smiley Surprised Smiley Surprised

 

It's an acronym for By The Way.

FYI, here you can find a list of common acronyms...

HTH



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 43 of 49
(1,548 Views)

darnell,

 

Are you aware that people responding to your posts are not posting "dummy code" or "garbage code".

They all send real, ready-to-use code. But you are not..

 

You keep sending some code that you do not even check before clicking "Post" button below.

How could you think that people helping you deserve such careless replies !?

 

They are trying to help you, but you keep making it more and more difficult 😞

 

Just show some respect. I do not mean kudos.

Show that you care about people's efforts by applying what they have suggested.

S. Eren BALCI
IMESTEK
0 Kudos
Message 44 of 49
(1,522 Views)

sorry that you are wrong, i did everything they told me to do. what i think is happening when i do it or consider doing it, i dont let you know right off hand that i did

 

it. because im at work all day, and then by the time i respond ,10 hours have pass by, and then  i go check my email and then i get a response back that i have already 

 

done. its just our timing off. but yes i have encorporated majority of your ideals.

0 Kudos
Message 45 of 49
(1,516 Views)
OK darnell, so we're expecting that your next post in this thread (if there will be) will integrate all suggestions that we have proposed you in our answers, or at least clears all errors we have pointed you to.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 46 of 49
(1,504 Views)

darnell,

 

If you sincerely think I am wrong, please to go to page-1 of this thread and read all the messages one after other, 1-by-1, carefully.

Then, re-consider what you have just written.

 

After you finished reading, can you still explain all this garbage with just time difference?

 

Why do you think your (and only your) threads take around 40-50 posts and still remain unsolved?

S. Eren BALCI
IMESTEK
0 Kudos
Message 47 of 49
(1,501 Views)

I never thought I'd hear myself say this, but maybe it would be a good idea to send darnell on a LabView course Smiley Very Happy

 

I wonder how he'd get on with their forum members... Smiley Surprised

 

JR

Message 48 of 49
(1,498 Views)

you guys are really funny, but anyway, im off that subject, my work is done, i have fixed all my problems .

 

 

 

thanks roberto for your help. trust and believe that everything you have suggested i have done 75%.  

 

 

so im not resppnding to nothing old. thanks again.   Again i repeat my issue are solve.

0 Kudos
Message 49 of 49
(1,458 Views)