07-21-2010 03:51 PM
i just need to replace the Emant config analog .vi for the one you said before?
07-21-2010 03:53 PM
@Ravens fan
Do you have any ideia of what changes do i need to make? and how i do that? sorry for my ignorance...
07-21-2010 04:09 PM
NO!
You should try replacing the Read Analog. This will break your existing VI. Delete everything and just have the Read Analog 16 Bit Waveform wired to a graph.
07-21-2010 05:19 PM
i have tryed what you said and i came up with this, but i can't do much with this, i need a constant flow of data like my inicial vi....
Do you think that for example in a test that i'm going to do, a crash test where i get lot's of values in a short period of time, i'll lose much information if i use my inicial vi?
for the previous tests i've done, the application recorded the event, but i don't know how good is the data i get... if i have lost too many data while the event occur or not....
i send in attachment the vi i did following your instructions and a PDF with some previous tests i've done for you to see the kind of data i'm expecting to have.
07-21-2010 05:25 PM
You would get a continuous stream of data if you set the while loop's termination terminal correctly. Change it back to Stop if True.
And why did you delete the function that sets the sample rate? I told you to just delete everything inside the while and you go and create a brand new VI without the initialization functions.
07-21-2010 05:42 PM - edited 07-21-2010 05:44 PM
It seems you never looked at the examples that come with the driver. There is an example called EMANT300 Example PWM and 16 bit Waveform. Get rid of the pwm stuff.
edit-nevermind. It seems you did see this but just edited it badly.
07-21-2010 05:53 PM - edited 07-21-2010 05:53 PM
No i've never looked at the driver... it seems that example works better than the vi i had... now can i use my equations as i had in the inicial vi? to calculate the zero and the strain? as the save funcrion that i had on the other vi?
07-21-2010 08:41 PM - edited 07-21-2010 08:42 PM
There are some modifications you will have to make since you getting a waveform datatype. A waveform is a fancy type of cluster with t0, dt, and a Y array. You can get them with the Get Waveform Components function. You can perform the same math on a waveforms but you will have to decide what to display on your indicators. Perhaps take the mean?
07-22-2010 01:47 PM - edited 07-22-2010 01:47 PM
I understand what you are saying, but how do i get the mean of the waveform and put it on the graph?
I have tried to apply the calculations that i do on my firts vi, but i was unable to get any results as nothing appear or i always get some kind of error.
by the way, thank you very much for your patience and kindness in helping me!
07-22-2010 02:22 PM
You can wire the waveform directly to a graph. I mentioned the mean function since you have indicators that cannot display an array and you will have to reduce the data somehow.
Why don't you post the VI with the modifications? 'I always get some kind of error' is not enough of a description.