LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I add a time column on my tabular data


@Zaqf wrote:

I just need a time column in my express table 


Are you saying this checkbox does not work for you?

 

ITsTime.png

Message 11 of 59
(731 Views)

This actually works buh I'm getting the date and month , not the accurate second at which the temperature is recorded . 

0 Kudos
Message 12 of 59
(727 Views)

@Zaqf wrote:

Before all this , should I use a while loop on one sample or continuous sample , for measuring temperatures with my thermocouple , so that I can easily tabulate the time and temp


You need to provide more details. What is the sampling rate? How accurate does the rate need to be? What is the overall program architecture? What are the capabilities of the hardware? What's the max number of rows in the table (surely you don't want to have millions of rows and ultimately run out of memory, right?)

 

(None of your questions can be answered without more info. It's like asking "I need to disassemble some gadget, should I use a wrench or a screwdriver.")

Message 13 of 59
(726 Views)

@Zaqf wrote:

This actually works buh I'm getting the date and month , not the accurate second at which the temperature is recorded . 


You can right-click the express VI and "open front panel". Now change the time format from %c to something you like better and save under a new name.

 

(Since it is re-entrant, use ctrl+m to edit. time format code can be found in the help).

 

Still, I would get rid of the express VI and use "real" code instead. 😄

Message 14 of 59
(724 Views)

Thank you so much for your time.  And I wanted to know if I could save the block diagram as well as front panel , and use it some other time so that I could edit them ? 

0 Kudos
Message 15 of 59
(713 Views)

@Zaqf wrote:

And I wanted to know if I could save the block diagram as well as front panel , and use it some other time so that I could edit them ? 


Front panel and block diagram always come together as a single VI. I am not sure why you even think you can save them separately. Once you have a VI and defined connector pane, you can use it anywhere as subVI.

 

Remember, NEVER overwrite system VIs!

 

(If you want to create you own new express VI, it's possible but not easy and probably not worth the effort.)

Message 16 of 59
(699 Views)

I've attached the pic . I just wanna change the date to exactly time In seconds.

0 Kudos
Message 17 of 59
(687 Views)

Your option are as have been highlighted:

  1. Move away from the Express (blue) VIs, and generate an array of time values then add those to your table (this is the much better option!!)
  2. Modify the Express VI (that specific instance, not all Express VIs of that type) by:
    1. Right click on Exp VI for Build Table - choose Open Front Panel
    2. Click convert
    3. Open the yellow item in the newly created VI
    4. You should now be looking at "subBuildTable.vi"
    5. Choose "Change to Edit Mode" from the Operate menu
    6. Click File > Save As, choose "Substitute Copy for Original"
    7. Double click on the ".." at the top of the dialog that pops up. You'll end up with a normal file dialog
    8. Go to where you want to save the VI, save the VI
    9. Open this new VI, directly from your project view (you are using a project, right? 😄 )
    10. Change the %c in the middle to a different format string, for example "%H:%m:%S%3u" which gives hours:minutes:seconds.3decimals. Read about the possible timestamp format specifiers using the "Help" option when right clicking on the node to which it is attached and choosing the hyperlink at the bottom labelled "Time Format Codes".

GCentral
Message 18 of 59
(682 Views)

I don't see the %c . Where is it?

0 Kudos
Message 19 of 59
(680 Views)

c.png


GCentral
Message 20 of 59
(671 Views)