Jump to content

Karissap

Members
  • Posts

    108
  • Joined

  • Last visited

Everything posted by Karissap

  1. For a transmitter and receiver you could use the TCP, UDP or DataSocket functions. If you want to set custom properties try converting the data to a variant and using "Set Variant Attribute.vi" Have a look at the example "DS Writer With Attributes" in the NI example finder. This shows an example of DataSocket communication with variant properties. For converting strings to number formats you can also use "Scan from String.vi" which gives more flexibility to scan a value from a string into any format.
  2. Skipping frames is probably a Windows thing. Maybe using a real time operating system like Phar Lap ETS with LabVIEW Real Time would be better for your application.
  3. I was under the impression that dqGOOP was the fastest implementation of GOOP. Here is their performance comparison.
  4. I use Inno Setup to create installers for some LabVIEW programs, I've found it really good to use plus it's free but you could certainly use one of the others. As for a batch file to restart and resume, there is an option to run a program after the installation in the default LabVIEW installer creator. To resume the installation on reboot I would use the "RunOnce" registry key under HKLM/Software/Microsoft/Windows/CurrentVersion, so the program will only run once AFTER reboot, and then windows will remove the entry from your the registry http://support.microsoft.com/kb/179365 Alternatively you could create a shortcut in the startup folder of the start menu that gets deleted after installation if you don't want to use the registry. To actually restart the computer use the "shutdown -r" command in the batch file, you can use other options to display prompts and timers etc.
  5. QUOTE (marp84 @ May 10 2008, 11:57 AM) This sounds like a similar assignment to this http://www.ese.upenn.edu/rca/software/Labview/Cardiacvi/cardiacvi.html' rel='nofollow' target="_blank">Cardiac Monitor LabVIEW project Basically LabVIEW can do PC transfer methods such as TCP, UDP, FTP,SMTP email or you can use Bluetooth, serial communication etc, the possibilities are endless. You'll get better responses if you show what you've tried already by posting your code or by asking more specific LabVIEW questions if you get stuck.
  6. If you just care about the type of data including differentiating the type of numeric DBL, I32 etc have a look at the Open G VI "Variant to Header Info". See the attached front panel and block diagram. If you want to handle clusters or arrays in clusters etc you will need to add recursion.
  7. QUOTE Basically it is a program for managing all devices, interfaces and software supported by National Instruments. QUOTE (From this i can notice the instruments which are connected through GPIB!) Yes. Expand the devices and interfaces configuration and you should see your GPIB instruments, if not the NI-488.2 software might not be properly installed QUOTE 2.Can this MAX can show me the instruments list which are connected RS232,USB..ETC. also? It will show you instruments connected under RS232 and USB only if they are NI products or supported by NI. I have several NI USB devices I configure with MAX. It also provides a generic RS232 IO utility QUOTE 3.Why we need to install MAX separately? Because it is a seperate software utility program QUOTE 4.what are the features it has for us? It can help you troubleshoot and calibrate instruments, provide an overview of what is connected to the system and what driver versions are in use. You can also setup DAQmx scales, channels and tasks. QUOTE 4.What are the difficulties we will face without MAX? Max is a great utility if you are using NI hardware products. You might have more difficulty troubleshooting instrument errors etc and configuring NI hardware without it. QUOTE 5.What is NI-DAQmx and how we can differentiate from MAX? NI-DAXmx is drivers and software API for newer NI Data Acquisition devices See Getting Started with NI-DAQmx
  8. QUOTE(tcplomp @ Nov 8 2007, 06:52 PM) Thanks, it's working great now. I also had the problem that it wasn't working in 8.20. I had to save the whole project to 8.5.
  9. Can anyone give me an example of how to use the buffer property of TDMS files? I have tried setting NI_MinimumBufferSize to a value like 1000 using TDMS Set Properties.vi but it doesn't seem to be working. If you use the buffer do you have to leave the file open in between writes and not use close. Also, how does the write buffer affect reading the TDMS data?
  10. I am doing this in one of my applications by showing or hiding pages in a tab control. It make things a lot easier to remove or add access to a lot of controls at once. Here's an example: Download File:post-8228-1194310749.vi
  11. I created this example in the code repository USB continuous acquire I used a Logitech webcam. At the time when I created it I didn't have the vision toolkit, I only used the free IMAQ drivers and the free NI IMAQ for USB drivers.
  12. If you want to know the execution time your while loop takes you can use a shift register to calculate the difference in time. Here is an example using "Get Date/Time in Seconds.vi" and "Tick Count (ms).vi". The method that uses the get date/time will use more processor time than the tick count method. However, if you use the tick count method the counter will wrap back around to zero at some point so you will get an error eventually if you run it for a long time (will wrap around once every 50 days). Download File:post-8228-1193724740.vi I don't know if this is what you are after or if you wanted help using the timed-loop structure.
  13. The example "calling System Exec.vi" should only open notepad once. It does on my computer. Are you sure you pressing the run button in the toolbar and not run continuously?
  14. The exec.vi doesn't keep opening the application, check that you haven't put it in a loop. You can also use activex methods to open word, do document control and close it afterwards. There are examples included in LabVIEW that show how to do this. Search for excel or word. There's also the Report Generation Toolkit from NI. This file might also help word97_activex.zip It should still work for a newer version of word.
  15. You can try these Sample Exams (Traffic Light, Car wash and Security System) available on the ni site for problems that are at the intermediate level. There's also a free CLD prepatation webcast which is a 30 minute video going through a lot of the intermediate concepts. If you think of programs you want to make for yourself or for work you will probably end up using things like event structures and dlls anyway. I passed the CLD exam without looking at any of the intermediate course material as I had used the intermediate concepts in projects already and Basics I and II gave me good general LabVIEW programming and documentation practices etc.
  16. I'm using the SM2064 which is the PCI version which uses the same drivers. Have you tried using the LabVIEW drivers available from the manufacturer? There is an example vi SMX2064 Read Example.vi which might be useful. Shown below is a screenshot of the basic functions used to get a measurement. Make sure your aperture is not set to small and the range is valid for the function you are using. The user manual is really good and comprehensive. Also check the calibration file exists and has the correct data in it (usually at C:\Sm60cal.dat). Otherwise, the support engineers at Signametrics have been very helpful to me in the past.
  17. QUOTE(alukindo @ Sep 19 2007, 02:52 AM) To toggle the true/false value you can right click on the button, go to properties then the Key Navigation Tab and in the toggle section choose "Return" from the drop down list. You can set the tabbing order of front panel objects by selecting Edit»Set Tabbing Order
  18. I think a better idea would be to create all the controls you need before hand and use the visible property node to hide them or show them when the VI is running.
  19. See this thread for some discussion about the system tray, there are some commercial LabVIEW libraries around like INVtray and gtoolbox You should be able to do it yourself though with windows dlls or active x. Here is a good tutorial on using srvany.exe to create services.
  20. I'm not aware of a straight forward way to write to stdout from a labview exe. I got some information from this thread though on the ni forums. You could use windows system dll calls to write to stdout: QUOTE This is pretty advanced to do this though if you haven't had much experience calling dlls from LabVIEW. If you are able to create files somewhere I suggest the method described at the beginning of the thread: QUOTE Have the VI save its output to a file and then use the DOS command type to put the data on the command line. The command to call the VI and retreive the results could be put in a *.bat file.
  21. QUOTE(tum @ Aug 23 2007, 12:08 PM) It is much simpler than that. Just use your vi as the top level source file in the application builder and make sure you tick the box "Pass all command line arguments to application" then build your exe. Then to call the program from the command line just use in <path to exe> <arg1> <arg2> etc.. Here is a screenshot after I built the vi I posted before into an executable C:\application.exe. http://forums.lavag.org/index.php?act=attach&type=post&id=6724''>http://forums.lavag.org/index.php?act=attach&type=post&id=6724'>http://forums.lavag.org/index.php?act=attach&type=post&id=6724
  22. You can use this method in earlier versions such as LabVIEW 7.1 as well, it is just an application property node in the vi. Here is a vi that gets the command line arguments in LabVIEW version 7.1 http://forums.lavag.org/index.php?act=attach&type=post&id=6698 http://forums.lavag.org/index.php?act=attach&type=post&id=6697
  23. I've used C DLLs in LabVIEW many times you basically need a Call Library Function Node and double click to set up the parameters acording to the API. If the dll came with a header file there is a wizard which can generate dlls automatically in 8.2 its is found under "Tools>>Import>>Shared Library(.dll)" in the menu. Here is a full Manual which might be helpful: Using External Code in LabVIEW Manual I have a canon A620 so would be interested in this project. Where did you get the dll from?
  24. I got the same value of 0.015625 seconds for every loop execution when I ran your test. There are a whole bunch of things which can improve vi timing. Something like a Timed Loop sounds like it would be better for your application. Try searching for timed-loop in the example finder. http://forums.lavag.org/index.php?act=attach&type=post&id=6474
  25. QUOTE(MK07 @ Jul 26 2007, 06:50 PM) I see you are using a LabVIEW version 8.2.1 so here is some help based on that. You can create an exe and installer if you have the LabVIEW Professional Version not base or full, you might need to upgrade. (LabVIEW Options) If you have the professional version, you need to have your VIs in a project. Then just right right click on build specifications in the project explorer window and choose exe and fill out all the options. Do the same for an installer, you can only create an installer once you have created and exe though. QUOTE(MK07 @ Jul 26 2007, 06:50 PM) and how to i connect GBIB device with labview?? if any example please provide me.. What GPIB instrument are you using? Most instruments with a GPIB connection have instrument drivers that makes communication easy, to find drivers you can selecting "Help >> Find Instrument Drivers..." from the menu. Otherwise just look at the instrument manufacturer's website or contact them. There is also an Instrument IO assistant express VI you can use to enter GPIB commands directly. Just use the programming guide in your instrument's manual to find the instructions you need.
×
×
  • Create New...

Important Information

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