ā09-28-2018 08:34 AM
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
ā09-28-2018 11:12 AM - edited ā09-28-2018 11:16 AM
@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 ?
.
.
ā09-28-2018 11:58 AM
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.
ā09-28-2018 12:56 PM
@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.
ā09-28-2018 01:38 PM
I am not asking to write labview code for me. I have one question, If you want to answer Thanks, otherwise Many thanks.
ā09-28-2018 02:53 PM
@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.
ā09-28-2018 04:29 PM
@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.
.
ā09-28-2018 04:31 PM
@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.
.