10-10-2015 03:10 AM
Hello,
I'm trying to read and work with weight values from an Ohaus scout pro scale connected thru the serial port, so far I'm only able to concatenate the string sent by the scale and display it on the front panel.
The purposes of my application is to weight 10 items and calculate the average weight which will then serve as a reference in order to detect further items outside 2 standard deviations from the average but I'm stuck trying to get the scale data inside an array. I've read several posts where the build array, spreadhseet string to array, while loop, for loop and shift registers are mentioned but I haven't been able to figure out how to put everything together to make it work. I'm posting an image from what I have so far, as you can see I'm only able to fill the first cell of the array which then is replaced with the subsequent scale reading.
Thanks in advance for your help.
Alberto.
Solved! Go to Solution.
10-10-2015 10:46 AM
10-10-2015 11:50 PM
Hi Dennis,
Thank you for you prompt response.
I'm just starting with Labview so I might not get what you mean at the first time. I deleted what I have and used the Frac/Exp string to number function to convert the string to number which I then connected to the shift register on a while loop, inside the while loop I used the build array function and that's how far I got...can you please again point me to right direction?
Regards,
Alberto.
10-11-2015 01:50 AM
10-14-2015 12:02 AM
Finally I make it work, every time bytes at port are detected the value coming from the scale enters de case structure, then the build array and the FOR loop take care of the rest. I hope this can help someone else strugling like I did to save some time.
Regards,
Alberto.
09-18-2019 08:13 AM
hey alberto, i hope you get this since youve uploaded 4 years ago :)... im working on a project for my university and i saw your work. impressive, but i want to ask you if this connection works for DAQ assistant or not and how i can work it out? if you remember.. thanks a lot
09-18-2019 08:40 AM
@NedalAbuzaid wrote:
hey alberto, i hope you get this since youve uploaded 4 years ago :)... im working on a project for my university and i saw your work. impressive, but i want to ask you if this connection works for DAQ assistant or not and how i can work it out? if you remember.. thanks a lot
DAQ Assistant is only useful for NI DAQs. So no.