11-05-2019 09:28 AM
Hello,
I would like to receive hexadecimal data sent from a Pyrometer.
I've written a very simple VI, and I used the scan from sting vi, and set it to scan a Hexadecimal integer. I 've tried too many options, commands types and so on, but I am receiving all the time the error :
----------------
Possible reason(s):
LabVIEW: An input parameter is invalid. For example if the input is a path, the path might contain a character not allowed by the OS such as ? or @.
=========================
Command requires GPIB Controller to be Controller-In-Charge.
-------------------------
I cannot till now find what could be the problem, since even when using the probe to check the data at every line nothing seems to be working even to set up the serial parameters or send the command...
Any hints will be very appreciated.
Thank you in advance
Tania
11-05-2019 09:59 AM
Hi
Just a few questions
1) Are you sure the device is connected to com1?
2) Did you try other com ports?
3) You request 1024 bytes. Are you sure they are delivered, otherwise ask to start 16 bytes.
4) Is some handshake possible or even better an endcharacter defined like CR or LF?
11-05-2019 10:07 AM
What is the exact string you are getting back from your instrument? What is the error code and where is it coming from?
What exactly do you mean by "Hexadecimal" data. Is it an ASCII string with hexadecimal characters? Or is it raw/binary data (you can't read it in a simple text editor)?
11-05-2019 10:18 AM
Hi Albert. Geven,
thank you for your reply
Just a few questions
1) it is not all the time com1 since I 've tried different ones.
3) I've requested before that 32, was the same problem.
4) yes I used a carriage return in the command: I set it to 00mw2\r ==> then changed it to 00mw2<CR> thinking it will be working this way.
11-05-2019 10:22 AM
Hello crossrulz,
thank you for your reply.
Till now didn't receive anything from the instrument.
However today I received a reply from the support of the Pyrometer manufacture saying:
-----------------
following the byte values (decimal) which would have to be in the output buffer one after the other for the command to be accepted:(48 48 then corresponds to address 00)
48 48 109 119 50 13 (this corresponds to the command text 00mw2<CR>.
After submitting the request, wait at least 1 ms for the answer (we usually use a longer timeout; I would suggest 50ms for the application as a test).
The answer (consisting of 4 hexadecimal characters and <CR>) is then something like 0BB7<CR> which corresponds to 299.9°. As byte value: 48 66 66 55 13
---------------------------------------------
11-05-2019 11:15 AM
@Tanieta wrote:
The answer (consisting of 4 hexadecimal characters and <CR>) is then something like 0BB7<CR> which corresponds to 299.9°. As byte value: 48 66 66 55 13
Ok, that is what I call "ASCII Hex", which is a hexadecimal value represented with ASCII characters. So at least we know what the data is. Your VI should be handling this correctly.
@Tanieta wrote:
Till now didn't receive anything from the instrument.
With error you stated earlier, I am left to believe you have an incorrectly configured VISA session, most likely not using an available port.
11-06-2019 02:25 AM - edited 11-06-2019 02:25 AM
I am not sure about the unavailability of the port.
To check this problem I 've already downloaded the software provided by the manufacturer, and it was possible to receive the signal and measure the temperature.
Also in this software interface, I had to select the com port and then make a connection with the pyrometer. After that, I closed the software and set the same serial parameter in Labview and it is not working... 😕