PWM Signal with Labview and Arduino

You can post your problem related to Arduino Projects here. We will try our best to help you out.
Post Reply
Vazquez
Posts: 30
Joined: Mon Mar 06, 2017 8:50 am

PWM Signal with Labview and Arduino

Post by Vazquez » Mon Mar 06, 2017 10:03 am

I am trying to generate a PWM signal with variable frequency using Labview and an Arduino UNO.
When using the PWM write pin VI, I cannot adjust the frequency.
When using a Tone VI, I cannot adjust the duty cycle (set 50%).
When using the Digital Write pin with a signal generator in LabView, it appears that the Arduino cannot read the signal I am generating.
My question is: Is there a way to create a PWM signal with Arduino and Labview where I can control all of these features?
Note: I realize that I can edit the arduino LVIFA code to change the frequency, but that isn't ideal because I cannot change it with a control, right?
Thanks for the help and please have some grace due to the fact that I am new to this stuff.

Junaid_Shahid
Posts: 110
Joined: Tue Feb 14, 2017 9:00 am

Re: PWM Signal with Labview and Arduino

Post by Junaid_Shahid » Mon Mar 06, 2017 10:03 am

Vazquez wrote:
Mon Mar 06, 2017 10:03 am
I am trying to generate a PWM signal with variable frequency using Labview and an Arduino UNO.
When using the PWM write pin VI, I cannot adjust the frequency.
When using a Tone VI, I cannot adjust the duty cycle (set 50%).
When using the Digital Write pin with a signal generator in LabView, it appears that the Arduino cannot read the signal I am generating.
My question is: Is there a way to create a PWM signal with Arduino and Labview where I can control all of these features?
Note: I realize that I can edit the arduino LVIFA code to change the frequency, but that isn't ideal because I cannot change it with a control, right?
Thanks for the help and please have some grace due to the fact that I am new to this stuff.
I am using the "PWM Write Pin" vi to control 5 SSRs running large 240V loads via an Uno. This vi worked perfect out of the box for me. Sounds like you have an issue with your vi, I would check to make sure that you are using one of the PWM pins (see your board for what pins support PWM) and also check that you are passing what is expected for duty cycle to the PWM Write Pin VI. It is expecting 0-255 not 0 to 100.
Cheers :
HOW TO USE ARDUINO PWM PINS

Post Reply