04-30-2020 04:58 AM
Im trying to read data from my power instrument(usb to rs232). But I cant understand how to convert the data I receive to readable data.
I read the manual for the instrument but I cant understand how to convert the data in labview. Please help.
04-30-2020 06:59 AM
1. It does not look like you are sending the command properly. The command needs to be 8 bytes long. You are missing the 4 data bytes and the Carriage Return. Digging more into the document, it states that the DS query should have 0 for the data bytes of the command. If you change the display mode for your string constant to "\ Codes", you can easily set the data bytes to 0 (use \00 for each byte) and add the Carriage Return (\r).
2. After sending the command, you need to read 1 byte to reach the ACK.
3. The description for how to interpret the data starts on page 21 of your manual. It gets a little complicated and I don't have time to go through it all myself. But you can use Status Byte 3 to get your range and apply the data bytes (count) and the max value of the range to the equation on page 21 to get your reading.
04-30-2020 11:20 AM
I think it's pretty awesome that the OP uploaded both the VI and the manual. Made life much easier for everyone. 🙂
04-30-2020 11:30 AM
Thanks for the respons but the Erickson pm4 blew up for some reason when I turned it off and on. Luckely we had a PM5 which VDI (Virginia Diodes) had a ready made program for, I can now measuere power output. But thanks again!