03-30-2016 04:13 PM
03-30-2016 04:19 PM
@lolasue wrote:
Yes I did. Given the references to my colleague I thought it best to do so.
The Bluetooth app came from the app store. I tried a few different ones and all read in the A1 3170 format. I will refer back to the forum once I have reviewed all of my device protocols etc.
Oh! well youve got the solution then! just ask your college how he did the parseing and conversions! and maybe even ask for the function that does it and a Call Library Fn Node is all you need!
11-23-2018 10:54 AM
Dear Ton maybe you can help me
I have an old Agilent power meter bank and the data are read out as bin block. In vee pro I can read that because the program is made for this purpose but I need to use labview. I do not have any Idea how to convert this. I saw your sentance and I though to write this message to you.
Could you please help me?
Regards
Marco
11-23-2018 01:34 PM - edited 11-23-2018 01:35 PM
Ton was refering to this type of conversion. How this has to be done exactly very much depends on the make and model of your device as well as the settings as some devices can return different formats depending on the command send.
This is from the HP/Agilent 34401 instrument driver which is by default installed with LabVIEW as an example in the instr.lib folder inside the LabVIEW folder.
Usually the returned data contains a small text header that indicates how many data bytes do follow and then the binary string is limited to that size and then typecasted. This only works when the data is in Big Endian format as that is what the LabVIEW flattened format uses. If your data is in Little Endian (and no HP/Agilent doesn't use always Big Endian) you better are using the Unflatten from String function instead of the Typecast, as that function allows you to specify the Endianess of the data stream.
11-29-2018 02:27 AM
Dear Rolf Kalbermatter
Thanks for Replay.
Yes my power meter give me the results in little Endian. I found in labview the function (i.e the icon), should just specified the little endian as number 2 in the byte order right?. I will try today if I have a spare of time. Thanks a lot for help me out. I need to integrate use this HP 8166A form agilent power meter for a test in a company and the way that Agilend store and handle the data drive me mad a bit. We are moving out from Vee pro because is too old now and we try to use Labview because is a better software.
Thanks again
Kind regards
Marco
11-29-2018 02:39 AM - edited 11-29-2018 02:44 AM
Did you checkout the LabVIEW Instrument Driver Network?
Never mind there is only a LabWIndows CVI driver for your model. That could be used in LabVIEW with the Instrument Driver Import Wizard but is generally not a good solution as the driver is hidden entirely in a DLL and you can't debug anything.
You mention that it is a Power Meter though while this is documented to be a Multichannel Fiberoptic Lightwave Meter.