LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to know when the voltage is over the X-axis

Well Ray. R

I used the convert to dynamic data... and I think it works nice.

 

But now when I convert all the 8 channels goes to a dynamic data, how can I select only the 4 to voltage, and the others 4 to current? I think before convert use a Array Subset so I select the channels I want and make 2 types of dynamic data, one with voltage and another with current. Something like that?

 

2d array para dynamic data.JPG

 

The second index and length from each array subset I don't need use, do I? 

Thanks Ray

Message Edited by EduU on 03-24-2010 07:37 AM
Message Edited by EduU on 03-24-2010 07:41 AM
0 Kudos
Message 41 of 55
(969 Views)

I didn't realize that your code was in LV7.1.  Nothing serious, but I will pay more attention to this detail.

 


EduU wrote: 

how can I select only the 4 to voltage, and the others 4 to current? I think before convert use a Array Subset so I select the channels I want and make 2 types of dynamic data, one with voltage and another with current. Something like that?

 

I'll have a deeper look at your code (actually attaching the VI would be easier).  What you say above makes sense by taking the array subset.  I noticed that you read the 2D array from a file, then you send it to a For Loop, index it and re-create a 2D array.  Are you trying to transpose the 2D array?

 

 

The second index and length from each array subset I don't need use, do I? 

Those indexes are used to index by column instead of row, so it depends what you want to do with your code.  It may replace the For Loop, but I would have to take a closer look at your code.  Can you zip up everything, including the data file(s) and post it?  It would make life easier to understand what is going on.



 

 

0 Kudos
Message 42 of 55
(949 Views)

Well so I will try to explain it to you.

 

First you will run "convert" VI so when you run it you will select a new file to generate and than you will select which file you will read.. so you select this "test gmg-3.bin" after you convert it. Go to "ledados" and open this new file there... so you will take a look at what I'm trying to doing here.

 

Maybe you can help me with another problem at this program too...

When I convert to the new file the begging of the file and the end of the file don't meet the same values from the original file.

 

But you can't open the original file with those VI's, to open the original file "teste 3gmg.bin" you will need another program.

 

Take a look, and maybe you can help me!

0 Kudos
Message 43 of 55
(941 Views)

Conversor4V4I is missing some sub-vi's: 

SubVI strip binary header.vi

conv hora.vi

Potencias4Fconv.vi

Without the above files, all I can do is open the file and get the following:

 

0000 001F 5672 2C20 5673 2C20 5674 2C20 5674 6E2C 2049 722C 2049 732C 2049 742C 2049 6E00 0001 DC00 0000 0800 0000 1937 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 40A0 0000 C0A0 0000 4120 0000 0001 3F80 0000 0001 0002 3B20 0000 0000 0000 0000 0019 3620 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2040 A000 00C0 A000 0041 2000 0000 013F 8000 0000 0100 023B 2000 0000 0000 0000 0000 1935 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 40A0 0000 C0A0 0000 4120 0000 0001 3F80 0000 0001 0002 3B20 0000 0000 0000 0000 0019 3420 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2040 A000 00C0 A000 0041 2000 0000 013F 8000 0000 0100 023B 2000 0000 0000 0000 0000 1933 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 40A0 0000 C0A0 0000 4120 0000 0001 3F80 0000 0001 0002 3B20 0000 0000 0000 0000 0019 3220 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2040 A000 00C0 A000 0041 2000 0000 013F 8000 0000 0100 023B 2000 0000 0000 0000 0000 1931 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 40A0 0000 C0A0 0000 4120 0000 0001 3F80 0000 0001 0002 3B20 0000 0000 0000 0000 0019 3020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2040 A000 00C0 A000 0041 2000 0000 013F 8000 0000 0100 023B 2000 0000 0000 0045 E5C7 8837 8E9B 3920 2020 2020 2020 2020 2020 2020 2020 2020 2020 2020 2074 6573 7465 2067 6D67 202D 2033

 


EduU wrote:

When I convert to the new file the begging of the file and the end of the file don't meet the same values from the original file.

 


I couldn't verify the above.  Can you explain what you are expecting (after running the converter)?

 

R

0 Kudos
Message 44 of 55
(930 Views)

Sorry for the late Ray, I was studying to some test so I couldn't enter before.

 

Well at the first moment I have a file that record 7200 samples and show it to me in 1 to 1 sec, when I run the converter on that file, it gives me only 1 graph with all the time I measure like, When I select Voltage and Current it shows me a unique graphic since I started to monitorate until I finish.

 

But my problem is, When I convert, this new file in the beggining and in the end the values don't matter with the original file.

So I think something at my logic is wrong.

 

I will upload the Vi's sorry for that

0 Kudos
Message 45 of 55
(913 Views)

Ray, I look here and the beggining of file is correct, I'm only having problem with the end of the file.

You can see because in sometime near the end the values drop and make a line until the "end" of the file.

but the real file finish just in the time when the value drops and appear that line.

 

Thanks, I hope you can help me on that!

0 Kudos
Message 46 of 55
(904 Views)

Another question Ray,

Remember the calculate we did to know when the graph will be positive at X axis? and we know if Voltage come first, or bouth come at same time and if Current come first.

 

Now I have a constant and I need to do some calcules with it depends on that condition.

 

Like, if Voltage come first I don't do nothing with the constant.

if Current come first I need multiply to -1 the constant and if bouth cross X axis at the same time the value of this constant is 1.

 

How can I make that?

 

Thanks

0 Kudos
Message 47 of 55
(896 Views)

I just briefly looked at the posts this morning.  It's a busy day for me, so I will need to come back and look at this.

 


EduU wrote:

 

Remember the calculate we did to know when the graph will be positive at X axis? and we know if Voltage come first, or bouth come at same time and if Current come first.



I thought it did this already.  You should have boolean indicators that light up to show which one first crossed the x-axis.

 

I will return later to read your other posts.

 

0 Kudos
Message 48 of 55
(894 Views)

Ray, this case I already solved here!

 

I made a case structure with another one inside, and works fine.

 

I only need now the error at the end of the file, and how can I show Power factor in a graph because isn't a "commum" graph. =/

0 Kudos
Message 49 of 55
(884 Views)

Hey Ray. R

 

Sorry for the time I don't log. It's because I was studying for some exams at unniversity.

 

Now I'm back, do you took a look at the VI??

 

Thanks

0 Kudos
Message 50 of 55
(817 Views)