Jump to content

superslug

Members
  • Posts

    31
  • Joined

  • Last visited

Posts posted by superslug

  1. Hello all,

    I am working on a project with NI Vision and I need to single out moving traffic, I was wondering if anyone had any idea's they could share. I was thinking of using the new optical flow algorithms in 2010 and looking at the results it seems like the optical flow HS VI would be a good place to start however it's output are "a reference to the image that contains the horizontal component or the magnitude component of the computed velocity at each pixel." and also one for the vertical component. I do not not know what this means though. Are they saying that each pixel value is the velocity value or is the data stored in the image some other way?

    thanks,

    Bernard

  2. I have been meaning to get back to report some progress if anyone was interested for a long time but sadly I didn't really get beyond some early stages testing stuff.

    I got something basically going though. I can't share the code however The basic idea was that I would track the movement of the mouse within windows using an api call I found via google (I have lost the link sorry but I think it was in the ni.com developer section). I used buttons to represent the "tabs" and as the mouse left the button I opened a re-entrant VI and set the FP.Run-Time Posistion value to be slightly offset from the mouse position so that the mouse was over the title bar and used another api call to make a mouse click which would attach the mouse to the window which would be dropped when the mouse was lifted.

    That is as far as I got and I have had to move on so it feels like there are drawbacks that remain unexplored but it is an idea I might go back to in the future, especially with dynamically created controls in LV2010.

  3. Hi,

    I have done something kind of similar. We used sub-panels and dynamically called subVIs that are stuck into the sub-panels. This allow for some of the subVIs to be "popped-up" in a new window, after removing it from the sub-panel. However, we used buttons, instead of tabs for the navigation.

    That sounds really cool. I hope that you post your progress on this.

    EDIT: There was some cool examples in the recent Example Code Contest put on by NI. Specifically the cool UI examples. You may want to check some of them out.

    That sounds like it will be pretty similar to what we are going for. I have done some work with subpanels and was thinking that I would use them.

    When changing "tabs" in the main screen was that a matter of loading new VIs into the subpanel? What was the response time like? The reason I was thinking about a tab was that I thought that response time would be better switching tabs than loading up a new subpanel.

  4. Hello,

    I am looking to create a user interface that has a bunch of tabs that can be opened and closed similar to a web browser. I was thinking maybe we could do it using the visibility settings on pages of a tab control and maybe moving tabs posistioning around. Failing that we could simulate tabs with buttons and changing elements of the interface to show a "tab" based on the buttons. I was wondering if anyone had done this sort of thing in labview before and had any tips.

    The user of the interface will also be able to send the contents of a tab into a new window that will have just what was on that tab in it. I was thinking it would be cool if they could grab the tab and drag it out of the main window and create a new one, has anyone done this sort of thing before?

    thanks

    Bernard

  5. iHi,

    That should work, as long as only one process is "dequeuing." An "user event" may also be useful for this application. This allows the main process to react quickly to both, messages and user interface events, without polling. The choice between a queue, and user even depends upon the function of the main process. (ie. polling, or non-polling)

    Thanks, I am largely just doing proof of concept stuff at the moment but I was thinking that an event case will be running in each of the interfaces, the messages being generated by the event cases. then being processed at a single point

  6. Hello All,

    I am writing an application that will be creating a number of sub interfaces that run separately from the main interface once they have been started. I want to be able to send a message back to the main interface from the sub interfaces and I was thinking I would do this by sending a queue to the sub interfaces so that they could add queue elements and the main interface could de-queue elements. Does anybody know if having multiple threads enqueueing on a single queue causes concurrency issues? The order is not super important so if "n" simultaneous enqueues end up on the queue in a random order it doesn't matter so long as they all get on the queue and there is no change of them overwriting each other.

    thanks,

    Bernard

  7. thanks again, I thought that was probably the case with regard to version changes. Looks like I have some reading ahead of me.

    There is a difference since the object models are not the same, so they would program differently. It's quite similar to the Excel object model, though, so there are more similarities than differences. The Office Spreadsheet control is part of the Office Web Components. That control cannot read/write Excel workbooks (though you can export the contents of the spreadsheet control to an Excel file). Don't ask me why, that's just the way Microsoft designed it. What's it good for? Well, other than presenting a spreadsheet-like control on an application window, I have no idea. If you have to read/write Excel workbooks then you should either invest in the Report Generation Toolkit, or look over the examples that are available on this site as well as in the Excel thread over at the NI site. Please note: DO NOT POST QUESTIONS IN THE EXCEL THREAD. It is meant to be a repository of links only.

    As far as handling the changing of the version of office... no, there's no real good way to handle this. At least none that I have found, though others may have found a suitable solution. Ultimately I believe this is a limitation of ActiveX component "versioning".

  8. Hey everyone

    we are having problems printing using labviews native print with a new printer. It is a canon pixma mx850 and it blue screens whenever we try to print from labview on an xp machine. When we print from our vista computer it is fine. I was wondering if anyone else has come across this sort of thing?

    Sorry if this is in the wrong place but I couldn't see a topic that it really fit into.

    thanks

  9. I am trying to use shard variables with an install.

    my installer includes variable manager and variable engine.

    I have programmatically deployed the library containing the variables using an application invoke node.

    The variables are deploying becuase i can see them with the manager.

    however i am getting error: 1950679035 ni_tagger_lv_write when writing to the variables

    and from the front panel objects i have connected error 0x8ABC001 connecting to: \\My Computer\LibraryName\VarName

  10. I have the following error occuring a few times but not limited to the day I had the problem.

    Service Control Manager:

    The NiRioSvc service terminated with service-specific error 4294967295 (0xFFFFFFFF).

    Doesn't mean much to me though...

    QUOTE(jjuhasz @ Apr 13 2007, 02:03 AM)

    If you're using XP, the simplest way is Control Panel >> Performance and Maintenance >> Administrative Tools >> Event Viewer

    Look at the "System" and "Application" logs and see if there's anything from tagsrv.exe, Shared Variable Engine, or the Service Control Manager.

  11. I am getting the following error using shared variables.

    -1950679035

    LabVIEW: (Hex 0x8BBB0005) Unable to locate variable in the Shared Variable Engine. Deployment of this variable may have failed.

    However the message box that comes up on loading confirms that the variable has been deployed. Has anyone come accross this before and could perhaps tell me what I am doing wrong?

    thanks

  12. QUOTE(REM1 @ Mar 29 2007, 07:21 AM)

    The front panel connection mechanism does not require the use of the datasocket server. You can make a front panel connection to a shared variable in exactly the same way. Furthermore, the correction mechanism is the same in each case. The FPDS connection will subscribe to updates from the respective server and will be modified only when the value changes rather than constantly polling. So, up to this point, there is no difference between the two. Where the difference comes in is the server and the transport mechanism. PSP, the transport mechanism for the shared variable, is faster than DSTP, the transport mechanism for the datasocket server. It is also the case the the server for shared variables is already running on your system whereas the datasocket server would have to be started adding an additional executable for the OS to deal with. Lastly, the shared variable is the newer of the two technologies meaning that future improvements are more likely to be made there rather than the datasocket server.

    ok, cool. I will look into that.

  13. QUOTE(REM1 @ Mar 28 2007, 05:28 AM)

    Any particular reason for using the datasocket server as opposed to shared variables?

    Being able to plug the datasocket straight into the front panel object was what I wanted. I am updating graphs on the main vi from a sub vi and using the references with property nodes was being processor intensive so my boss suggested that I use datasockets to see if that could reduce the load on the processor.

    Also I am under the impression that with a datasocket the data posted will only be read once by a particular subscriber and I didn't know whether or not this was the case with shared variables.

×
×
  • Create New...

Important Information

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