Jump to content

Francois Normandin

Members
  • Posts

    1,209
  • Joined

  • Last visited

  • Days Won

    47

Everything posted by Francois Normandin

  1. QUOTE (raymyster @ Sep 26 2008, 03:13 PM) Hi Raymyster You can combine different datatypes into a cluster and then make an array of that cluster. QUOTE (raymyster @ Sep 26 2008, 03:13 PM) Also i tried so many ways to insert even one array it doesn't accept except to fill the whole record in the table. i need a way to move with these data to obtain a 1D array that i can give to the control that will fill the table. I would suggest you take a look at the Type Sensitive Popup code from JDave in the Code Repository. You can use this tool to initialize a table with different kinds of datatypes. It's not exactly a plug-n-play solution for your problem, but it shows how you can achieve what you want by playing with Multicolum listbox properties. QUOTE (TobyD @ Sep 26 2008, 03:35 PM) EDIT: Doh! Too slow. EDIT: DOH! Re-DOH! Way too slow.
  2. QUOTE (jaegen @ Sep 24 2008, 05:42 PM) http://en.wikipedia.org/wiki/Internet_troll' rel='nofollow' target="_blank">Internet troll I learn things everyday here!!! And not just LabVIEW. :thumbup:
  3. QUOTE (schneidley @ Sep 23 2008, 04:35 PM) USB-6008 has two analog outputs (ao0 & ao1). In MAX, you can only set a DC value for the AO channels, while you can code it to change at a rate of 150Hz. If I'm correct, those are pins 14 & 15. You can check in MAX under "Device pinout" tab. If using an oscilloscope, make sure it's in DC coupling mode... otherwise you'll filter out the output. Check out these two pages... 6008 & 6009 are the same except resolution and speed.
  4. QUOTE (schneidley @ Sep 23 2008, 03:36 PM) Can you describe more your experimental setup? With the information at hand, it could be a number of problems... maybe your software works fine but you don't have enough current to latch the relay, or you might have a software problem? 1- I'd look in MAX in the test panel for device USB6008. If you can set it to 3.3V and measure it correctly with a voltmeter, then your device works and you know you are looking at the correct pin number... 2- In LabVIEW, try using the DAQ assistant to setup a simple AO code.
  5. QUOTE (Mads @ Sep 22 2008, 10:18 AM) Indeed you're right. Thanks for the wiki-link. John has suggested this a few posts above. QUOTE (jlokanis @ Sep 22 2008, 02:32 AM) 1. Speed (it is slow). I am not up to writting a word wrap detector right now. By using the Get Nth Line function, I can support a text control with any font. I think this could be improved by doing a binary search algorithm, but I would need to know how many lines a text control contains. As noted, this is not easy and requires counting <CR> and word wraps.
  6. QUOTE (Aristos Queue @ Sep 21 2008, 11:56 PM) Thanks for those insights... I had really no idea about that! QUOTE (jlokanis @ Sep 22 2008, 02:32 AM) 1. Speed (it is slow). I am not up to writting a word wrap detector right now. By using the Get Nth Line function, I can support a text control with any font. I think this could be improved by doing a binary search algorithm, but I would need to know how many lines a text control contains. As noted, this is not easy and requires counting <CR> and word wraps. Sure would be a nice snippet of code...
  7. QUOTE (crelf @ Sep 19 2008, 07:57 PM) Maybe your svn is beginning to slow down your network after all... :laugh: (Quoting myself...) QUOTE (normandinf @ Sep 19 2008, 07:09 PM) One trick is to use the method "Get Nth Line". I tested the method a little tonight and I don't think it will be useful with large files as it seems very slow. It took a few seconds to scan a 591 lines string on my QuadCore! For long files, like help documents, it's gonna take a better scanning algorithm.
  8. One trick is to use the method "Get Nth Line". Here's a quick example. (LV 8.6) Download File:post-10515-1221865409.vi
  9. One trick is to use the method "Get Nth Line". Here's a quick example. (LV 8.6) Download File:post-10515-1221865409.vi
  10. QUOTE (crelf @ Sep 19 2008, 03:00 PM) Are you sure of that? http://lavag.org/old_files/monthly_09_2008/post-10515-1221855818.png' target="_blank"> Depends where in Canada...
  11. QUOTE (PJM_labview @ Sep 16 2008, 03:56 PM) Yeah, I get that a lot too... QUOTE (PJM_labview @ Sep 16 2008, 03:56 PM) From what I see I came up with a similar solution than Darren (using the linker info). I believe that this solution does not work in the runtime engine. About, the "LVClassPathFromInstance", this was just a side question to know if the Get LV Class Path.vi work in runtime (which it does). I tried it and it does not work in EXE. (If AQ says it, I'll believe him). I wonder if you could load them dynamically at runtime, check their inheritance and then close them all? If that's possible in EXE, I bet it would be slow and not memory-effective but it would get you there... :2cents: It is not available either at runtime... QUOTE (PJM_labview @ Sep 16 2008, 03:56 PM) I am looking forward to see your recursive solution. Well here it is. This is saved in LV86. I didn't include Norm's Tree Control API vis, neither the OpenG packages I used, to keep the llb small. I'm sure you don't need them , but if someone else does, please follow the links to get them as it makes too large a file to upload. Download File:post-10515-1221609011.llb
  12. QUOTE (PJM_labview @ Sep 15 2008, 05:09 PM) Have you looked at this post from Darren about Inheritance hierarchy? The VI is password-protected but should work at runtime. I guess that's the output from LVClassPathFromInstance call you're looking for. I've used it to get the complete class hierarchy recursively. I don't have the result on my daytime computer, but could find it tonight. It's simply an implementation of Darren's VI with the tree control API from Norm the Captain.
  13. QUOTE (eaolson @ Sep 15 2008, 11:37 AM) Actually, they don't apply because of http://en.wikipedia.org/wiki/Decoherence#Loss_of_interference_and_the_transition_from_quantum_to_classical' rel='nofollow' target="_blank">decoherence. But we're talking the same thing here...
  14. QUOTE (crelf @ Sep 14 2008, 01:03 PM) I can't!!!! We've got presentation during lunch time of the second season of BSG on the conference screen starting today. Since it's as big as a cinema screen, I'll try to wait a until spring to see these spoilers or else I'll know of the 5th Cylon... (Yes, second season... we started a little bit late!)
  15. QUOTE (Graeme @ Sep 11 2008, 05:30 PM) I can confirm that it doesn't work for me in 8.5 but it has been fixed in 8.6...
  16. It's happening in 8.6 too. We're at the limit of resolution of the algorithm. In DBL precision, this happens around 1E+14 or so. I tried to wrap the Large EXT control to 0-2pi interval and I should have gotten the full EXT resolution (see pic) Except that the division seems to be suffering from the same problem and it doesn't work. Since the sine and cosine are most probably calculated using some Taylor series (x^n/n! type of equation), we run into serious problems with 9E18^n/n!. I don't know which "n" is being computed, but if you compute until you converge, it could explain the algorithm becoming unstable.
  17. QUOTE (Daklu @ Sep 9 2008, 03:14 PM) The Class Cube is a built-in function and I don't think you can access it. In the palette editor, when selecting "Display path to palette file...", you get a message saying it's built-in. However, if you create a control and put the class cube in (type def or not), you can insert this wrapper control in any palette or save it to user.lib.
  18. Have a look at this piece of coding. Type Sensitive Popup
  19. QUOTE (crelf @ Sep 8 2008, 12:33 PM) Fair enough
  20. QUOTE (crelf @ Sep 6 2008, 06:29 PM) I don't want to spoil it, but I think Jamaica would win it for gold medal/capita ratio...
  21. As I reviewed my configuration file, I noticed this key doesn't work on 8.6 anymore (works on 8.5): SuperFunkyPrivateSpecialSecretForumStuff=LAVA
  22. QUOTE (LV_FPGA_SE @ Aug 25 2008, 10:52 AM) Obviously... :headbang: Can I be excused by saying I never use the menus while in the block diagram??? I guess there's no way to add the brush to the tabbing sequence in the BD. Good thing I read this AFTER my first week of vacation. I wouldn't have liked to have this picture in my mind: http://lavag.org/old_files/monthly_09_2008/post-10515-1220323885.png' target="_blank"> BTW, since I was gone... which country won the olympics? (Shameless attempt to come back to the original topic)
  23. QUOTE (Raymond Tsang @ Aug 24 2008, 06:12 PM) I simply monitored it in the Task Manager. It's not perfect because it monitors everything else along with LabView, but if you had a reference of some kind that was opened repeatedly and never closed, you'd have had an increase in system memory usage. QUOTE (giopper @ Aug 23 2008, 10:18 PM) Although it shouldn't be a problem, I suggest to move the "open" before the main loop and the "close" after exiting the main loop. I agree. And when writing to file, the file position will automatically be at the end of what you just wrote. Hence, no need to tell the file to go at the end, except if some other program could access this file at the same time and set position differently.
  24. QUOTE (Yair @ Aug 24 2008, 08:34 AM) Never found a way... Is it in a palette I never displayed or an option to check?
  25. QUOTE (hfettig @ Aug 22 2008, 10:22 PM) Of course... :headbang: Well, convert is really just a wrapper for typecasting... Hehehe, it's time I took some vacation. Wish me nice weather this week.
×
×
  • Create New...

Important Information

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