LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot array horizontally on Build Table

Hi,

i have 2 question

1) how to plot array horizontally on Build Table ? 

2) how to change Date/Time realtime same as PC Date & Time on Build Table ?

this is my screenshot

Array Horizontal 3.jpg

0 Kudos
Message 1 of 10
(4,367 Views)

You have to obtain the computer time at the time the values are created (each individually). See the attachment for a solutions using primitives.

 

A curious question: Where did you find Build Table Express VI? I cannot ind it when searching for a VI.

0 Kudos
Message 2 of 10
(4,345 Views)

Hi ghighuphu,

 

Sorry for delay to reply, its almost like what i want but i mean the time&date is just one column on the left column, and the data on the right of time&date column.

Array & Date.jpg

 

 

sorry i`ll attach my VI 

0 Kudos
Message 3 of 10
(4,307 Views)

Transpose the array before you wire it to the indicator.

0 Kudos
Message 4 of 10
(4,297 Views)

Hi Ravens,

 

i tried it but still didnt understand, the data turn right one by one, sorry for my bad experience on Labview

 

Array & Date.jpg

 

 

0 Kudos
Message 5 of 10
(4,284 Views)
There is only one other possible outcome 🙂 Do you want the data row first and then the time row second? Then you have to separate the two lines (array elements) and change their order (concatenate arrays).
0 Kudos
Message 6 of 10
(4,277 Views)

Hi rhiesnand,

Express Vis in LabVIEWs are easier ways to implement but has limited customisation and functionality.

please see the attached screenshot. this is the optimised way to get your requirement done.

 

1) Use transpose 2D array to get your first solution

2) Use date/ time string VI to get the current date and time then create a 2D array out of data and time.

 

 

HTML tutorial  HTML tutorial
162+ CLDs & 10 CLAs Trained
LabVIEW Training resources
0 Kudos
Message 7 of 10
(4,265 Views)

Hi ghighuphu,

 

Right, that exactly what i need. so the data will be like this

 

Array & Date.jpg

 

| Time&Date | Data1 | Data2 | Data3 | Data4 | Data5 |

| Time&Date | Data1 | Data2 | Data3 | Data4 | Data5 |

| Time&Date | Data1 | Data2 | Data3 | Data4 | Data5 |

| Time&Date | Data1 | Data2 | Data3 | Data4 | Data5 |

| Time&Date | Data1 | Data2 | Data3 | Data4 | Data5 |

| Time&Date | Data1 | Data2 | Data3 | Data4 | Data5 |

 

did you get it what i mean ?

 

 

Hi ramktamu,

 

if using that i think the data will write on the table continously to the right column.

 

0 Kudos
Message 8 of 10
(4,250 Views)

Hi rhiesand,

Sorry I misunderstood your requirement.

 

The corrected answer as you required is attached is as follows.

Screen Shot 2014-06-09 at 19.17.41.png

 

But this code will not add for new date. you will require a while loop and shift register to check if the date has changed for further modification.

The above code works perfectly as per your requirement.

HTML tutorial  HTML tutorial
162+ CLDs & 10 CLAs Trained
LabVIEW Training resources
0 Kudos
Message 9 of 10
(4,232 Views)

This is one of those times when the express vi is really being used as a "Screw-Hammer"  It is not intended to do what you desire.

 

Try this

!1-1.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 10
(4,220 Views)