LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Excel

Yes. Sorry for the confussion. Since I have made a post I cahnged it.  I'm using Tektronix TDS460A.
 
I appologize for the confussion! Thank you for your help!
0 Kudos
Message 11 of 36
(1,652 Views)

What is the best way to get readings from the scope?

Looks like you have already done this bit from your code, Although i cannot test it as i do not have the instrument drivers (Or the instrument for that matter)

Record those readings?

I have given you an example above of one method of many of how to record the results to a file.

Create a graph out of those readings?

That is easily done LabVIEW, however getting the Image into the same report/file as the results is a little more tricky.  The NI report toolkit makes things easier.  You could for now put a waveform graph on the front panel and wire your data directly to the indicator.  Then on the block diagram, right click on the Indicator and select the following. "Create --> Invoke node --> export image.  This will drop something on the block diagram which you can export the graph on the front panel to a file of your choosing.  for example you could save the .csv file and the graph (.bmp) in the same folder.  There are lots of ways of doing this sort of thing although i am suggesting what i believe to be the easiest for now as i am sure you will want the easiest solution.

Its supposed to be autamated, so everything is done with minimal user input.

Following the above and creating an auto indexed directory structure (Use the get date and time functions), should give you a folder with a excel file and a bmp each time you run the code without any user interaction.

 

Regards

Craig

LabVIEW 2012
0 Kudos
Message 12 of 36
(1,643 Views)

Wow....AWSOME

Craig I apprecita your help alot! I will try that now!

Thank you!

P.S. IS it Ok to contact you with further questions?

0 Kudos
Message 13 of 36
(1,636 Views)
There is a driver for the scope here. I haven't looked at it but there should be an example that demosntrates how to get a trace and display it on a graph. If you are still trying to using the Keithley to sweep a voltage or current, I'm not sure how you will corrolate the scope trace with the Keithley though.
0 Kudos
Message 14 of 36
(1,633 Views)
Hi sorton,
 
No problem.  However you will have to be quick today as it almost time for me to go home Whoopee!  However im sure most of the guys will fill in in my absence.  Also Dennis is looking at this post so your in safe hands 😉
 
Ask away, curiosity kills cats not people 🙂
Craig
LabVIEW 2012
0 Kudos
Message 15 of 36
(1,632 Views)
Hello Dennis,
 
This is what I got. Can you please guide me from here. I want to create an excel and BMP.
I really appreciate your help alot. Thank you in advance!
0 Kudos
Message 16 of 36
(1,618 Views)
Try this. It converts the cluster from the Read Waveform to a waveform data type and then I just used the Export Waveforms to Spreadsheet File.  
0 Kudos
Message 17 of 36
(1,597 Views)
Dennis THANK YOU so much. Your help is greatlly appreciated.
 
One more quick question and Im done.  Can I just record that graph in the form of different values?  Like excel, with two columns, but it doesnt have to be Excel, if it takes LabView its fine?  I have attached what Craig sent me and I just have trouble connecting my logic with that.  I dont know how.
 
THANK YOU!
0 Kudos
Message 18 of 36
(1,590 Views)

Dennis,

Can you actually tell me how to save data in the excel in a column and NOT in a row?

Thank you!

0 Kudos
Message 19 of 36
(1,578 Views)

I don't know what you mean by 'in the form of different values'.

The Export Waveforms to Spreadsheet File saves the data with a header that includes the dt (the sample rate of your scope in this case). In column 1, there is a timestamp (start time) and in column 2 there is the y values. You can also use the Write to Measurement File. I don't often use Express VIs but I believe it saves the start time in the header and in column 1, there are relative times based on dt. Column 2 has the y values. If you want to use the Write to Spreadsheet File, then the Y array from the Build Waveform can be wired to it. This doesn't save the sample rate and if you want this, you will have to decide how to save it in the file.

Saw your other post after I had written this. The Export Waveforms to Spreadsheet File does save data in a column.

Message Edited by Dennis Knutson on 08-14-2007 12:10 PM

0 Kudos
Message 20 of 36
(1,574 Views)