Jump to content

Jordan Kuehn

  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Jordan Kuehn

  1. It varies a bit from OS to OS, but it's something along the lines of this (Windows 7). Right click Computer -> Properties -> Advanced System Settings -> Advanced Tab -> Environment Variables... Then you are presented with user variables and system variables that you can modify all you want.
  2. Perhaps, but I think in this case it would be about as unlikely as the user having tabbed several times, hit enter, and did it again. That button hasn't been used for quite some time. And perhaps the value change event structure could capture double click events in a similar fashion to how windows does it? Then it could be a boolean input into the case.
  3. essentially I found the GET and POST commands sent by the web interface and then mimicked them in LabVIEW. You'll need to get familiar with the HTTP functions in LabVIEW as well as basic string parsing, type conversion, loops, and conditional structures.
  4. I would start with a packet sniffer. You will probably have to develop/replicate the http interface. I've used Wireshark before to see what commands were used to interface with an unsupported IP camera.
  5. There is no use of the value (signaling) property in the VI, and no access to the Controls[] is being done. It's a fairly simple subVI. Perhaps my description wasn't clear enough. The two buttons in question reside on the front panel of the subVI which behaves like a dialog prompt. There are two event structures, on in the main vi and one in the sub vi; however, the action in question was the action triggered by that button value change in the subvi.
  6. After looking at it several times, we may just have to go with the obvious option. It behaved as expected and the operator didn't want to admit it.
  7. Hey guys I could use some help. Basically I have a vi that entered into a case triggered on a front panel boolean value change. However, this boolean is continually enabled or disabled and grayed out during the timeout case based upon a different controlling boolean. (a quick and dirty admin mode if you will). The operator claims that the button was grayed out the entire time and that the state was entered into without any action on his part after the subVI began to run. Any thoughts? I'm having trouble explaining why it got there.
  8. A custom windows environment variable could do the trick. Attached is code that I have used a couple times to see which machine it's on. Keep in mind, LabVIEW will not see a new variable without being restarted. //Edit Not good if you're only interested in IP address obviously.
  9. Bitbucket looks great except for one thing. I can handle moving to mercurial, and I can even handle splitting my SVN repo into multiple by-project repos and simply organizing the repos into folders by customer. However, it looks like on bitbucket I have to place all of the repos at the same folder heirarchy level. That would force me to do something like [Customer_ProjectName] instead of [Customer]/[ProjectName]. Is there a way around this? I have too many projects to leave them all in a single folder.
  10. I'd also be interested in a good project hosting service that allows for private project and svn integration. post-commit hooks would be nice as well.
  11. Does sourceforge allow for private projects?
  12. Care to submit to the Idea Exchange? I would love this feature. Often times when giving RT code to a coworker for testing builds fail because his folder structure is much deeper than mine. Building and deploying on the desktop before moving into the final destination is a complete PTA.
  13. Couldn't you kill the process via the command line? This VI from the dark side shows some of the commands. https://decibel.ni.com/content/docs/DOC-9277
  14. I second crelf's questions and suggestions. Without knowing what kind of power source you are trying to switch, what load you are driving, and how fast you want to switch it, you can achieve this with a suitable relay and a single digital output line. If you have an ni motor controller for the stepper motor you mentioned you can likely find and example for it in the example finder in LabVIEW (Help->Find Examples...)
  15. I just got an email from NI that I passed the CLD exam! I've been poking around here for some time, but not really posting much though I'm sure that will change. There's not too many people in the world that know what a CLD is, so I figured I'd come share it here.
  16. I haven't experienced any of these issues you describe. Running LV2010 on both my desktop and laptop. Perhaps something is wrong with your machine. As far as modern looking controls, I find myself using the system controls a lot. They look nice in windows 7 and decent in XP. There's also a few controls suites in the package manager that are nice.
  17. Here's hopefully a simple question: What is the best method for communicating with an RT target with a Host controller (windows) that may reconnect at any time? Network variables, Remote Panel, Web Services, tcp, udp? I've used network variables and networks streams plenty, but network variables just don't seem reliable enough and network streams hang when connection is lost. Remote Panel and Web Services seem attractive due to the fact that everything is hosted on the target. I don't need deterministic control on the host interface, just a decent UI. Thoughts?
  18. As suggested earlier, post your code and we can be more helpful. Perhaps even a VI Snippet. tushar gave you good advice regarding timing when the trigger occurs. To further elaborate, if you are simply wanting the time from execution to the first threshold, you can place a tick count vi before your while loop. Place another inside the while loop inside a case structure that has the selector wired to the same boolean as what turns the LED on. In the false case you can put the put the tick count from the beginning. Then subtract the two and conditionally wire the result into a numeric indicator. When true you'll see the time between start and threshold, when false you should see 0. I have a feeling you may need a little bit more sophisticated approach, but this should get you started for now.
  19. This is probably what you are looking for. Once you have an ODBC reference you can call the database by name. Here's some stuff from NI: http://digital.ni.com/public.nsf/allkb/47A8CF66D5E3C8CC8625720A006139D6
  20. Here are my get/set temperature vi's for a Watlow F4 controller. You also need the NI Modbus library. And there seems to be an issue with the VI snippet. The clusters constants there can be remade and should have RTU and 1 as the values in them. Hopefully this is of some help to you.
  • Create New...

Important Information

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