LabVIEW

cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

Homming Stepper Motor before Main Loop

Hi,

I am building  2 axis drive using stepper motors. My code runs good in Arduino but I want to use Elvis and Labview, but I do not know how can I implement my arduino code to work same in Labview.

I want to do initialization (GO Home) before main loop starts.Here is My Code Example:

***************************************************************************************************

If(RUN PRESSED)

{

     if (HOME PRESSED)

        {
           while (home_switch)

               {

                   // Do this until the switch is activated
              }

           while (!(home_switch))

             {

                 // Do this until the switch is not activated
             }

        }

void loop()
{
   if (Button A Pressed)

      {

         // Do this one Time
      }
} //END MAIN LOOP

**********************************************************************************

Any Help will highly be appreciated

Thanks

0 Kudos
Message 1 of 8
(2,804 Views)

@sufi779658 wrote:

Hi,

I am building  2 axis drive using stepper motors. My code runs good in Arduino but I want to use Elvis and Labview, but I do not know how can I implement my arduino code to work same in Labview.

I want to do initialization (GO Home) before main loop starts.Here is My Code Example:

***************************************************************************************************

If(RUN PRESSED)

{

     if (HOME PRESSED)

        {
           while (home_switch)

               {

                   // Do this until the switch is activated
              }

           while (!(home_switch))

             {

                 // Do this until the switch is not activated
             }

        }

void loop()
{
   if (Button A Pressed)

      {

         // Do this one Time
      }
} //END MAIN LOOP

**********************************************************************************

Any Help will highly be appreciated

Thanks


 

Since your code works good in Arduino, why don't you post it?


I program in C/C++ for the Arduino Uno quite a bit. I'd like to see what you have done.

 

And why do you feel it necessary to use LabVIEW ?

 

 

.

 

.

0 Kudos
Message 2 of 8
(2,781 Views)

Since your code works good in Arduino, why don't you post it?


I program in C/C++ for the Arduino Uno quite a bit. I'd like to see what you have done.

 

And why do you feel it necessary to use LabVIEW ?

****************************************************************************

I have NI-ELVIS II for data acquisition and I want to use labview for both motion and data acquisition.

0 Kudos
Message 3 of 8
(2,771 Views)

@sufi779658 wrote:

Since your code works good in Arduino, why don't you post it?


I program in C/C++ for the Arduino Uno quite a bit. I'd like to see what you have done.

 

And why do you feel it necessary to use LabVIEW ?

****************************************************************************

I have NI-ELVIS II for data acquisition and I want to use labview for both motion and data acquisition.


So you have no Arduino code?

I figured it as such.

And you want someone to write the LabVIEW code for you, apparently.

 

 

 

0 Kudos
Message 4 of 8
(2,762 Views)

I am not asking to write labview code for me. I have one question, If you want to answer Thanks, otherwise Many thanks.

0 Kudos
Message 5 of 8
(2,757 Views)

@sufi779658 wrote:

I am not asking to write labview code for me. I have one question, If you want to answer Thanks, otherwise Many thanks.


But your 'question' is essentially, "how do you do one thing before another thing?"

I suggest you look at some of the training resources you can find at the top of the front page of the LabVIEW forum.

0 Kudos
Message 6 of 8
(2,743 Views)

@sufi779658 wrote:

I am not asking to write labview code for me. I have one question, If you want to answer Thanks, otherwise Many thanks.


Of course, you were asking for the LabVIEW code to be written for you.

 

You provided no LabVIEW VI of your own.

You provided no Arduino code of your own.

 

You come empty-handed and expected "help".

 

Do some work of your own before you ask for "help"; otherwise, you are asking for code to be written for you for free.

 

.

0 Kudos
Message 7 of 8
(2,730 Views)

@Mancho00 wrote:

@sufi779658 wrote:

I am not asking to write labview code for me. I have one question, If you want to answer Thanks, otherwise Many thanks.


But your 'question' is essentially, "how do you do one thing before another thing?"

I suggest you look at some of the training resources you can find at the top of the front page of the LabVIEW forum.


He claims he has Arduino code. Yet has posted nothing.

That tells me he is not telling the truth.

 

.

0 Kudos
Message 8 of 8
(2,729 Views)