LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple case structure with local variables VS PC architecture VS Event structure (Time analysis)

Here is the result of time analysis between a simple program to run a stepper motor based on 3 different methods. I see there is no great time optimization between the first two and also there first method seems to be slighlty faster. 

I believe ( with the help of this forum and other literature sources) that PC should be much a much better method when processing speed and compiler optimization are concerned. Whereas, the 3rd one based on State machine is nearly 50% faster than the first two.

 

Why is this ?

 

 

What could be the possible reason for this kind of results. Is it because the way I programmed is not good and efficient ?? (attached are all the programs)

 

1. Case structure with local variables.

 

 

2. PRODUCER CONSUMER PROGRAM

 

 

3. State machine with Event structure

 

 

PS: ( The time analysis of previous post I made where wrong as the motor ran twice, the above times are the right ones.)

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 1 of 2
(2,142 Views)

This attachement contains all program (names mentioned clearly)

Abhilash S Nair

Research Assistant @ Photonic Devices and Systems lab

[ LabView professional Development System - Version 11.0 - 32-bit ]

LabView Gear:
1. NI PXI-7951R & NI 5761
2. The Imaging Source USB 3.0 monochrome camera with trigger : DMK 23UM021

OPERATING SYSTEM - [ MS windows 7 Home Premium 64-bit SP-1 ]
CPU - [Intel Core i7-2600 CPU @ 3.40Ghz ]
MEMORY - [ 16.0 GB RAM ]
GPU - [ NVIDIA GeForce GT 530 ]
0 Kudos
Message 2 of 2
(2,124 Views)