Jump to content

Karissap

Members
  • Posts

    108
  • Joined

  • Last visited

Everything posted by Karissap

  1. Hi, I have a front panel with a vertical splitter bar with a lot of controls on the left pane that can be scrolled and some buttons on the right pane that I don't want to scroll with the rest of the controls so they are easily accessible. I wanted the user to be able to print the left side of the pane somehow. Whenever I try I can only get a cut off picture of the whole thing so some controls aren't visible in the print out. Here is an example of what I have so far in LV 8.6. (I'm using the report generation toolkit)
  2. What are your current draw requirements? You may need to add some external pull-up circuitry as the output line specification for a high level is between 2.0 to 5.8. Have you tried using the analog output channel set at 5V instead?
  3. Here's an example of something like what you might be after. It's a pretty simplified version of things. You might need extra data checking and handling etc when you actually implement it. The basic principle is to use a control method node to register the drop data when the mouse down event and the mouse leave event happens: Then on the source control/indicator use the drag enter event to decide whether the data is valid and use drop event with the get drag/drop data to get the data and update the control/indicator:
  4. It would be helpful to know what exactly you want to do, what data type you are using, string, numeric, and what dimension array size, 1D, 2D etc. If you want to replace an array element without resizing it use the "Replace Array Subset.vi" or in place element structure, if you want to add an array element but not replace any existing elements use the "Insert into array.vi" or the "Build Array.vi". You can also use auto-indexing on a for loop to create arrays automatically. Here's a screen shot of these different methods:
  5. Another option would be to allow the user to enter a comment by using a pop up window when the user clicks on the comment column. Here is an example:
  6. Its there in the first menu for me, I must have a later version of DAQmx, I tried it on LabVIEW Version 7.1 and it was there. My DAQmx version is 8.7.2
  7. There is a NI Developer Zone site which may help: PID Theory Explained Do you have the LabVIEW PID Control toolset?
  8. There is a NI Developer Zone site which may help: PID Theory Explained Do you have the LabVIEW PID Control toolset?
  9. To get all DAXmx Terminals you can use the DAQmx Device properties node.
  10. Instead of using the wait function or event structure you could use "Wait for front panel activity.vi" This will wait for a specified number of milliseconds or until the user interacts with the front panel (like pressing a button).
  11. Try going into VI properties, go into the execution category and tick the box "Reentrant execution", this will mean each instance of the sub VI will run in its own memory space.
  12. The internal temperature of some DAQmx devices can be accessed using the board temperature internal channel or by using the calibration info property node. See Accessing the On-board Temperature Sensor of a DAQ Device
  13. QUOTE (TobyD @ Aug 21 2008, 02:14 AM) For some programmers peoples lives and safety do depend on their code. LabVIEW is being used increasingly in critical process control and medical instrumentation. "Ugly Code" and Race conditions have killed people before eg. the infamous http://en.wikipedia.org/wiki/Therac-25' rel='nofollow' target="_blank">Therac-25. Ugly code makes software harder to review, find bugs and test. So beware of the killer spaghetti code!
  14. Just because you know how to do something now doesn't mean you'll remember how to do it in 10 years if you haven't been using it. I have my pilot's licence and have to do a flight review every two years to keep it current but an extra endorsement or rating counts as a review. A similar thing could be done for LV Certification, you could get some kind of endorsment by doing courses in NI hardware or LV software toolboxes, new features etc (GOOP would be nice) through NI or approved 3rd pary courses, and this could count as re-certification of LV status.
  15. You could set VISA Alias names for each device using MAX. You'd still have to update it when you swap instruments though but at least it's not a code change.
  16. You should be able to use the Microsoft UI Automation libraries. There are examples in other languages Here if you can translate them to LabVIEW. There is also an article about using it for testing a user interface I had a go at it but didn't get very far, here's what I got before I got stuck. Download File:post-8228-1217545423.vi
  17. Try wiring 0 and 5 constants to the minimum value and maximum value inputs of the DAQmx Create Channel vi. If this doesn't work you could use the "Generate NI-DAQmx code" feature from the daq assistant by right clicking on the express vi after you've configured it.
  18. I assume you are talking about the simulate signal express vi. If so you can right click on the vi and choose open front panel from the pop-up menu, this will turn it into a normal vi you can edit. Then you can change the # of samples constant to a control and add a connector for it. If you just want to know the # of samples from the signal you can use the statistics express vi with total samples selected.
  19. I'm not sure if there is a property for this, I don't think there is. You could use a boolean indicator on the VI you're interested in that only turns on while the VI is executing, there will be a small delay though. Here's an example Download File:post-8228-1214985256.zip
  20. What output speed do you need? The USB-6008 is a low cost USB-DAQ, it doesn't have buffered output and has a software timed output sample speed of only 150Hz. Other high performance USB Daqs will give you a high speed buffered output. For example the USB-6211 outputs at 250kHz with a buffer size of 8,191 samples.
  21. I have projects written in LabVIEW 7.1 and can open them with no problems in LabVIEW 8.5 the only problems you might encounter is driver incompatibilities and if any of your code has the block diagram removed, there might be other upgrade issues too, the release notes would contain more information. The only VIs I've found that have been too old for LabVIEW 8.5 to open at all are LabVIEW version 5.1 or older.
  22. To make the graph look like that you can right click on the spectrum graph and select properties from the menu, there you can change the scaling of the x axis to be logarithmic and other display settings. To get the spectrum to display up to a frequency of 20k your sampling frequency will need to be at least 40k. You might want to also play around with the different windows, Hanning is usually used. Download File:post-8228-1213224014.vi
  23. When clicking on messages in my inbox to read them I get a blank page. Have tried opening messages in IE6 and Firefox and neither works.
  24. Hi Pika If you just want to display the .swf video use an Active X control, see Knowledge Base - Can I use a flash animation inside of LabVIEW If you want the .swf video as an input to your program for analysis etc you can you one of the various free/ open source command line converters, call it from LabVIEW using the System Exex.vi, convert the swf file to a supported format such as avi and use that.
×
×
  • Create New...

Important Information

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