08-09-2006 12:33 PM
08-09-2006 02:20 PM
08-09-2006 02:50 PM
08-09-2006 03:24 PM - edited 08-09-2006 03:24 PM
Well, keep in mind this is a simplified vi, you can see capture.gif in previous post to see the real vi. Really it changes very little.
I use the consumer queues to show the rpm. I add the number of rollover from 16bits counter to fit the real period of each pulse. Then i can play with the 3 inputs. 1- rpm wheel. 2-rpm engine. 3- sensor Tª reading.
I used the queue to do this little calculates with formula nodes and see the engine and wheel rpm with 2 differents dials. Really no more is inside of consumer loop. Also I use when the acquisition is finished, then all the data is sent to main vi to fit the data to draw perfect curves. This vi is one subvi, which only read the serial port and show several dials, all the data is sent in array. When i close this screen all the data is sent to main vi.
Then,
1)Do you think i should remove the queue and put all inside of while lopp of serial port??.
2)I want show in little graph the curve, for that i need First sensor reading and Second sensor reading, I input this parameters in little subvi, which only takes different formula nodes, and this subvi give the data to show in little graph. Since I need 2 readings to get 1 sample, I need read 16 bytes instead of 8 bytes. Althought I would prefer only read 8 bytes and later get the old value and new value to get the same. BUt i didnt get it!. I want show in this graph one curve from the data from sensors. But i want add 1 point in each iteration to look at real time or almost real time.
I would be very grateful if you give me a little light.
Regards,Jose.
Mensaje editado por Fonsi
08-09-2006 04:08 PM
08-09-2006 04:20 PM
Hi Dennis,
Just i went to put new post and i see your post :). Thanks for your help.
Well, I have attached the real vi capture. I have modified the vi, like you told me. I have removed the queue. I have checked it with wave generator and it looks works well. And the array is updated when finish all. It seem works well.
Well, I want use the sensor 1 and sensor 2 in one graph XY. Really I get the sensor 1 = period and i got power (hp), it is y-axis graph, and sensor 2 is rpm, so it is x-axis graph. Really from this figures I only with formulates nodes get the power, to get it I need 2 points to get power, and 2 rpm readings to get the average rpm. Therefore for get the idea, simply you can imagine I can draw in XY graph the sensor 1 like y-axis and sensor 2 like x-axis directly. Maybe now is interesting use queue.
THe sensor1 = S1 and sensor2 = S2. I need use later of formula node x+65536*a
I hope you understand me now.
08-09-2006 04:51 PM
08-09-2006 05:09 PM
08-09-2006 05:14 PM
08-09-2006 05:21 PM
Yes Dennis,
I thought you are speaking to fit in this way.
Ok, then i will put read 16 bytes... later are 6 readings. 2 each sensor. I put like in capture, and it works, i forgot put x and y autoscale :).
Ok, thanks for all Dennis. I learm a lot with you. Here in Spain are 0:20, so I will test tomorrow with 2 readings from serial port and charts XY.
Thank you very much!.
Regards, Fonsi.