04-12-2019 09:32 AM
Hello all,
I'm currently connecting an Omega HHP82000 digital manometer and an Omegaette HH311 Psychrometer through raw USB using NI VISA. LabVIEW sees the devices and is able to obtain data from them, but the data only comes in various ASCII symbols, specifically "x", "€", and "⁰". If I re-run the test, the order of these symbols changes, so I'm pretty sure that there is different data coming consistently through the device. Is there a way for me to get legible numerical values from this output that I can then manipulate through equations?
04-12-2019 10:01 AM
Several options are available depending on what is coming across the USB link.
Try using LabVIEW help to read up on the following functions.
Of corse, the other option is to change the data coming out of the insturments. Pretty sure if you read the manual, there will be options for changing outputs to regular ascii characters. (as apposed to binary data) Keep in mind there well be a performance hit using ascii.
04-12-2019 02:33 PM
The best way to do this is to start by reading the manual. It should tell you how to interpret the "symbols". Maybe they represent numbers in binary, like U8 or I32, or doubles.
04-14-2019 10:53 AM - edited 04-14-2019 10:55 AM
I realize I should have mentioned that the data is coming through an RS232 to USB cord. I tried all three of those options, and while it did convert it to a readable value, the value is usually somewhere around 2 billion. If I place it in a loop, the number consistently changes regardless of if I hold the data on the device, which leads me to believe that it's reading something other than the value displayed on the device's screen. Here's what I currently have. I couldn't find anything related in the manuals so that was a dead end as well. Any advice will be appreciated.
Thanks
04-14-2019 11:33 AM - edited 04-14-2019 11:35 AM
Hi yoshable,
I realize I should have mentioned that the data is coming through an RS232 to USB cord.
That doesn't matter.
It would be more important to attach the manual of your device - or read it yourself!
I tried all three of those options,
But you failed in attaching a VI with some default read data from your device.
And you failed in setting the string display to \-code before making that screenshot.
Did you know we cannot debug images using LabVIEW?
So please:
- attach the manual (or provide a link!)
- attach a VI with some default data from your device!
- give the expected output for the attached default data: it is much easier to provide a conversion rule when we know the expected result from your data!
On that screenshot:
There is no example VI for LabVIEW where the port is opened and closed with each iteration of your loop. So why do you do that? (Even worse: why do you open the port with each iteration, but close it only once after the loop?)