Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/02/2010 in all areas

  1. If you want to check out the current list of "in development" ideas, click here: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/idb-p/labviewideas/status-key/indevelopment/tab/most-kudoed This will pull up a list of ideas filtered to those with status set to "In Development". The list is short this year -- please remember what NI folks have said since the NI Week keynote: LV 2011 is going to be a stability and performance focused release. Even though only a few new features are going in, the ones that made the cut are going to put a smile on a few faces. I know that I'm already enjoying that on my development box I can -- wait for it -- save and then undo! Applause for the pair of really bright developers who figured out that little trick. Anyway, take a look -- there's something in there for everyone.
    2 points
  2. I'm not going to email you the answer the is a public forum for members to share their knowledge with everyone not to just one person. In any case just use the System Exec.vi function found in the Connectivity >> Libraries & Executables. Pass it the path to a file and it will execute it as if someone double clicked it. Other than that I'd recommend taking some LabVIEW courses, reading some training manuals and looking over the shipped examples that come with LabVIEW. Someone who has done these things should be able to come up with your program in about the time it took for you to ask the question.
    1 point
  3. Or just use the Threshold 1D Array primitive (should be right next to the Interpolate 1D Array) on your array of frequencies. Edit: I might have the signals backwards, but the concept is still the same.
    1 point
  4. I think you need to choose one thing to add and get it working Then move on to the next. At this point in the project I think that you need to take control of the code. I still want to help you but you need to be the one changing the code and making it work. I am able to make and post videos like the one I posted before. Are you able to see the videos? Here is a video of how to create a Radio button for a channel selector. Please create one and add it to your code. http://www.screencas.../t/lJCrAN3B5ksp <object id="scPlayer" class="embeddedObject" width="1028" height="733" type="application/x-shockwave-flash" data="http://content.screencast.com/users/mballa/folders/Helping/media/78933397-426b-45fc-9752-ba67b7c04c7e/jingswfplayer.swf" > <param name="movie" value="http://content.screencast.com/users/mballa/folders/Helping/media/78933397-426b-45fc-9752-ba67b7c04c7e/jingswfplayer.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <param name="flashVars" value="thumb=http://content.screencast.com/users/mballa/folders/Helping/media/78933397-426b-45fc-9752-ba67b7c04c7e/FirstFrame.jpg&containerwidth=1028&containerheight=733&content=http://content.screencast.com/users/mballa/folders/Helping/media/78933397-426b-45fc-9752-ba67b7c04c7e/Creating%20a%20Radio%20Button.swf&blurover=false" /> <param name="allowFullScreen" value="true" /> <param name="scale" value="showall" /> <param name="allowScriptAccess" value="always" /> <param name="base" value="http://content.screencast.com/users/mballa/folders/Helping/media/78933397-426b-45fc-9752-ba67b7c04c7e/" /> Unable to display content. Adobe Flash is required. </object>
    1 point
  5. Hey Guys! Thanks heaps for the testing and feedback, much appreciated. Here are some more of my observations from further testing that tie in with yours - so I think this is starting to make sense! Using a smaller array (1 element instead of 100) as the element of the buffer, the issue went away I also made some changes that sped up the X-Control (e.g. update graph by explicit reference in subVI to implicit reference on facade) which also helped with the above If I smash the X-Control (fast, as per the demo) and hit the stop button, the VI stops but the X-Control continues updating for what can be a while. So yes, I am inclined to believe the data is being queued somewhere -> because it can't keep up, and hence this is the cause of the allocations The concerning thing is: my application (whilst doing other things in parallel) was only updating the X-Control every 1000ms and was still causing a 1-2+MB/s leak! This X-Control could, instead of queuing if it ran late, just ignore data and catch up (given I am not buffering anything inside it) - but that is out of my control. For the design I initially wanted to define the interface as a '2D Array of DBL's' (the buffer). So to allow if I want to user the buffer for something else. Maybe I will have to look at something else. Ideas: I could buffer the data inside the X-Control so the behavior is like a Chart not a Graph - so the interface just becomes a '1D Array of DBL's'? Or I could reference an external buffer (i.e. using a DVR)? - but didn't want to do that. Thoughts? Cheers -JG <edit>Tried toggling Synchronous Display but it did not help the allocations, thanks for suggestion tho</edit>
    1 point
  6. It really does! Last week I was helping a customer to solve speed issue with an X-Control, activating the "synchronous display" option solved the issue.
    1 point
  7. 1 point
  8. Hello JG, This memory leak is really frightening! Using LV2010 gives the same behavior.I've came across memory leaks on XControl. I've pointed issue in the undo/redo mechanism. I've tried to apply workaround used to fixed my issue on your example. It was unsuccessful.I've played few minutes with your example. I've noticed the following (maybe you've already note): Replace "millisecond multiple" constant by a control Execute your code Change the value from 1 to 100 On my PC, when update speed is less than 50, memory increase. When it's more than 50, memory decrease and stay to the same amount. There is something strange, if it was a "simple" memory leak the memory shouldn't decrease. I think we need the lights of NI engineers.
    1 point
  9. He there! Sorry for the trouble, but I have good news This bug (9665: VIPM shows errors when installing a package with read-only files inside) has been fixed in VIPM 2010.0.1. You can find out more info here: http://jki.net/vipm/release-notes Regards, -Jim
    1 point
  10. SO.....Dak, the problem is that it is functionally different. Check out the second video again. If someone made a piece of code that only had String Name case structures for ClassName WaveformChart & WaveformGraph, their code would fail to execute anything if those were the only two cases handled EVEN THOUGH the WaveformGraph case could have handled the XYGraph just fine. Shaun, I agree that having the Class Available in the case selector would be better and maintain the robustness and flexibility of the pattern, but that requires a new type of stacked frame structure in LV to exist outside of a feature request No, I'm saying w/ the design pattern, you don't have to make a special unique case for the XYGraph at all because the cast to WaveformGraph will not fail. But as you've seen, not all common properties in class trees are common Excuse me?? What?? Um, U B mistaken sir. XYGraph is a child of WaveformGraph Thats assuming that you're trying to access properties and methods that exist in all cases for the common ancestor You give me far too much credit sir. Working in the tower has it's perks, but not the midas touch of LV wisdom. Although easy access to the 3rd floor is damn nice. SO.... this gets to the heart of your argument and the weakness in my example. I stand by my example as a good simple case of showing why the string based operation fails and if someone was trying to make some generic code for waveform graphs they would easily miss the XYGraph case and need to go back and re-code BUT!!! Where this code really shines is while doing LVScripting, where you end up with an array of GObject often and need to operate on a variety of types which a common ancestor with the needed functions can not be assumed or found. EXAMPLE: <object id="scPlayer" class="embeddedObject" width="944" height="566" type="application/x-shockwave-flash" data="http://content.screencast.com/users/NJKirchner/folders/Jing/media/4175933d-db01-4105-b527-c9935b5bc59f/jingh264player.swf"> <param name="movie" value="http://content.screencast.com/users/NJKirchner/folders/Jing/media/4175933d-db01-4105-b527-c9935b5bc59f/jingh264player.swf"> <param name="quality" value="high"> <param name="bgcolor" value="#FFFFFF"> <param name="flashVars" value="thumb=http://content.screencast.com/users/NJKirchner/folders/Jing/media/4175933d-db01-4105-b527-c9935b5bc59f/FirstFrame.jpg&containerwidth=944&containerheight=566&content=http://content.screencast.com/users/NJKirchner/folders/Jing/media/4175933d-db01-4105-b527-c9935b5bc59f/2010-09-11_1240.mp4&blurover=false"> <param name="allowFullScreen" value="true"> <param name="scale" value="showall"> <param name="allowScriptAccess" value="always"> <param name="base" value="http://content.screencast.com/users/NJKirchner/folders/Jing/media/4175933d-db01-4105-b527-c9935b5bc59f/"> <video width="944" height="566" controls="controls"> <source src="http://content.screencast.com/users/NJKirchner/folders/Jing/media/4175933d-db01-4105-b527-c9935b5bc59f/2010-09-11_1240.mp4" type="video/mp4;"> Your browser cannot play this video. Learn how to fix this. </video> </object> By all means, keep using the 'Class Name' based selection of your code, but I believe you will find that, although it potentially meets your needs immediately, you have introduced a point of weakness into your code that unnecessarily would need modification to handle cases not originally though of. But why would you?
    1 point
  11. QUOTE (turbophil @ Feb 18 2009, 10:06 AM) I think you are on the right track; using CD is the way to go. Presumably you know you can have some symbols which are for the whole project, and other symbols that are per-target (it depends where you right-click). You may be able to do what you need by putting the symbol only in the RT target, so that whenever you run on the local machine, it will use a different conditional symbol case. If you need more complex behavior than that, I wrote a VI to change the symbols programmatically, which may help you switch back and forth. I was going to put this in the LAVA code repository, but I can't deal with the bureaucracy today, so here it is, attached (labview 8.6.1). Hopefully later I can submit it the right way.
    1 point
×
×
  • Create New...

Important Information

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