Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

led matrix control by using pwm

Solved!
Go to solution

Dear Joseph,

This program work.

Thanks for kind help,

Can I store different duty cycle value for each digital output channel.

I will do few modifications in this program for actual purpose,

I gives you feed back again.

Regards,

Rajesh

 

0 Kudos
Message 11 of 24
(2,680 Views)

Dear Joseph,

This program work.

Thanks for kind help,

Can I store different duty cycle value for each digital output channel.

I will do few modifications in this program for actual purpose,

I gives you feed back again.

Regards,

Rajesh

0 Kudos
Message 12 of 24
(2,679 Views)

Hi Rajesh,

 

I'm glad it works.

This was only meant as a starting point to give you the general idea. You can obviously adapt to have a different duty cycle for each channel. I would suggest simply creating an array with all the various duty cycles and to only use the one corresponding to the current channel being written to.

 

Good luck! 

0 Kudos
Message 13 of 24
(2,676 Views)

Dear ,

 

it is very interesting discussion. I have similar idea to do. But I use Labview 8.2.

Joseph, can you please post the vi with Labview 8 version?

 

Thanks.

Shin'ichi

0 Kudos
Message 14 of 24
(2,586 Views)

Hi Shin'ichi,

 

here is the LV8.2 version.

 

Regards,

0 Kudos
Message 15 of 24
(2,573 Views)
Great! Thank you very much.
0 Kudos
Message 16 of 24
(2,557 Views)

Dear Joseph, 

This my program working very accurately, but during measurement i am facing one problem, that suppose i wants to start measurement from forth LED(forth LED array). but for this i need to run all program and wait till the signal from forth LED come.
many time i wants to start measurement from middle any LED(say LED11) not from the first LED (means i don't want to measure signal from first 10 LED, for this i have to put zero duty cycle for all previous 10 LED and start measurement from LED 11 and its very time consuming)


for this i tried to make changes in program like,
suppose i click on any LED(may 1, 2 3,...) on the screen then these LED will be continuously ON(for given duty cycle) till next command/execution or when i click again on the same LED it will be OFF.
Each LED will be work independently to each other.

please Joseph can you help me to resolve this problem

0 Kudos
Message 17 of 24
(2,243 Views)

Hey,

 

have you tried changing the first state of the state machine to a control on the front panel, so that before starting you can choose which state will execute first?

 

To do this, right-click on the enum before the state-machine, and select 'change to control'.

Then before starting the program, choose the first line or column and all the ones before that will be skipped.

 

I hope this helps.

Regards,

0 Kudos
Message 18 of 24
(2,214 Views)

Dear Joseph,

I did as per your suggestions but not work, it shows following block diagram error,

"You have connected an indicator to an input of Sub Vi. Change the indicator to a control"

Error details are

"A wire must be connected to one and only one data source, such as a control's terminal or a function output. This wire is connected to two data sinks but zero sources. You must add a source, perhaps by changing an indicator to a control."

 Best Regards,

Rajesh

0 Kudos
Message 19 of 24
(2,207 Views)

Hi,

 

please change the indicator you created to a control as the message states. You have two outputs connected together.

 

Regards,

0 Kudos
Message 20 of 24
(2,205 Views)