ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write a binary file per day // show the samples only 1 in 1 minute

Solved!
Go to solution

Hey Ray.R

now i saved it to LabVIEW 8.5

I hope it works!

 

 

Download All
0 Kudos
Message 31 of 59
(1,533 Views)

Thanks Edu,

 

I'll look at it tonight.  Sorry for the delay.


R

0 Kudos
Message 32 of 59
(1,530 Views)

Don't worry Ray.R

I know you have a lot of things to do

and i appreciate your help =D

0 Kudos
Message 33 of 59
(1,526 Views)

Hi Edu,

 

I looked at the code.  I need to understand a few things.

 

For instance, why do you have a Case Statement.  Both cases appear to be the same.  Is there a difference?  If so what is it and what does it do to the acquisition?

 

I'm also trying to understand why you are multiplying the 2D array with a set of 8 contants.  What does that do?  

 

There was a VI missing inside  RMS 4V 4I.vi that I could not look at.

 

I made some small asthetics improvements, but need to understand what you are trying to do before suggesting anything.

 

I installed an Eval copy of LV which didn't have the DAQmx components 😞  So I could not get a clear picture.

 

One suggestion, however, is to wire the error cluster for all DAQmx functions.

 

See the attached VI's.  I hope they were saved correctly in LV8.6  😉

 

R

Download All
0 Kudos
Message 34 of 59
(1,511 Views)

Thanks Ray, i will answer your questions!

 

First, the case structure was because I was getting an error because the second read was trying to read the data before the sample has finished, so I did that only to test, but it wont work at all.

 

Second, I'm multiplying the values for such a constant because i want to measure the voltage RMS 220V and my DAQ is USB-6009 the voltage at AI is +/-10V

so I have to take tha voltage at AI and multiply for a constant to get the correct RMS value.

Don't worry with that... I already did a lot of programs with that and works nice! But maybe you know a better way on how to do that.

 

I like the way you changed the for loop and indexing array, i will change it at my new version.

 

Now my version is a little different from that, I will upload the code so you can see and understand better

Now I have a measure of voltage and a measure of temperature.

It's working nice.. but is took too long to finish this program yet

I have a lot of things to make yet =D

 

You can give me some feedback and some tips too!

 

Thanks for your time!

Download All
0 Kudos
Message 35 of 59
(1,503 Views)

Hi Edu,

 

Sure.  I can look at it.  Can you also post the missing vi that is located inside RMS_4V_4I.vi?

 

So if I understand correctly, the code that you have within the Case Structure no longer works. 

Is that statement correct? 

 

I also have the USB-6009, so I can try running your code.  

 

The new version that you posted, is it in LV8.5?

 

RayR

0 Kudos
Message 36 of 59
(1,499 Views)

Sorry Ray.R I will upload the program at version 8.5 now!

The subvi RMS 4V4I is already upload a lot of times in my posts

i also saved it to version 8.5 too and will upload it again =D

 

Yes, at my new code I put the start task out of the while loop

so now i don't receive that error!

 

So take a look and when you have some free time

give me some feedback!

 

At the end of this year, I will do the basic I & II at LABView! 

and at july next year i will do the intermediate! 😉

Download All
0 Kudos
Message 37 of 59
(1,496 Views)

Thanks.

 

The file I was looking for is RMS_6V_3I.vi

 

R

0 Kudos
Message 38 of 59
(1,492 Views)

Oh I see now haha

my mistake

i will upload it to you! 😉

0 Kudos
Message 39 of 59
(1,488 Views)

Well Ray, Now i'm working in a new part of this program

I have to create 4 digital input to get somethings to me

like:

 

"The door is opened?" So it gives me a value 1 to Yes 0 to No

 

I never did it before... so I don't have any idea how can I make that

Could you help me with that?

 

I already took a look at DAQ MX

I have Digital Input and Digital Output which one should I use for that?

 

I'm lost on this =~~

 

Thanks

0 Kudos
Message 40 of 59
(1,476 Views)