Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

sequential execution

Dear All,
 
i have made a program in which I draw the pattern and after pressing start button the execution of hardware starts as per the pattern drawn.Also for the end users part i have given them Load and save buttons where they can save patterns and load them and execute whenever required.
 
Now what I want to do is if they want to execute three patterns in sequence I should be able to load them and the 2nd pattern should start only after the first is executed completely. i.e the patterns should be stacked  in three and should come one by one on completion of its previous counterpart.
 
Is their any solution on this .if yes then their is nothing like it.
 
Regards
Manish Karnik.
Cruiser Controls
Mumbai,India.  
0 Kudos
Message 1 of 11
(4,854 Views)
Manish,

I have read your post thoroughly but I don't understand exactly where there is a problem. The application that you describe could be programmed straight forward. So is there anything specific you are looking for? E. g. do you need to blend the sequences or do you want to use multiple onboard buffers for storing contouring datas and switch between the buffers?
These are just some ideas that come off the top of my head.

Best regards,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 11
(4,845 Views)

Jochen,

I think I am unable to make you all understand what my need is .

 

I have for sake of argument 10 programs saved.Now out of 10 pgms i want to execute 3 pgms sequentially.for eg I want to execute 2,4,7.Now what I want is to load all the threee program in one take.aand when i start the button the pgm no2 should execute. on completion of pgmno2 pgm no 4 should start and then pgm no7 should start.

At present I am only able to load one pgm at a time.on completion of this pgm I have to again load the second pgm and so on.

 

I think this makes my question cleaar toyou all.Is their any solution on this

0 Kudos
Message 3 of 11
(4,833 Views)
Manesh,

I still don't understand exactly what you mean with "program". Is this an executable (*.exe), a LabVIEW VI or a sequence of moves?
To be able to proceed I will make some assumptions:
  1. A program is a sequence of moves that are stored on the harddisc.
  2. Your application is written in LabVIEW
In this case you could load the parameters for all of your programs and use a listbox that displays the available program names (and maybe a description). The user could select the programs he wants to run, add them to the move sequence and then run all selected programs.

I have attached a LabVIEW example that demos a basic framework for such kind of application.

I hope that helps,

Jochen



Message Edited by Jochen on 01-05-2007 09:35 AM

Download All
0 Kudos
Message 4 of 11
(4,831 Views)

Hi Jochen,

I was out of town till date.today I saw the Move sequence .vi which you have sent.But can you do me a favour.I am still using Labview 7.1 and unable to open the vi you have sent.Can you sent it in the lower version, i.e Labview 7.1.I would really appreciate if you can do me this favour.

Thanks any way.

 

regards

Manish Karnik

Application Engineer

Mumbai, India. 

0 Kudos
Message 5 of 11
(4,803 Views)
0 Kudos
Message 6 of 11
(4,799 Views)
Thanks Jochen.
 
I have one doubt.Can i relate it with .txt file.
Please let me know.
 
regards
Manish KArnik
Application Engineer
Mumbai, India
0 Kudos
Message 7 of 11
(4,786 Views)
Sure. Why not? This is just LabVIEW programming. But maybe a text file is a bit too complicated for parsing the data. Instead you could store your move constraints to a binary file using an array of clusters that contain all the information for your moves. When you read this file again you could simply use "index array" and "unbundle by name" to retrieve the data.

Jochen
0 Kudos
Message 8 of 11
(4,783 Views)

Hi Jochen,

As per your guiding i tried out to write to a binary file and call when required by indexing array and unbundling by name.But I have for sake of argument 10 binary files and each binary file has around 1000 moves.And if I want sequence of moves of Binary file No 1 5 and 9resp.How do I proceed.And also alll the move constraints are 2d arrays.

Please guide me.

 

Thxs & Rgds

Manish Karnik

Application engineer

Mumbai, India.

 

0 Kudos
Message 9 of 11
(4,765 Views)
Manish,

I'm sorry but I can't go any further with this thread as I can't guide you through a complete application development via the forums. If you need more in-depth consulting or general help with LabVIEW programming please contact your local NI branch which should be able to offer trainings courses and startup assistance.

Best regards,

Jochen
0 Kudos
Message 10 of 11
(4,761 Views)