LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Faster running time or making our Vi faster

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.

http://forums.ni.com/t5/LabVIEW/LabView-using-Visa-and-USB-interface-to-program-lighs/m-p/2842422#U2...

 

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.

 

 

 

0 Kudos
Message 1 of 4
(2,222 Views)

Are you using the "Run continously" mode to run the code?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 4
(2,216 Views)

YES OF COURSE,  we are running our VI continously.

0 Kudos
Message 3 of 4
(2,213 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 4
(2,205 Views)