01-25-2007 05:25 PM
01-25-2007
10:37 PM
- last edited on
06-03-2024
06:09 PM
by
Content Cleaner
I tried to look at your programs but your style of programming makes it very hard to see what you are doing. You really need to read the shipping document called LabVIEW Style Guide, clean up your wires, use error in/error out connections for data flow, and get rid of the local variables and sequence structures. At the very least, I hope you have automatice error dialogs turned on because you don't have a single error out wired on any of the GPIB functions.
I doubt that the command set for the 210 is the same as the 1002. You should be able to confirm that by looking at the two different manuals. I do know that there are two different drivers. Why did you not use a driver? Go to https://www.ni.com/en/support/downloads/instrument-drivers.html and download the one for the instrument you want to use and save yourself some time and effort.
01-26-2007 10:28 AM
01-26-2007 12:20 PM
01-26-2007 01:39 PM
You still haven't done much cleanup and you still are using a sequence structure and not proper wiring with the error clusters.
One thing that I noticed is that you send the *IDN? query but never do a read of that. If you are going to send a query, you have to read the results. You are also always asking for 14 bytes in your read. Are you sure that this number is correct for each and every query? I
And please, use the driver and the proper style of coding.
01-26-2007 02:09 PM
01-28-2007 07:04 PM
Thanks for the detailed answer.
1. I tried the program you attached here. The debuging shows the program is OK.
But all the read out values is always zero. It is not right. I don't know what is the reason.
2. I tried the " TKTDS1K2K Read Waveform to Array vi" which can show the oscilloscope screen signals on computer.
But I want to acquire the numerical data points (peak area) from Oscilloscope. How to do it? By the way, On the screen, the X coordinate is point number (for example, if start point is 1 and stop point is 2500, the X range is 0-2500). How to change it into time scale.
Thank you very much!
Ariuk,
01-28-2007 09:20 PM
If you noticed, what I posted was just a very cleaned up version of what you had programmed. I didn't say it would work, just be easier to debug. I'm glad you are finally using the driver and getting data. Look again at the driver and run the Getting Started Example. Look at how the x axis is in time. Look at the block diagram and open TKTDS1K2K Example and see how the information from TKTDS1K2K Read Waveform to Array.vi is passed to TKTDS1K2K Scale Waveform Array.vi to create the scaled graph. A nice thing about NI's drivers is that you can look at the diagrams and understand how to do things.
Once you run the scale waveform function, you have your data in a waveform data type. You can then apply any of the analysis functions to the data.
03-06-2007 07:08 PM
03-06-2007 08:27 PM
You use the application builder to create an exe. It comes standard with the professional version of LabVIEW. For the base and full versions, the app builder is an add-on that you can buy. With all versions, you also have the option of password protecting the block diagram.
Please post a new question when you change subject matters in future.