Jump to content

ShaunR

Members
  • Posts

    4,914
  • Joined

  • Days Won

    301

Everything posted by ShaunR

  1. QUOTE (Aristos Queue @ May 30 2009, 05:26 PM) This in an horrific statement.
  2. This would be a good starting point. LabVIEW 8.6\examples\apps\tankmntr.llb
  3. QUOTE (Warren @ May 29 2009, 09:41 PM) Ok. Couple of points. 1. Most parallel ports nowadays have internal pull-up resistors (4K7). Whilst this makes input a lot safer/easier, it means that drive capability is severely restricted. This might be limiting your current to about 1mA (a DVM will tell you if this is the case or not). 2. To use the parallel port as digital IO in Labview, you need to make sure it is set ti "Standard" in the bios (Not SPP,ECP etc). 3. There is a parallel pot example of using it as a digital IO in the examples directory (Port IO) and I would suggest using this (as it is a direct port write) rather than VISA to get it going.
  4. QUOTE (Jim Kring @ May 29 2009, 06:27 PM) The fact that you need a license unlike any other language maybe??
  5. I don't really know what problem its trying to overcome, but all the methods stated work for me You might also look at the "Many To One" queue example if you are looking to combine multiple single plots from other VIs..
  6. QUOTE (Vladimir Drzik @ May 25 2009, 07:54 AM) I've just been looking again at the VB. In fact, you seem to be right (I haven't used the VB for years so thought I would refresh my memory). The "Calculator" does seem to have a Labview editor built in with an extremely reduced palette. I've no idea what they are doing since you don't have to have Labview installed to use it (but you do to Export). I'm guessing that they've cut out the LV editor core and implanted it in the exe. Let us know the feedback from NI.
  7. QUOTE (Black Pearl @ May 25 2009, 08:40 AM) Thats probably because everyone here uses the same topology. (centralised error handling). I use local error handling, since a lots different stuff has to happen if there is an error (not just tell the user) and that would make a centralised error handler a bit of a pig. The only common denominator is that I have to put a dialogue on screen and halt other processes execution ("Launch Error Dialogue.vi") while the operator decides what to do. In the meantime the process that threw the error tries to recover to a safe/stable state. The "Launch Error Dialogue" loads and runs (yup, you guessed it - the "Error Dialogue.vi) which logs to a file and filters the error to provide different options to the user (if required). It can be called from anywhere in the code and can remain on-screen, not show at all (i.e just log) or time out after n seconds (depending on the error level). It also does other things like set off a siren, change traffic light indicators etc. Nice and simple and just plonk it in your error case of the state machine. One thing that hasn't been discussed so far is error levels. In my system(s), I have severity/priority levels for errors (Information, System, Critical, Recoverable, Process and Maintenance). What do other people do to prioritise errors (if anything)?
  8. QUOTE (n00bzor @ May 24 2009, 11:57 AM) Obviously "operator error" then
  9. QUOTE (n00bzor @ May 24 2009, 08:40 AM) 0.12 is still far too low. It equates to about 41mA (V=IR). Try a 1K5. Then measure the voltage across the digital output to ground. If its at 5V (or very close) then that isn't the problem. Many output sources (digital/analogue outputs, power supplies etc) have a system of protecting the circuitry from short circuits (a fuse for example). The term "crowbar" in protection circuits is analogous to "being hit over the head with a crowbar" i.e instantly halting the cause of the problem to protect the curcuitry.
  10. According to the specs. The U6009 is digital rated at 5mA and according to the current transfer characteristic of the 4N25, it should work down to about 0.5 mA (although you wouldn't get much out of it). It may be that the digital output is detecting the LED as a short (don't know if it has a crowbar or not...but might). Try putting a 1K5 in the digital line to fix the current to about 3.3 mA and see if that works.
  11. QUOTE (Vladimir Drzik @ May 21 2009, 04:25 PM) Sorry. I misunderstood. The only thing I think your missing is that VBuilde/VAssistant doesn't actually have the Labview environment embedded. It is a pictorial representation of the functional blocks with its own editors ,and, when you execute the code, it interfaces directly the the NI vision dlls. The only time that Labview is used is when you want to create the vis. Then Labview is launched and the vi's are generated (probably using scripting).
  12. QUOTE (Gary Rubin @ May 23 2009, 12:46 AM) Indeed. But you can use can set the output to trigger off of an input and gate that input (just wire it to the other output). I think the "Pause" just pauses the generation from the software making it difficult to synchronize continuous pulse trains. Whereas Gating is done at the hardware level.
  13. Best advice I can give. When you find a good AE, get his/her direct line number and put it in your contacts list. I've been using the same guy for the last 3 years and you don't have to spend 15 mins going through all the secretarial rubbish to get to talk to someone QUOTE (Gary Rubin @ May 22 2009, 03:27 PM) I think what you are after is the Counter Gate. (CTR n GATE) It enables you to Start/Stop/Mask counters (if configured). You have to sacrifice a PFI, but if I remember correctly, the 660X series have loads of them anyway.
  14. QUOTE (angel_22 @ May 22 2009, 02:51 AM) Sorry. I don't have DSC installed and I havn't used it for a quite a while. Someone else will have to help you with this. QUOTE (jcarmody @ May 22 2009, 07:56 PM) This reminds me of my Senior year in High School when my Electronics lab partner told me to "hurry up and fix it, I want to get this done." lol. He was obviously a manager in the making
  15. ShaunR

    Help Please ..

    1. Is the PIC on an evaluation board or have you built the board yourself? (I hope its the former!!!!) 2. Has your PIC got software in it? (You have to program a PIC to use its USART and there are plenty of examples of this on the net) 3. If you are using an evaluation board, have you successfully downloaded a program/example with the tools that came with the board.? If you are at No.3 then (and only then) you can start thinking about Labview. You will then be able to use VISA to open the Com port and write/read the command strings/data using the settings from the example and you should be good to go.
  16. You can also write headers and footers in one hit.
  17. QUOTE (rahul @ May 21 2009, 05:56 AM) We had a lot of problems with firewire (including what you are seeing as well as cards not allowing windows to boot and having to use a hack to get more than 100Mb/s which only worked sometimes between boots). So much so that we now use GigE (much better) It's only some windows installations that are problematic and (I'm afraid) we did not find any solutions.
  18. I've got one of these that I wrote before we had the spreadsheet vi's. You don't need that many. Just pre-process with a for loop (to give the page and you can check the dimensions to bypass) and use the build array just before you save to to append/prepend a header and footer (your description can be part of the header or footer or you can have a separate one). Then just wrap that as a poly vi for your different types. You can also do things like checking that the file exists and only writing the header if its a new one and appending instead of overwriting so you can use it as a logger (don't forget an override switch though . I actually prefer to save different "pages" to separate files as you can load each one up as a separate sheet and it makes graphing and things easier.
  19. Subpanels. Example in the usual place.
  20. QUOTE (SLearner85 @ May 20 2009, 05:52 AM) No...... But your hard disk can. There is an "examples" directory and if you have vision installed there will be examples in there.
  21. QUOTE (angel_22 @ May 19 2009, 07:51 PM) \LabVIEW 8.6\examples\general\templates\Dialog using events\Login Dialog.llb
  22. QUOTE (angel_22 @ May 19 2009, 02:46 PM) lol.Some of us have to work for a living! As Asbo said. there's an example. Your UI is comming along nicely. You obviously have an artistic flair which I severely lack. Is this software actually going to control anything? Or is it a proof of concept?
  23. QUOTE (Gavin Burnell @ May 19 2009, 04:57 PM) This is exactly what I was trying (rather failing) to describe on the "Exterfaces" thread.
  24. You could do all that, but it might be easier to use use the "Overlay" functions in the "Vision Utilities" library.
×
×
  • Create New...

Important Information

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