LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save data to excel

i just need to replace the Emant config analog .vi for the one you said before?

0 Kudos
Message 11 of 23
(1,526 Views)

@Ravens fan

 

Do you have any ideia of what changes do i need to make? and how i do that? sorry for my ignorance...

0 Kudos
Message 12 of 23
(1,526 Views)

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.

0 Kudos
Message 13 of 23
(1,514 Views)

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.

Download All
0 Kudos
Message 14 of 23
(1,506 Views)

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.

0 Kudos
Message 15 of 23
(1,502 Views)

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.

0 Kudos
Message 16 of 23
(1,494 Views)

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?

 

0 Kudos
Message 17 of 23
(1,483 Views)

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?

0 Kudos
Message 18 of 23
(1,472 Views)

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!

0 Kudos
Message 19 of 23
(1,463 Views)

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.

0 Kudos
Message 20 of 23
(1,456 Views)