09-29-2009 06:29 AM
Hey Ray.R
now i saved it to LabVIEW 8.5
I hope it works!
09-29-2009 07:34 AM
Thanks Edu,
I'll look at it tonight. Sorry for the delay.
R
09-29-2009 07:42 AM
Don't worry Ray.R
I know you have a lot of things to do
and i appreciate your help =D
09-30-2009 02:49 PM
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
10-01-2009 10:46 AM
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!
10-01-2009 11:27 AM
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
10-01-2009 11:41 AM
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! 😉
10-01-2009 12:05 PM
Thanks.
The file I was looking for is RMS_6V_3I.vi
R
10-01-2009 12:16 PM
Oh I see now haha
my mistake
i will upload it to you! 😉
10-01-2009 12:46 PM
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