From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-15-2010 10:02 PM
You would typecast/flatten your integer to a string and send that. Just because the LabVIEW functions send strings does not mean they are sending ASCII. A string can be anything. Be sure to use the correct integer type. One advantage of the Flatten to String is that you can set it to big or little endian.
To stop everyone from guessing, provide the manual and make and model of the instrument. Saying "Its a GPS receiver, a normal electronic device." is silly. Do you think every instrument uses the same communication format?
07-15-2010 10:05 PM
Hi KateB,
That is my point of question. If i were to use the formula node function to compute X, Y and Z (to be transmitted), the output of this function is purely integer form. I can use the cast type to convert the integer (of X, Y and Z) to string for the transmission but the receiver will not be able to receive it in integer form.
I understand that if i use a control constant, in string format, the receiver is able to receive in integer format according to what the string constant is defined. But my question now is if i were to use the formula node function where the output is purely in integer form, there will definitely be a need to convert the integer to string format for the transmission and when the receiver receives the data, it is not in the integer format that the receiver requires. So, does that mean that i can't use the formula node function in this case?
07-15-2010 10:08 PM
I cannot help anything if you don't show receiver manual.
07-15-2010 10:11 PM
Hi Dennis,
Sorry for being SILLY. I have already indicated that the device can only take in integer format value and has no means to convert the incoming data (of format other than integer) to the integer. I believe you should have come across things that you cannot disclose openly and that is why i cannot specifically name the model of the device.
07-15-2010 10:13 PM
Hi KateB,
No problem. Thank you for your suggestions. I will try out other ways to test it and will update if there is new progress.
07-15-2010 10:20 PM
@Prince Boeing wrote:
Hi Dennis,
Sorry for being SILLY. I have already indicated that the device can only take in integer format value and has no means to convert the incoming data (of format other than integer) to the integer. I believe you should have come across things that you cannot disclose openly and that is why i cannot specifically name the model of the device.
And you keep asking for help when we are all working blind. If you cannot provide the manual, fine but you should have said that at the beginning. If you cannot understand what the flatten function does and how data is represented, then you need to some additional study. Bits is bits and as long as you send the correct bits, the instrument will acknowledge them. Your comment about the formula node is irrelevant. You've gotten the same answer from me and KateB.