LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ecart vi write visa et NI trace

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(176 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(155 Views)

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,

Download All
0 Kudos
Message 3 of 6
(125 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(120 Views)

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).

 

ben64_0-1738158760277.png

ben64_1-1738158971444.png

 

Ben

 

0 Kudos
Message 5 of 6
(109 Views)
Solution
Accepted by topic author Stephan.SOUCHON

I found where my problem comes from. In Notepad++, display all characters, the charaters STX is present.

0 Kudos
Message 6 of 6
(100 Views)