05-19-2011 06:59 AM
Dear all
I want to change the color of tank indicator in labview from green to red as the input signal in simulink crosses some threshold. Actually I am integrating simulink and a labview using NI SIT connection.
Thanks
Muhammad Abul Hasan
Solved! Go to Solution.
05-19-2011 07:04 AM
You can use a property node.
Right click the tank, create, property node, slide colors, all elements.
You can then look at the simulink value and if it is above a certain value, write the appropriate colours to the backgroud/foreground.
Ian
05-19-2011 07:11 AM
Hi,
Is this what you meant? (Check attachment)
Regards,
Nitzz
(Give Kudos to good Answers, Mark as a solution if your problem is Solved)
05-19-2011 07:12 AM
Dear Ian
Thanks for you reply. It works fine only when I run LABVIEW independently but when I integrate with simulink it bypass conditional part in labview.
Muhammad Abul Hasan
05-19-2011 07:19 AM
Dear Nitzz
Thanks for reply. Here it can work fine when you run on labview independently but if you want to provide a signal from a simulink than how can we do?
It is exactly what I want but this should be perform from a simulink signal.
Muhammad Abul Hasan
05-20-2011 06:03 AM
Still I am not able to solve my problem. Please provide me some ideas how to change the tank color in labview with the help of signal from simulink.
Muhammad Abul Hasan
05-20-2011 06:14 AM
Which part can't you do?
Is it getting the signal from simulink, or using that signal to interface with the tank?
(Hopefully it isn't both )
05-20-2011 06:30 AM
Thanks for your reply
In labview it display result only in one color when connecting with a simulink. But I want to change the tank color as it crosses the threshold as I mention previously.
Muhammad Abul Hasan
05-20-2011 06:38 AM
It would help if you posted your code to see what is going wrong (I'll only be able to look at it if you save it for version 8.5)
However, have a look at the attached. Play with the dial - this simulates the simulink data. Then replace the dial with your code that collects data from simulink.
Ian
05-20-2011 07:14 AM
Here is a little more fancy version that allows you to set a few different levels and change color gradually.