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. Small Bio
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. Small Bio
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.[quote=Vazquez post_id=262 time=1488794584 user_id=95]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.[/quote]
Cheers :