Jump to content

jpdrolet

Members
  • Posts

    367
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by jpdrolet

  1. QUOTE (sachsm @ Dec 19 2008, 09:50 AM) You can also put the VI in a static VI Refnum.
  2. Most phone providers have an Email-SMS gateway so in LabVIEW you just have to send an email to the phone number.
  3. QUOTE (jed @ Nov 19 2008, 12:19 PM) Once I did hook 3 x Edgeport/8 and it worked flawlessly. Ports are visible like legacy ports in VISA/LabVIEW
  4. QUOTE (vugie @ Oct 9 2008, 04:58 AM) We have a clear winner here. :thumbup:
  5. The expression ^[ ]*[+-]?[0-9]+\.?[0-9]*$ should match a floating point number ^[ ]* : any number of spaces at the beginning [+-]? : 0 or 1 sign [0-9]+ : at least one digit \.? : 0 or 1 decimal point [0-9]*$ : any digit up to the end It will not recognize a number beginning with a point like .8 but will reject the single . without any digit
  6. QUOTE (Minh Pham @ Oct 1 2008, 07:30 PM) I did but the idea is to have a format specifier integrated with "Scan From String" so a string containing such constants can be parsed with the rest of the elements (instead of indentify the string, isolate it and convert it separately).
  7. QUOTE (crelf @ Sep 14 2008, 01:03 PM) I am officially and personally offended, you insensitive clod!
  8. First, at 9e18, the precision of a double is 1024, e.g. 1024 is the lowest increment you can change a number that large. Since 1024 is much larger than 2pi you can't expect any precision of sine function for numbers that large. Second, sine(2pi) gives -2.44921E-16 not because the imprecision of the function, but on the precision of DBL(2pi) itself. DBL(2pi) is not exactly 2pi so the sine is not absolutely 0. You can change the representation of the constant 2pi (use Right Button Menu) to make it an EXT. Sin (EXT(2pi)) is then improved to 1.0842E-19.
  9. When the main loop of a VI doesn't require a state machine, I often put a three frame flat sequence structure |init|doit|exit| even when I could use data flow. That clearly separates the code that doesn't belong to the main work of the VI. However, if the VI requires a state machine, I use init and exit states.
  10. The Earth and Moon are constantly hit by even more energetic particles (cosmic rays) every day and we haven't witness adverse effect yet *crosses fingers* Not that I believe that crossing fingers brings good luck but I have heard that it does whether you believe it or not...
  11. "Air on the G String" seems very appropriate too...
  12. QUOTE (ragglefrock @ Aug 7 2008, 09:41 AM) Yes if you can keep the user from changing the system time. I have an application where the client has a financial interest for reports to be emitted sooner than they should so I couldn't trust the system time and I relied on the timer tick only.
  13. I did it with doubles some time ago. It is good for 70ky(?) or so, though. I didn't make initialization on first call since its output on first call is arbitrary anyway. QUOTE (Tomi Maila @ Aug 6 2008, 12:29 PM) That can be fixed by running a daemon VI calling it once every 49 day. If that daemon VI does wait and timeout on a notification, it won't take much CPU.
  14. QUOTE (harokey @ Jul 23 2008, 04:17 PM) LabVIEW displays non-displayable characters as spaces in string controls but should this rule apply to the null character? After all, doesn't the http://en.wikipedia.org/wiki/Null_character' rel='nofollow' target="_blank">null character mean "stay at same position" when printed?
  15. Are you sure that they are spaces and not some special/control character (like TAB) that isn't displayed in the telnet application? What do you see with /codes display?
  16. QUOTE (PaulG. @ Jul 22 2008, 11:44 AM) Yeah, that's great to watch... You should post this link to APOD since the target of the one you provided is updated every day...
  17. You can also use the command line wscript.exe "file path" to execute the script. Or use Windows Script Control ActiveX interface to load/run scripts strings in memory.
  18. The VISA session is opened implicitly when using other VISA nodes so no you don't have to use VISA Open. I've found some use to VISA Open when I needed to lock the session for an "atomic" sequence of commands to avoid other parts of the code to talk to the device at the same time. Then each part of the code using the resource had to open its own VISA session, and get an exclusive lock on the resource before communicating with the device.
  19. QUOTE (Ravi0709 @ Jul 2 2008, 03:44 AM) I presume you access LabVIEW from Python using ActiveX interface. This interface doesn't allow to get/set elements of a cluster directly. However, you can make VIs that wrap VI Server calls to get/set control value using control references and invoke them from Python. Make a list (array or cluster) of references to all controls of interest (use the Controls[] property to access references to cluster elements). Cast them to U32 ans pass the list to the Python application. From Python, call the wrappers VI to get/set the controls using the control reference and the value. I have not tried this method nor ever used Python so consider that suggestion as a pointer to the solution to your problem. I hope that helps.
  20. QUOTE (Michael_Aivaliotis @ May 27 2008, 05:24 AM) And to authorize scripts.
  21. jpdrolet

    Alfa String

    Physical laws have a more restricted and empirical scope. The Law of Falling Bodies states that objects fall with a constant (local) acceleration but fails to explain why this acceleration is different at sea level and mountain tops, equator and poles. Kepler's law states that an object in orbit scans equal areas in equal time. Only the Newton's Theory of Gravitation offers a framework that can explain different falling accelerations and planets' orbits. The theory encompasses the specific laws.
  22. QUOTE (Michael_Aivaliotis @ May 12 2008, 04:13 PM) LabVIEW is on Wii :question:
  23. QUOTE (TobyD @ May 12 2008, 02:47 PM) What I did is to map the position to 20 cursor speed levels. The mapping is non linear to allow fine pixel moves and high speed coarse moves.
×
×
  • Create New...

Important Information

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