06-13-2014 04:15 AM
Hello,
We are communicating with 4 RGB lights using a DMX usb interface and we have attached picture of the Vi in which we are working.Our Vi works as we want (on/off state with different colors) but the problem we have is the time.The running takes a lot of time and the transition from one modé to the other is very slow and not so efficient.
First of all,do you think that using arrays or Visa makes our Vi slower or it doesnt affect so much?
Secondly, is there any way to reduce the time (for example by using another structure or wiring) or it wont make any difference?
Here is the link of our project in order to understand the whole concept.
Images of front panel and blog diagram for the LED1 is attached below (The system works on the same way for the rest of the 3 lights).
Any replies will be helpful.
Thank you in advance.
06-13-2014 04:33 AM
Are you using the "Run continously" mode to run the code?
06-13-2014 04:54 AM
YES OF COURSE, we are running our VI continously.
06-13-2014 05:02 AM
Then you must be using a while loop instead of the Run Continously mode. When you do it this way, you are configuring the serial port everytime which will certainly taken time. Use a while loop, before entering the loop configure the VISA session and then do the operation inside the loop and switch to different modes by using case structure. Take some LabVIEW basic tutorials which will help you to understand how LabVIEW works.