LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User interactivity / pictures

Sorry for the name of the subject but I don't know how to call it...

I use labview 7.0 and I have an optometer (to measurement the luminous flux off single LEDs).
Samples are PCBs with many LEDs (around 20 LEDs).

I have done a data base for each project corresponding to a special PCB.
In my database I have pictures of these PCB.

I wan't to do with labview : First to import the picture of the PCB, and if I have an array of LEDs D1, D2, D3, D4 the program will ask to place a cross corresponding in the correct order D1...D4. on the picture (in fullscreen) at the right place (on each LED).

After, in the test program the program show the picture with only one flashing cross corresponding to the LED I wan't to measure (again in full screen)...

Is it possible? thank you to help me because I really don't know how to do this..
labview 7.0
0 Kudos
Message 1 of 11
(3,554 Views)
Please see attached on how you can load a .jpg file to your FP.
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 2 of 11
(3,546 Views)
Thank you.

But what I need and I don't manage to do is the "interactivity" with the possibility to put for instance 4 crosses for 4 LEDs.. and after we can see the cross corresponding to the LED you want to test
labview 7.0
0 Kudos
Message 3 of 11
(3,541 Views)
Hi, I am not quite sure if I understand your problem faced.

Nevertheless, try work around with attached VI 🙂
Hope it helps, in one way or another.

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 11
(3,529 Views)
Can you post a sample of your code with some notes on what you need to do??
0 Kudos
Message 5 of 11
(3,516 Views)
I understand my VI but for you it will really be like a draft...

What I mean is in two parts:

first part: for the database :
You have a picture with 3 LEDs D1 D2 D3. The VI ask to the user to put a cross on the LED D1 and store coordinates (x1,y1) of this LED D1. After the prog ask to put one cross on D2 (x2,y2) and after D3 (x3,y3).
All cross coordinate must be stored.

Secondly : for the final user:
The program show the picture. It ask first to the user to measure the LED D1 (by flashing the cross (x1,y1)). After this LED tested, the program ask to measure the LED D2 (x2,y2) and after the LED D3 (x3,y3).

DO you understand what I mean?
labview 7.0
0 Kudos
Message 6 of 11
(3,503 Views)
I don't mange to adjust the screen to the size of the picture.
On the Vi I have attached, I put a string on the picture . The size seems to be adjusted "up and down" and not "left and right". Could you explain me why please?
labview 7.0
0 Kudos
Message 7 of 11
(3,460 Views)
The problem is a bug inside the OpenG VI. If you look inside the for loop called Get Decoration Areas, you will see a coercion from I32 to U32. Because your picture control is on the left side of the VI origin, it's negative and the calculation is wrong. You can move the picture control to the positive side and\or add a coercion to I32 to the Width and Height inside the OpenG VI. Note that modifying the OpenG may have some unwanted side effects.

___________________
Try to take over the world!
0 Kudos
Message 8 of 11
(3,456 Views)
When you say "You can move the picture control to the positive side", What does it mean? because when I put a button on the left of the picture (to make the side positive????) there is the same bug.
And for the get decoration areas VI, if I put an absolute value for each value, does it solve the problem?
Is there a reliable solution ?

Message Edited by ramiral on 07-18-2005 05:06 AM

labview 7.0
0 Kudos
Message 9 of 11
(3,450 Views)

The front panel has a point (0,0), which I refered to as the origin. This point is located under your picture, so you can't see it. If you can see the top right part of your picture and you will move your picture about 50 pixels to the left, you can see this point. It looks like a diamond and the lines intersecting there are slightly thicker than the other lines in the grid.

If you place the control to the right and below this point, you will be in the positive part of the panel and the VI will work. As for fixing the VI, you can't use an absolute value, because you need the correct value in order to have the correct numbers for the FP.Origin property. Like I said, I think the solution would be to convert the Width and Height to I32, but this may have side effects I missed.


___________________
Try to take over the world!
Message 10 of 11
(3,442 Views)