LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need yout help, with a labview program

Hello good evening I need your help, I am learning labview but I don't know much about this great software....

My problem, I need that the user can choose between 1 hour or 2 hours, to plot data and also save in excel the temperature in which the system is working with date and time ....
But it should only work during the period of date and time chosen by the user.

Example if the user chose to start the system on a Monday from 9 am and finish working the system the following Friday at 9 pm , and he chose to save data every 2 hours while the system is working. How do I do that, that it saves during that period only the data every 2 hours.

Attached image and file

 

Thanks for your help

 

Alfgr75_0-1615606937551.png

 

Message 1 of 6
(1,805 Views)

Try adding a shift register to track the last time you logged. Something like the following can be added to the code you already have:

 
 

Time Tracker.png

 

and you will AND the time lapsed with your existing current time in range. You should also check the Boolean comparison direction of current time to start time in your code.

 

You can also use probes and highlighting to see what the code is doing while running.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
Message 2 of 6
(1,776 Views)

Thanks, Doug for the answer but I still have doubts, how do I make the user choose to save data in 1 hour or 2 hours.

 

 

And another question, how do I save data in Excel and also graph the signal as the data is being saved, these go inside the while loop or outside.

 

thanks

0 Kudos
Message 3 of 6
(1,719 Views)

how do I make the user choose to save data in 1 hour or 2 hours.

You can change the time threshold from a constant to a control. If you are expecting a user familiar with your program, just give the user the ability to set the logging interval on the front panel. When the logging threshold is exceeded, log and reset the log time as described previously.

 

 


graph the signal as the data is being saved

Wire the data to a chart, and configure the history length per your requirements.

 


how do I save data in Excel

Check out the File I/O Examples in Example Finder.

Doug
Enthusiast for LabVIEW, DAQmx, and Sound and Vibration
0 Kudos
Message 4 of 6
(1,648 Views)

I don't understand 100% what you mean with this.

What's exaclty the propose of the project.?

0 Kudos
Message 5 of 6
(1,597 Views)

Hello Saulo Gen, I explain the project turns on a heater during periods of date and time.
I have 2 periods of date and time one that is the main one and the second period that is used for when the main period ends this takes the place of the main one and continues the process of continuing to work the heater.


I asked for help because I do not know how to make the panel has 2 buttons to save the temperature, date, and time to save this data in Excel and plot this data to provide the temperature.


But these buttons one is to save and graph the data every 1 hour during the period that is working and the second button is that every 2 hours save and graph the temperature, date and time.

 

Example of how the period works:


- Main Period
The start of the process is Monday at 9 am and ends Wednesday at 5 pm.

 

- The secondary period that when the main period ends, it replaces the main one.
The secondary period starts Thursday at 8:30 am and ends Sunday at 8 pm.

 

I want to save and graph this data either every 1 hour to save data or every 2 hours, and not save every second the information because it is a lot of data to save.

 

Can you help me?

 

0 Kudos
Message 6 of 6
(1,578 Views)