Search the Community
Showing results for tags 'loops'.
Found 3 results
I want to implement a function as follows: first set the Max and Min voltage values, then set the number of steps in the middle of the Max and Min steps and the dwell time of each step, and finally set the total number of cycles The problem is: the value of each step must be output separately, there is a problem here, please help, thank you!
1: How to get last index, not last element, but last index number of an 2d array? Also 2: say 2d array has contents elephant crow dog goat giraffe eagle cat fly ant pig horse bee How to get that the bee is the 12th or 11th index in the array? (11 if you count elephant as zero index, 12 if you count elephant as first index), meaning I want the index number 11 or 12, not "bee"
I'm trying to make simple program for acquisition from camera. I'm using framegrabber and LabView wrapper delivered by its manufacturer. 1. In first version (minimal_camera_code.vi) grabbing from camera time is very high and is not constant (camera is set to constant frame rate = 5ms, in framegrabber manufacturer software acquisition goes with 200 fps) After adding delay (fig. 2b) it is better but after some frames, acquisition time is not constant (fig. 2a) 2. In second version (minimal_camera_code2.vi) grabbing time is constant and is exacly 1ms after adding "Wait until next multiple ms" = 25ms (adding shorter delay gives effects similar to described in point 1). I think that problems are connected with loops and are connected with misunderstanding of this code execution. What are your suggestions for implementing this piece of code? I want grabbing frames with constant frame rate. minimal_camera_code.vi minimal_camera_code2.vi