LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

After getting the PWM sorted i have a problem with changing the duty cycle and getting a change in the PWM it always give an error -50103

After getting the PWM sorted i have a problem with changing the duty cycle and getting a change in the PWM it always give an error 50103.Please find an attached vi.
0 Kudos
Message 1 of 5
(3,255 Views)
Hi there,
 
You seem to be trying to open a new reference to a resource that has already been reserved every time you execute the while loop.
Error -50103 is a resource reserved error. (If you go to Help>>Explain Error and in the dialogue box input the full error, you will get an indication of the problem.)
I would also try highlight execution.
 
I would suggest that you take all of the configuration vi's outside of the while loop.  You only ever need to update the channel names and frequency once.
 
See attached:
 
Hope this helps
 
AdamB
Applications Engineering Team Leader | National Instruments | UK & Ireland
0 Kudos
Message 2 of 5
(3,238 Views)
am still have the problem,i want to change the duty cycle as the vi is running and getting a change with in the PWM
0 Kudos
Message 3 of 5
(3,234 Views)
Hi Kenny,

You need to write both the duty cycle and the frequency each time you update the specs for the pwm. You can't just write to one of these properties.

Regards

Jon B
Applications Engineer
NI UK & Ireland
Message 4 of 5
(3,217 Views)
I was able to tune the duty cycle update to be updated manually.Thanks
0 Kudos
Message 5 of 5
(3,212 Views)