LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run some part at only startup(Initialisation)?

Dear All,
                  I want to send the query only once when i start the program not continuosly during the programme, so what i should ,can anybody suggest me, please!!!!!!!!!!!!!
 
Thanks in Advance
Rujuta
0 Kudos
Message 1 of 7
(2,852 Views)

Hi

There is many ways to do that.
You can use Sequence Structure and in the first sequence you can put your initalization. In the second you can put a While Loop with your main program.

You can also use State Machine Structure from template which is included with LabVIEW. One of your state colud be INIT, so then you can run i on start.

As I wrote there is many ways...

Regards
bogdani

0 Kudos
Message 2 of 7
(2,850 Views)

Hi,

If i understood your query right,

This is what you meant: In a continous process(loop) you want a part of code to execute(sending a query) only once (in the very first iteration).

If I have understood your query right, any of these attached VI should do the job

Only on the first iteration(loop zero), the true case will execute and a pop up message will come. ( first loop_1.vi)

For all successive iterations, the code inside the true case will not execute.

It this is not what you are looking for, do post your question in a bit more detail.

Regards

Dev

 

 

 

Message Edited by devchander on 12-26-2005 05:07 AM

Download All
0 Kudos
Message 3 of 7
(2,849 Views)

Hiiii Dev,

                    Ya, This is what i want, thanks for the solution, sorry i am posting no of questions, but i am still new in Labview and doesnt execute # of projects in the LabVIEW, thats why!!!!!

Thank u,

Rujuta

0 Kudos
Message 4 of 7
(2,843 Views)

Hi Rujuta,

This forums is intended for aiding Labview learners/Users.

So, feel no hesitance in posting your queries.

Glad to have been of assistance.

All the best for leaning LabVIEW!

Namaste,

Dev

 

0 Kudos
Message 5 of 7
(2,840 Views)

Hii, Dev,

         Is there any other methos to do this action? coz i think this might create a problem in my vi, in the initialisation, i am taking the data from serial port and in all other iterations, updating this array, but it isn't updating, instead it is holding the data which came in the first(inisialisation) iteration.

Thank you,

Rujuta

0 Kudos
Message 6 of 7
(2,814 Views)
Hi Rujuta,
 
Guess i have answered this query of yours here:  http://forums.ni.com/ni/board/message?board.id=170&message.id=158449
 
Regards
Dev
 
0 Kudos
Message 7 of 7
(2,811 Views)