Jump to content

PPI


Recommended Posts

QUOTE(martin@aerodynamics @ Mar 9 2007, 07:45 AM)

here is an example code...

As far as I can see (and it's no simple task understanding code, where all comments and text is in french, as a non-french speaking person) this only loads a nice looking radarpicture from a jpg and updates shippositions (?) on top of the loaded picture.

So it doesn't really create the radar picture.

-Mikkel

Link to comment

QUOTE(Mikkel @ Mar 9 2007, 09:29 AM)

As far as I can see (and it's no simple task understanding code, where all comments and text is in french, as a non-french speaking person) this only loads a nice looking radarpicture from a jpg and updates shippositions (?) on top of the loaded picture.

So it doesn't really create the radar picture.

-Mikkel

I just googelt the result...

Link to comment

Open the Find Examples dialog and search for Polar Plot Demo.vi

You'll have to do a little work to modify it and make a customized version of the Polar VI inside, but it has the basics of drawing the polar grid. You can then use the polar <-> rectangular VIs for coordinate conversion and draw a line from the center to the perimeter of the graph, sweep that around. If you wanted to get a little fancier and simulate actual data you'd put down an array of color points/pixels along the current trace line. Just before you write that line you take the current Picture and "fade" it very incrementally by lightening (or darkening more likely) the whole picture in the direction of your background color. Remember to refresh from the basic polar grid/background, otherwise, if you simply keep adding to the Picture control it gets bloated data wise.

Link to comment

OK thank you all for your replies , i tried to construct a simple radar screen.

but now the needle scan a green circle which is generated form the Indicator.

How can i add more than One circle and details to have more realistic view

also i need to add a scale on the screen.

if there anyway to draw the Picture in any other Program like Photoshop then insert it as a Ground instead of green circle of the indicator ....

please try to elaborate how can i insert an external Pic.

Thnx in advance

Sherif

Link to comment

QUOTE(Sherif @ Mar 11 2007, 05:34 PM)

please try to elaborate how can i insert an external Pic.

You can use the 'Read JPG File.vi'* (or 'Read PNG File.vi'*), and convert the image data to a picture with the 'Draw Flattened Pixmap.vi'.

-Mikkel :)

* Note: The helpfile says that these vis are missing in the Base Package of LabVIEW.

Link to comment
  • 2 weeks later...
  • 2 months later...

Hello everybody

I'm building a radar Screen using LabView 8.0 all i could do till now is to do a green circle with centered needle scanning i need now to add a picture as a Background to this circle in order to have more realistic view.

I tried to insert a picture using (READ JPEG file.vi) but each time i do run for my project it asks me to specify the location of the pic. and when i specify where nothing shows up and simulation not completed. i don't know where's the problem.

i need to insert a radar screen Pic. in front of the green circle and make it transperent.

if anyone could tell me how or do it for me , i'd be greatful

Here's the file taking Sample Period 0.01 with any RPM (Revolution per minuite) you want.

Thanks in advance.

Link to comment

QUOTE(Sherif @ Jun 12 2007, 12:35 PM)

Hello everybody

I'm building a radar Screen using LabView 8.0 all i could do till now is to do a green circle with centered needle scanning i need now to add a picture as a Background to this circle in order to have more realistic view.

I tried to insert a picture using (READ JPEG file.vi) but each time i do run for my project it asks me to specify the location of the pic. and when i specify where nothing shows up and simulation not completed. i don't know where's the problem.

i need to insert a radar screen Pic. in front of the green circle and make it transperent.

if anyone could tell me how or do it for me , i'd be greatful

Here's the file taking Sample Period 0.01 with any RPM (Revolution per minuite) you want.

Thanks in advance.

Hi Sherif,

On my system the JGP file was loaded correctly, but your problem, in my opinion, is in the way you use the load JPG vi...

In your code, you try to load a new image every time the loop run!! Try to place the load image code outside the loop so it would be executed once at the beginning of the program or insert this code into a case structure that execute only if the interaction counter is 0...

Link to comment

Thank you osvaldo for your fast response.

and for you ohiofudu for the time you spent. but i want to ask you wt does the 'Signalverlaufsdiagramm' displays ?!

another Question ....

After inserting the Pic. successfully How can i make it transperent infront of the green circle OR Vice versa ?

Or do you know how can i add grids and scales for raduis and distance on this green circle ;)

Thank you so much

Link to comment

OK ohiofudu thank you but i want to add the pic. to use it in the radar screen. not just to display it so i need to make it transperent to the green circle.

you know that i already made a target on the screen so to detect it we have to specify it's angle and distance [polar representation] ... as you can see in my code the green circle provides the angle in radians and in degree so what about the Range (distance) ... that's why i want to add pic. or even grid to specify the range of the target.

Anyway thank you for your efforts ... but still no solution to my problem so if can anyone help i'd be greatfull

Thank you all

Sherif (",)

Link to comment

OK thank you all .. The problem is solved now ... i tried [creat mask.vi] you told me about BEN thank you, but finally i made it by drawing the Radar screen in Office with all details required and then copy and paste my drawing inside LabView front panel directly, after then you are able to scale it to fit the area required to be covered. this Method is too fast and simple ... you can also change the appearence of your knobs and sliders or whatever you want ... hope this can help anyone ....

Best regards

Sherif Farouk (",)

Link to comment

QUOTE(Sherif @ Jun 15 2007, 08:35 AM)

OK thank you all .. The problem is solved now ... i tried [creat mask.vi] you told me about BEN thank you, but finally i made it by drawing the Radar screen in Office with all details required and then copy and paste my drawing inside LabView front panel directly, after then you are able to scale it to fit the area required to be covered. this Method is too fast and simple ... you can also change the appearence of your knobs and sliders or whatever you want ... hope this can help anyone ....

Best regards

Sherif Farouk (",)

Expediency is good!

Unfortunately, I was not told about "Create Mask.VI" and I wrote my own version before I stumbled across that one.

Does anyone (PJM, Captain) have any idea why the mask has to have an even number of bytes for each row of pixels.

Ben

Link to comment

well ohiofudu the picture is inserted successfully ;) but the problem is when it became transperent . when it becomes transperent you can see the needle scanning the circles but you can't see the Moving targets i don't know why ....??!!

but all i know is that the targets are more important than the needle :D.

Anyway the soln. i used is applicable and so simple as you can draw the screen with all details you want evenif you insert a pic. form file into office then edit it and control the transperency Percentage then copy the final PIC. and Paste it inside you front panel.

But for sure if you have any other solutions or ideas ... please share them with us so that we can all benefit.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.