Jump to content

Francois Normandin

Members
  • Posts

    1,209
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Francois Normandin

  1. Hi Jamie, Among other things, I'd suggest initializing a functional global variable with the COM port value you want in your main program, and then access it from your dynamically called VI. You could also use the "Control Value: Set" method (VI Server) but that doesn't scale well since it's a methodcalled by label text... Change the label text in a future version of "Debug_Output_Display.vi" and you break your functionality without any way to trace it with a broken arrow.
  2. Draw a while loop around this one, and voilĂ ! (Source: Associated Press)
  3. And BTW, thanks for your commitment to LAVAcr. A well maintained code rep like this one is absolutely essential to my programming performance.
  4. Use this snippet and you can keep the same grey part by guessing what it is...
  5. Nothing too fancy: I used a standard genetic optimisation algorithm... (I uploaded 5 or 6 images)
  6. A workaround: it seems that any picture that has a width of at least 500 pixels is displayed well.
  7. Not particularly, but I don't usually code much when I see this: UFC... that's lame when Montreal Canadiens are going for the Stanley Cup! Seriously, we only hear about hockey these days...
  8. There's just one way to skin a cat... BAD! (Did I mention I love cats?) We'll continue this offline... probably on a rainy day! BTW, Thanks AQ.
  9. It seems I was shooting a *insert small animal name here* with a bazooka... So Jon's error 1004 (The VI is not in memory) was not related to this?
  10. I think AQ doesn't like us to thinker with the private controls, unless we do it with great care and knowledge that we can screw up big time. I'd recommend the reference method posted above over the named "Open Reference" method, simply because it is universal. The class resides in memory when you create it, whether or not it's saved, so the reference will always work. As for the API, it's missing some bits and pieces, and I'm putting together a better version as we speak. I've had some issues (minor) with building a temporary package, so I have nothing at the moment... I shall try to have it for NI Week. I did think about asking you for collaboration in integrating some methods for icon management, since you seem to have worked a great deal on this. I guess I'll PM you when I'm ready to explore that.... if you don't mind of course!
  11. Hi Jon, You can get it through the class' library children. The type is "Class Private Data" and it's the only child of this type in the library. The other method relies on the path being known, which doesn't exist yet if not saved, or at least, it exists only in a temporary location. As a bonus, you can get it from LVClass API... But here's how to do it without:
  12. I think Ton means that LAVA won't allow embedding a bmp image that resides on the NI Forums, just like we can embed a video from youtube without having to upload the video to LAVA's server.
  13. Like the XNode autogrow function, it's not exposed...
  14. If the separator (space, tab, comma, etc.) is fixed, you can use the primitive "Spreadsheet String to Array" from the string palette.
  15. And here's what I've been playing with over the week-end. <object id="scPlayer" width="1024" height="482"> <param name="movie" value="http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/jingh264player.swf"></param>'>http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/jingh264player.swf"></param> <param name="quality" value="high"></param> <param name="bgcolor" value="#FFFFFF"></param> <param name="flashVars" value="thumb=http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/FirstFrame.jpg&containerwidth=1024&containerheight=482&content=http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/drag_n_drop_icons.mp4"></param> <param name="allowFullScreen" value="true"></param> <param name="scale" value="showall"></param> <param name="allowScriptAccess" value="always"></param> <param name="base" value="http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/"></param>'>http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/"></param> <embed src="http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/jingh264player.swf" quality="high" bgcolor="#FFFFFF" width="1024" height="482" type="application/x-shockwave-flash" allowScriptAccess="always" flashVars="thumb=http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/FirstFrame.jpg&containerwidth=1024&containerheight=482&content=http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/drag_n_drop_icons.mp4" allowFullScreen="true" base="http://content.screencast.com/users/normandinf/folders/Jing/media/5961b00c-fa8b-4d3a-96a9-141f7f42bfdb/" scale="showall"></embed> </object> icons_85.vi (LV8.5, should be linked OK) (BitMan needed ==> install in user.lib)
  16. You're welcome. The icons are available here. It's the Nuvola theme. Free to use, but check out the license especially if you want to use them commercially. It's the base icon theme I've use for UI Tools. (shameless plug) I'd also recommend that you take a look at the Bitmap Manipulation tools from Vugie in the code repository. I use it to manipulate images and keeping transparent background with the least effort on my side.
  17. Here is what I meant. getchangesfromcluster_2.vi (LV 8.6) Hopefully, the linkage to user.lib OpenG is correct.
  18. You can manipulate the picture size with the 2D Picture palette. Make a blank icon with the desired size and then superimpose your icon and text in its center. When you add them to the array of icons, they'll look as if you've got spacing between them. As for the drag n' drop, you can do it but the Icon array doesn't "support" it per se. You can create events to do it but I'm not sure the picture array is the best format suitable for drag and drop. Perhaps there are other ways of storing your icons that would let you do that easier.
  19. I don't know. It works OK for me and I didn't try anything weird. That doesn't mean I haven't screwed up, I'll have to investigate! Perhaps I'll reinstall OpenG. Weirdest (?!?) thing I've done lately was install VIPM 3.0 over a VIPM 2 install. That can't be it. **EDIT** Perhaps that was when I backsaved for 8.5. **RE-EDIT** Yes, that's it. @Angle: replace both missing VI's with the LabVIEW primitives "List Folder" and "Build Path" from the File palette. They'll work in this case. The error came when I backsaved the VI for your version.
  20. In that case, you can use the OpenG Variant palette to get the data you want, "Cluster to Array of VData" in particular. If your cluster's data is all from the same datatype, you can typecast it. If not, then Variant is all you can have.
  21. Hi Thang, I'm not sure I understand... but can't you just take the "Index Array" primitive to extract the cluster from NewVal?
  22. Hi, I'd use the 2D Picture control and play with text positioning. Here's a start. icons.vi (LV 8.5)
  23. I'm waiting to attend your session before I jump on the train... Don't give up yet!
  24. Digital is for two states: ON-OFF (binary) Analog is for signals. Think digital if you want to control a valve or a relay (digital output) or to sense if an on-off state (digital input) like an interlock or a limit switch. Think analog if you want to generate a signal (analog output) or read a sensor (analog input). Now ask yourself what are the sensors and controls you want to activate/read on your tank. Classify them as analog or digital, inputs or outputs. Then see which lines are available on your 6008 to do this. Select one line for each of your inputs/outputs, wire them and use the DAQ assitant to create them in your VI. Of course, look also at the link Minh Pham put in his last reply... good luck
  25. I must be a misfit because I love to touch my food with my hands.
×
×
  • Create New...

Important Information

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