Jump to content

Ton Plomp

Members
  • Posts

    1,991
  • Joined

  • Last visited

  • Days Won

    38

Everything posted by Ton Plomp

  1. John, too bad you crossposted this on Info-LabVIEW as well... (were Stephen has given a wunderfull response): QUOTE Ton
  2. Hi John, You can set the state of the front panel to hidden, this way it is loaded into memory but not shown! I haven't checked it but it should work. Make you sure you include the FP when building an app. Ton
  3. QUOTE(utaharrow @ Apr 10 2007, 07:31 PM) So does it work? Have you tried other commands? (one on a digital line is easy to verify with a mulit-meter) Ton
  4. QUOTE(Mike Ashe @ Apr 8 2007, 12:42 AM) QUOTE(utaharrow @ Apr 8 2007, 12:09 PM) That happens even if I write the packet using the 16 bit format i.e. 0078 0011 0002 0006 0072 0000. Why use a 16 bit format? just send '7811 0206 7200' The manual (V6) states (p. 8): QUOTE Command Packet: Throughout this manual, references to “command packet†or “Packet†means; the address byte, followed by a pin number and one configuration byte, followed by a number of data bytes (if any) to form a complete command string. Also the $ means hex (weird notation but hey): QUOTE Hexadecimal Base: Hexadecimal number system or “hex†will be used throughout this manual. $ will be used as a prefix to any hex number (i.e. $1F). Sometimes, hex numbers are represented by attaching an h to the end of the hex number (i.e. 01h) or a 0x at the beginning (i.e. 0x2E). If you do not know hex base, you should learn it. You will not be able to do much without this knowledge when dealing with computers. It’s a bit awkward at first since we think in decimals, but like anything else, practice makes perfect. All data sent to Servio must be in binary format. NOT ASCII characters. One reason for this choice was because it’s the quickest. It takes one byte to represent numbers up to 255 decimal ($FF) using RAW binary data as opposed to 3 bytes, using ASCII character strings (2,5,5). By the same token, it takes 2 bytes to represent numbers up to 65535 ($FFFF) with binary as opposed to 5 bytes in ASCII characters (6,5,5,3,5). Also have a look at the Pacing (in between those definitions). After having read/writing this I begin to wonder if you have RTFM'd? (esp. the explanation of your example is pretty clear about the hexability of the $) Ton
  5. Hi Nulllll, here is a quote from earlier stating a question: QUOTE(Jeff Plotzke @ Apr 6 2007, 03:36 AM) And here's your response: QUOTE(Nullllll @ Apr 6 2007, 10:12 AM) it is conncted through DaQ card , also this circuit as an ohm's law ,,,I have volatge source from the DAQ +5v and current flow ,,,i just need to know by LABVIEW what is the value of that resistor?? So far you have not shown anything of what you have done! No schematics, no code, no diagram, no ASCII art of the circuit, no description of your hardware (although I suggest looking into Tomi's idea of the camera, would be helpful for me since I'm colorblind), nada nothing. This post is starting into an easter egg, please provide more info (usefull). Ton QUOTE(Nullllll @ Apr 6 2007, 10:12 AM) I have volatge source from the DAQ +5v and current flow One tip, don't blow you DAQ card, your school is not going to like that!
  6. QUOTE(jdebuhr @ Apr 4 2007, 04:10 PM) I have had the same issue (and I don't know if I fixed it) BUT AFAIK the key down event doesn't exist for panes, only for 'this VI' and I'm not quite sure that that covers the XControl Facade.... Ton
  7. I think it does call it twice, because the static ref, means a seperate dataspace (LV 8+). Ton
  8. QUOTE(Nullllll @ Apr 3 2007, 09:09 PM) Nulll, sorry but your questions get mystier every time (your initial question was much better than your second answer). Please try to build a scentence where you describe what you want (in which control type for instance), if you want to do it programattically or from the user interface. Also have a look at your keyboard, there seems to be something wrong with the shift-key. Now this case, where does the user enters '8'? And where do you want to display it? What code have you got already? Ton
  9. QUOTE(JFM @ Apr 2 2007, 11:16 AM) I normally use this 'trick' with the CTRL button down (in run mode (ctrl-m)), no break point tool selection needed Ton
  10. QUOTE(wenwen @ Mar 30 2007, 11:53 PM) This is something related to your advances state. First off there is a huge difference in how to program (besides the textual vs. graphic idea) [wiki]LabVIEW[/wiki] is driven by [wiki]Data Flow[/wiki] meaning that an instruction will be executed when it is ready, not in the order entered! this is a big mindset change Second, saying that C++ can do 60% off your problems means you lack 40% advanced C++ programming (I'm no C++ programmer) I think anything can be done with C++ and LabVIEW but LabVIEW will normally allow you to program faster! Normally good C++ code executes faster than good LabVIEW code. However good LabVIEW code outruns shitty C++ code . Saying outloud here that something can't be done in LabVIEW will most likely be answered by an answer, uhm, yes did it 4 years ago by (Ben/Rolf/Jim/PJM/Michael amongst other) For a beginner the http://forums.ni.com' target="_blank">NI forums are better, why? because people of NI get payed to help you and the user base is bigger. About the time of becoming an advanced LabVIEW programmer.... I started in my 3rd year of my bachelor (2003), and did since about 3 years of full-time LabVIEW development. I won't say I'm advanced but my heads grips LabVIEW (sometimes I dream about the missing error out function of my 2 year old ). To become an advanced LabVIEW programmer you need enthousiasm! Good luck, Ton
  11. Hi Thang, you should do a search for destroy queue in your VI's most likely you have more than 3! Is there any reason to flush the queues before destroying them? Ton
  12. QUOTE(Thang Nguyen @ Mar 30 2007, 09:31 PM) Yes, The 'http://zone.ni.com/reference/en-XX/help/371361B-01/glang/create_queue/' target="_blank">Obtaine queue' function has a boolean input that is: 'create if not found? (T)', and an output 'Created new?'. Also you use a local to get your queue's from, maybe you run into some race condition, could you add your vi? Ton
  13. QUOTE(yen @ Mar 30 2007, 11:46 AM) QUOTE(Nullllll @ Mar 30 2007, 04:07 PM) from where can I get it , can an y one give me a link? Google is your friend (or me) Ton
  14. Recently I needed to know on which pane a control resided, so I looked at the control.owner property. Unfortunately (and strangely) that gave a reference to the panel ( a reference quite hard to get your hands on in 8.x) and not the pane. So for your (and my own) pleasure I wrote a VI that returns a reference to the pane a control resides on: http://forums.lavag.org/index.php?act=attach&type=post&id=5360 Use it if you need it! Ton
  15. I recently claimed it would be possible to use XControls as a ChildWindow container for sub-panels. As a proof of concept I have coded the following (fun starts at 15 seconds): http://forums.lavag.org/index.php?act=attach&type=post&id=5358 The avi shows a window with two panes, on the left a stop button and two load buttons, each load button will load a vi (reentrantly) into one of the two Child-windows in the right pane. The movie is a little bit shacky since the load of the software that makes the movie. Each XCTL has a 'mimimize', ' maximize' and 'close' button. The top bar of the XCTL allows you to drag the window around, the upper 3 pixels allow you to resize the window vertically (other directions are not done yet). Instructions to use (after extracting the .zip): open the test.vi in subpanels\VIs Run it, load the daughter.vi in subpanels\VIs into each of the child-windows with the two ' load VIs...' buttons. If you want to move the windows you will notice you loose control of the window soon because the mouse get out of the window, haven't figured out how to trick that but maybe later.... Ton Disclaimer: The .zip contains 4 .ani files which are part of Windows XP, if anyone knows good royalty free cursors I'd love to hear (too lazy to google) The movie is made with Broadcaster Studio Pro which allow you to capture your screen (or area) and stream that to a virtual webcam or disk!
  16. One nifty feature I found out today (I think it is new in 8.0): SMART Right mouse button on error wires Explanation: Here's your error: http://forums.lavag.org/index.php?act=attach&type=post&id=5354 And here's your pop-up menu: http://forums.lavag.org/index.php?act=attach&type=post&id=5355 See the 'Insert Index array' and 'Disable indexing at Source'. absolutely in the right place! It gets even better if you insert a 'Merge errors.vi' this will insert like you want it to (the array on the array input), the same thing has happened with the insertion of a 'Bundle by name' feature, which[?] fits in quite nicelay Ton
  17. QUOTE(Jim Kring @ Mar 29 2007, 07:59 PM) Now wher is my head plug, for the espresso machine... Or is JKI bought by NI? Ton
  18. QUOTE(fuzzycontrolfreak @ Mar 29 2007, 05:40 PM) Hi Fuzzycontrolfreak, DAQ assistant is only good for short tests/simple acquisitions If you want to seriously use DAQ you have to start use lower level DAQmx VIs. There are a lot of examples in the Example finder. Have a look there and you will most likely find what you need. Ton
  19. ActivePlot.color A good place to start is right click on a property and select help, then go one level up (property of ......) you'll have the possibility of a lot of plot related properties! Ton
  20. Given your slow update rate (1/(15*60) Hz) AND the fact that the history can change, meaning you anyway have to trace the history yourself, I'd go for a graph. This means you have to update the graph totally every 15 mins. To edit the names of the plot select the Active Plot property with the index of the plot-line, and then set the Active Plot.Name property. Ton
  21. QUOTE(1a2s3d4f @ Mar 28 2007, 05:29 AM) Hello 1a2s3d4f, Welcome to the LAVA community, we are looking forward to your contributions. Could you introduce yourself a little further? Like what you use LabVIEW for, which projects you have done. Also your name looks a bit weird, is there some special meaning for it? Ton PS Have a look at http://forums.lavag.org/How-to-use-the-LAVA-Website-t735.html' target="_blank">the guidelines
  22. QUOTE(Dave Graybeal @ Mar 27 2007, 06:32 PM) Man, when I saw the post, I was starting up a rant (just to keep the feeling). But I think Tomi got a raise (or his hands on the LVOOP sourcecode) today.... Ton
  23. QUOTE(TomIto @ Mar 26 2007, 09:12 AM) Could you give some way of communication? Serial/ethernet/gpib or some manual What have you done already? QUOTE(TomIto @ Mar 26 2007, 09:12 AM) Also would like to know how much is the accuracy in a case that I adopt LabVIEW. The accuracy of LabVIEW is limited by the acquistion device and communication protocol, internally LabVIEW uses up to 128 bit floating point IEEE data storage, but a double datatype (64 bit) will generally be 15 decimal accurate QUOTE(TomIto @ Mar 26 2007, 09:12 AM) I wonder RT engine is necessary. I think RT stands for runtime, you'll need that if you are building an executable or dll for a non-development PC. But generally it is free. Could you give some more info and show something of what you have already tried? Ton
  24. QUOTE(njkirchner @ Mar 26 2007, 06:17 AM) I have even a (hopefully) better idea, why not use an Xcontrol with an subpanel. In that case you could have maximize, minimize events handled inside the XControl. Ton
  25. If you are setting the precision to zero you could also use %d as the formatter, this will have the same effect. Ton
×
×
  • Create New...

Important Information

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