Jump to content

Trin

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by Trin

  1. Look at the window at the place where you are. Remember the direction. Now stand on your head and look at the same direction. What is the difference between these views? The "Up direction"! smile.gif

    great example for understanding, well, i need to do more Yoga in order to stand on my headrolleyes.gif now i can work on this method, hopefully it will work

  2. "Setup Camera" is a method (by means of Invoke Node) of 3D Picture Control. It sets position of camera and direction of view, so that you may make buttons for moving camera around your object. Normally it can be done with setting proper camera mode (spherical, flying, etc.) and rotating scene with mouse without any additional coding, but it requires using modifier keys or middle mouse button (so I guess it's limited for touch panel to rotating which is realized with LMB).

    Thanks for the idea, i am trying to use the "Setup Camera" method, but i really can't understand what is the functionality of Up direction. Any Idea?

  3. You may use "Setup Camera" method of 3D Picture Control in conjunction with respective buttons for scrolling and zooming. Or alternatively buttons for switching between zoom/pan/any_other_functionality and Mouse Down and Mouse Up events, but I don't know whether these events work with touch panel.

    Thanks vugie for replying this post. I didnt really understand by "Set up camera method" :( can you give me an example when it is possible for you.

    i dont think touch panel will be a matter of problem.

    have a nice weekend

  4. Hi everyone,

    i want to visualize a 3d form on a 3D picture control through a HMI panel, as i have no peripheral devices, i need to do zooming and scrolling manully through touch panel, thus i need some coding to do that.

    Right now i can mark points on my model , so i want to know if there is any sample VI that i can get some ideas.

    Thanks,

  5. Hi, this already exists in LabVIEW, just choose the appropriate zooming tool, see screenshot...

    sry i think that was my mistake that i didnt write what exactly i need.

    I am using 3d graph, and i want to zoom in when i mark a point on my 3d graph, because i am going to run my VI on a HMI touch screen panel, and i dont have a mouse either keyboard, thus i need to do this somehow programable.

    so what i need is a property or methode to select and zoomsmile.gif

    still any idea, that makes me really happy to hear any idea

  6. Hi Lavas,

    i need to zoom on specific mark on my graph, the exact feature that i need is, when i click a point on graph the area near to that point be somehow zoom in or zoom out.

    i found this property ViewDistance, but it will zoom in the whole graph not a pointed one.

    does anyone has an idea about it?Really, any idea can be useful.

    Thanks,

    Trin

  7. Hi,

    i want to determine the norm vector on a 3D graph, i have x y z position of a point on 3D coord, and now i want to determine either the Euler angle or a norm vector on that surface i need to know the direction of the point, i checked for the Euler angle and i realised that it need a cosine direction matrix, then its going to be somehow complicated to calculate the cosine direction matrix and then find the euler angle. so i just want to know if anyone has an idea or some hints to give me some idea of how i should processed.

  8. Clean-up the diagram and add some comments so I don't have to work too hard to help.

    Wire up your error clusters to makes ure there aren't obvious errors.

    I never tried adding plots in parallel (always do them in seq).

    Toss or include that sub-VI so we can try running it.

    Ben

    Hi Ben,

    thanks for your reply.I tried to clean it up as you said, but i should say i am really fresh with LabView.For creating the wave form i am using one of LabView's own example, i attach it as well.

    as you can see when by clicking on the surface, the position's indicator shows one coord before, i think i need a mouse up event as well, but then i also have some problems with redrawing the plot.

    again thanks for your help.

    change read xyz.vi

    3dgraph.llb

  9. Starting at reply #7 in this thread on the NI site

    http://forums.ni.com...=144155#M144155

    you will find example code that demonstrates most of the functionality in the CW 3d graphs. Please read those posts and try out the code I posted.

    It sounds like you are not redrawing the plot after you add the new points.

    Ben

    Hi Ben,

    thanks for your reply, i examined the code that you had posted on that thread, and i tried to write this VI based on that code. but still i have got problems. i am trying to add the plot to my graph so i can see the marked points.I would appreciate any kind of suggestion since i am really stucked on this:)

    change read xyz.vi

  10. Hi All,

    I want to write a program which plots data on a surface graph then

    allows the user to click on the graph and "mark" points on the plot. The

    program should change the color of the "marked" points on the graph.

    I wrote the attached code which uses "event structure" and cursors to do

    the job. I used cursor to read the X,Y,Z position of the clicked point on

    the plot and store them in arrays. These arrays then were feed into a

    new plot added to the graph using CWPlots3D.Add() method. However, my

    code does not draw the second plot (which would show marked points in

    green) nor it does not get the marked points coordination correctly. I

    appreciate your help to correct the code.

    Thank you

  11. hmm, also a good idea, but i was wondering, if it is possible to get the XYZ coord from the ActiveX. i mean why converting the pixels to coord (because what the event gives us is a coord) instead, find a way that getting the XYZ values from a point that cursor pointing. is it also possible?

  12. Hi Mikael,

    thx for your quick reply. still i have some problems,based on my understanding, the 2D coords that this vi shows is the numbers of pixels, so does it mean that i nead to convert pixels to coord,and then use coords?because now it does not mark the point that i click. or do i need an event handler to return the coord of mouse?

  13. Hi everyone,

    i draw a 3D mesh graph and i want to show it on the NI HMI panel, the problem is that whenever someone touch the panel some points should be mark on my graph, it means that i should get the x y coordination from the hand and map it on the 3D graph, as i am somehow fresh with labview i dont have a good prespective towards what i should do, i examined some codes but still would be nice to get some suggestation from you guys.

    Cheers,

    Trin

×
×
  • Create New...

Important Information

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