08-14-2009 02:42 AM
Hi Everyone,
I scripted some code in Matlab and used it with LABVIEW using the M-script support. But, I want to perform the same task using labview.
The code has been attached. Please help me out with the array part. I can't figure out how to modify the elements of the array. Easily and hence use it for switching diodes on and off as it switches between "1" and "0".
thank u!!
Solved! Go to Solution.
08-14-2009 04:36 AM
08-14-2009 07:59 AM
I want to maintain the value of a variable at a certain arbitrary value that can be modified. (which i am setting using knob control).
If the value falls below the required value, Diodes light up in proportion to the difference in the values vice vera if the value exceeds the required level.
Every diode is assesed as an additional 50 input to the value of variable.
I am also attaching a snap of the VI, I prepared. Please have a look.
I hope the problem is now clear to you.
08-14-2009 08:29 AM - edited 08-14-2009 08:29 AM
08-14-2009 09:51 AM
Thank you Alain,
And the pic that I have attached is the MATLAB version of the application.
Your application is a very close solution. My aim is to activate all LEDs upto the nth level rather than activating only the nth LED. But your application shall be a great help. I have also attached a pic of the same for demonstration.
I think a loop from '0' to the required index value shall be able to do it. What do u say??
08-14-2009 09:56 AM
hi Muks,
The pic has been attached with the exact prob statement. Please have a review.
08-14-2009 10:36 AM
08-14-2009 10:49 AM
Hi Alain,
Thanks a LOT!!
Your Solution was really smart. Loop as i trying might have got clumsier!
I need to know something from the solution u sent. What exactly did u do with the LEDs. Made an array or something? I am a newbie.
08-14-2009 10:59 AM
Yes, it's an array of led's but I hide the "Index Display" so it doesn't look like an array at first sight 🙂
If you need to spread the led's across the font panel like in your example, I have to think of something else
08-14-2009 11:09 AM