LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TC01 Spreadsheet Logger tweeks

Solved!
Go to solution
Highlighted

I recently purchased the USB-TC01 device.  Before purchasing I called and asked to verify that the sample app will log temp with at least 2 decimal places.  I was told that it will.  After receiving the product I found that the app that comes with the device only logs 1 decimal place.  I know the USB-TC01 has more resolution but the app just rounds to the first decimal place.  

 

The app that comes with the device is very good but will not log 2 or more decimal places.  Here is what I need and the app can do.  The sample app is an executable file not a VI. It allows you to start and stop logging without restarting the app. It clears the data from the graph each time you restart. It allows you to select the thermocouple type in the app. It allows you to select F or C and you can save the log file to any path you wish.  There is a sample VI on the NI website that they imply is the same as this included app that you can modify but it is not.  I have modified this VI to do a couple of the things that I need but I am new to LabView and I am not sure how to do a few things.

 

I want the data and graph to clear each time I click the start button.  I have it clearing the data but my problem is that when the data is saved to a log file only the last entry is saved.  I guess it is clearing the data right before saving.  Not sure how to do this.  

 

Also not sure how to get a drop down combo box to allow me to select the thermo couple type and C or F.  

 

Any help you can provide would be apprechiated.

 

VI.jpg

 

 

0 Kudos
Message 1 of 12
(765 Views)

[EDIT] Sorry, I posted before fully understanding your request.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 2 of 12
(757 Views)

If I wanted to scrap this idea and just program something in VB .net could I do that?  I guess I would need DAQmx to get the .net object.  Do I need to purchase a license to use this?  If so is there any other way to do this?  

0 Kudos
Message 3 of 12
(747 Views)

Don't scrap this idea, you're not far from a solution.

 

Try what I've attached.  I've modified the DAQ Assistant Express VI and the main,  Look at the changes I made to the settings in the Log Measurement Data Express VI.  I think I have what you described in your first post.

 

BTW, VB.net = 😛

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 12
(738 Views)

Thanks for the help.  I tried to run your example and I got the following error.  Not sure what is wrong.  

Error.jpg

 

Do I need to tie the two projects together?  I tried to modify my project to look like your example and it tries to save the log file every second and never collects any data.

 

 

0 Kudos
Message 5 of 12
(732 Views)

I can't duplicate that error.  Did you get it by running the files I attached?

 

Here's something I did last year, try it and see if it'll work.  Your problem might be in the physical channel of your device.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 6 of 12
(728 Views)

 


@jcarmody wrote:

I can't duplicate that error.  Did you get it by running the files I attached?

 

 


 

Yes, I got this error was when running your VI. I got MY app doing everything I need except allowing me to set the Thermocouple Type and F or C.

 

New.jpg

 


 

 

@jcarmody wrote:

Here's something I did last year, try it and see if it'll work.  Your problem might be in the physical channel of your device.

 


I will look at this example too.  

 

0 Kudos
Message 7 of 12
(723 Views)

You could wrap your DAQ Assistant Express VI in a Case Structure with an Enum selector, duplicate it in both cases and configure it to read Fahrenheit in one and Celsius in the other.  Maybe?

 

tc01.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 8 of 12
(721 Views)

I figured out the problem with the first example you sent me.  I had the wrong "physical channel" selected.  Now it works fine.  

 

One remaining issue.  I used your modDAQass.vi and it works good with one small problem.  When I stop logging, it saves the data but then when I start again the graph clears and starts fresh but the log data has both sessions.  How can I clear the data from the previous capture and start fresh with every start button press?

0 Kudos
Message 9 of 12
(715 Views)

Hi darbyln,

 

I was able to open and run your VI and I am not exactly sure what you would like to happen with regards to clearing the data that you are logging.  I am assuming you are referring to the output of the Export Waveforms to Spreadsheet file to be the logged data.

 

To show you what I did, I will let you know all the steps that I took to try and diagnose the issue.  When I run the VI the way it is and press Start, it will log until I press Stop. From there, if I press Start again, and then Stop, it prompts me on whether or not I want to replace the current log of the file. If I click yes, then it will override the previous data entry.

 

If you would like to have all the data files logged together, you can simply add a constant to the "append to file" node of the "Export Waveforms to Spreadsheet File.vi" and change it to "True".

 

Thanks!

 

Kim W.

Applications Engineer
National Instruments
0 Kudos
Message 10 of 12
(702 Views)