LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want 2 cursors on the graph move simultaneously AND the value from .lvm data are imported to the wrong column in the table in Front Panel. How to fix?

Hello there again! I have another problem here.. As seen from the attached photo below, ive circled two spots in the image. (two orange round) ..

 

My first problem is .. On the bottom of the picture is the graph where Current curve and Voltage curve are plot together in one single graph. As you can see, there are two cursors on the graph. How do I make , when I drag one cursor to the right, the other cursor also move to the right and when i drag the cursor down, the other cursor also move down and vice versa. 

 

Another problem i have is, as seen on the left hand side of my screen shot, is the image of a table, where it consists of 3 colums.. Time (Zeit) , Voltage ( Spannung) and Current (Strom).. These data are imported from .lvm data ... this file also is attached below.. However, The data are imported wrongly to false column.. The numbers in the first column should be in the second column, and the numbers in the second column should be in the third column.. How do i fix this??

 

My last question is, how to make, when i move the cursor on the 3rd graph (Voltage-Current Time graph), i want the table to automatically bring me to the corresponding row where it shows the current and voltage read on the graph... Is it possible?

 

 

 

Thanks so much in advanced!

Download All
0 Kudos
Message 1 of 16
(3,438 Views)

 


@apapa wrote:

How do I make , when I drag one cursor to the right, the other cursor also move to the right and when i drag the cursor down, the other cursor also move down and vice versa. 


Use a cursor move event. It will tell you the cursor index of the moved cursor and the new coordinates. update the coordinates of the "other" cursor accordingly. See how far you get.

 

 


apapa wrote:

Another problem i have is, as seen on the left hand side of my screen shot, is the image of a table, where it consists of 3 colums.. Time (Zeit) , Voltage ( Spannung) and Current (Strom).. These data are imported from .lvm data ... this file also is attached below.. 


You did not attach the data file. Please attach the data file AND a simple VI showing how you read the file. We cannot help unless we see what you are doing.

 

 


@apapa wrote:

 

My last question is, how to make, when i move the cursor on the 3rd graph (Voltage-Current Time graph), i want the table to automatically bring me to the corresponding row where it shows the current and voltage read on the graph... Is it possible?


Again use a cursor move event and get the cursor index from the event terminal. Use it to index into your data array or to select the desired row in your table.

 

 

0 Kudos
Message 2 of 16
(3,430 Views)

Hello thanks for the reply. Will get back to you after i try the solution given.

Attached below is the sample of my .lvm data .. how ever i cannot post any .lvm data format here.. but given below is the .txt data..

0 Kudos
Message 3 of 16
(3,427 Views)

I still cannot find the code where you read the lvm file. Can you attach that?

0 Kudos
Message 4 of 16
(3,424 Views)

Sorry i am really a newbie in this.. When u say u need the code where it reads the lvm data, does that mean u want me to attach the .vi file of my block diagram? :-s

0 Kudos
Message 5 of 16
(3,422 Views)

 


@apapa wrote:

does that mean u want me to attach the .vi file of my block diagram? :-s


A VI includes the front panel and the block diagram. Just attach the VI that contains the code that reads the file.

 

0 Kudos
Message 6 of 16
(3,415 Views)

I made a screen shot of the code u need in.. Is this the one u need?

The first screen shot is how to read the data and import the lvm data..

The second screen shot is to form a table based on the data..

 

 

 

 

Download All
0 Kudos
Message 7 of 16
(3,411 Views)

OOkay how do i save it in LV8.6.. im using it in LV version 10.. I have in another compiter LV version 8.6, but when i want to open the file in this version LV 8.6 i cannot open it.. :-s

0 Kudos
Message 10 of 16
(3,379 Views)