01-29-2025 02:01 AM
Bonjour,
Je rencontre un problème entre la trame que je souhaite envoyer sur une UART avec le write visa.
La trame que je souhaite j'envoie est la suivante : gst-launch-1.0 pulsesrc device=alsa_input.platform-sound.28.analog-stereo ! pulsesink device=haut-parleur &
Mon produit me retourne une erreur dans le format de la trame et lorsque je regarde els trace avec NI trace ma trame est la suivante : gst-launch-1.0 pulsesrc device=alsa_input.platform.-sound.28.analog-stereo ! pulsesink device=haut-parleur &
Il y a un "." qui est rajouté entre "platform" et "-sound" et je n'arrive pas à comprendre.
Avez-vous déjà rencontré ce genre de problème ?
merci de votre support.
Solved! Go to Solution.
01-29-2025 05:43 AM
Hi Stephan,
@Stephan.SOUCHON wrote:
Hello,
I have a problem between the frame I want to send on a UART with the write visa.
The frame I want to send is the following: gst-launch-1.0 pulsesrc device=alsa_input.platform-sound.28.analog-stereo ! pulsesink device=loudspeaker &
My product returns me an error in the format of the frame and when I look at the trace with NI trace my frame is the following: gst-launch-1.0 pulsesrc device=alsa_input.platform.-sound.28.analog-stereo ! pulsesink device=loudspeaker &
There is a "." which is added between "platform" and "-sound" and I can't understand.
Have you ever encountered this kind of problem?
thank you for your support.
LabVIEW will not add any chars in your message data on its own, so the problem most probably is in your code.
Unfortunately you didn't attach any code so you need to debug on your own…
01-29-2025 07:00 AM
Hi,
sorry, i'm not regular user of NI Forum. I attached the vi and NI Trace captur.
The vi is works fine with other frames.
Best regards,
01-29-2025 07:11 AM
Hi Stephan,
@Stephan.SOUCHON wrote:
sorry, i'm not regular user of NI Forum.
I see…
Did you notice my signature line? I cannot open your VI due to the LabVIEW version you use. Please attach a downconverted version of that VI (File->Save for previous). I prefer LV2019…
01-29-2025 07:59 AM
There is no "." added to the VISA Write. If you look at the buffer you can see that at the "." location the value is 0x02 wich is ASCII for Start of Text. This is a non-printable character and these characters are represented by a "." in the ASCII field. You can check the string to be sure there is no such character in it (copy it to a string control and change the display to hexadecimal and delete it if necessary).
Ben
01-29-2025 09:25 AM
I found where my problem comes from. In Notepad++, display all characters, the charaters STX is present.