LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help with serial

like this ,but how to adjust how fast points change

and thats what i want to know

0 Kudos
Message 41 of 46
(1,476 Views)

like this ,but how to adjust how fast points change

and thats what i want to know

0 Kudos
Message 42 of 46
(1,476 Views)

No. The y array should be what you have gotten from the serial read. You are only passing a single read, not the contents of the chart, and the dt would either be the inverse of the sampling rate of the DAQ or inverse of the delay time in your LabVIEW loop (which I don't that you have).

 

Post your VI with some actual data in the chart. Run then go to the edit menu and select Make Current Values Default. Save. Attach.

0 Kudos
Message 43 of 46
(1,466 Views)

i take samples every 0.5 s so i put dt =0.5 s but i noticed that the frequency of the wave after read from serial

is changing not constant as i put it

it supposed now that the wave form has constant frequency but it is also changing exactly like wave after read from serial this vi cotain data i stored it

Download All
0 Kudos
Message 44 of 46
(1,458 Views)

this is modified vi

0 Kudos
Message 45 of 46
(1,457 Views)

You were told quite a while ago to put a loop aound the read. You've ignored that. You really have an unknown acquisition rate. You also appear to get large amounts of data at once and update the chart with multiple points. You'll have cheat and use the dt from the a/d in the micro.

 

Wiring the raw binary data to the filter is wrong. It also needs the timing data.

 

p.s. Putting the write function outside the loop is just wrong.

0 Kudos
Message 46 of 46
(1,448 Views)