LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA WRITE FUNCTION

I'm have connected string control to visa write inside the while loop, and I'm trying to write data to STM32 via UART so an orange led can blink , so i want to understand in which format does visa write function send string data???
I tried but its not working.
can someone help?

0 Kudos
Message 1 of 5
(81 Views)

Please watch this before you proceed - https://labviewwiki.org/wiki/VIWeek_2020/Proper_way_to_communicate_over_serial

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 5
(80 Views)

Hi Anup,

 


@Anup13 wrote:

i want to understand in which format does visa write function send string data???


A string is basically a byte array in LabVIEW, and VISAWrite will transfer that string/bytearray as is.

 


@Anup13 wrote:

I tried but its not working.


What did you try?

What is "not working"?

Do you get any errors?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 5
(46 Views)

I'm not getting any error in labview block diagram and front panel.
i used string indicator also to indicate that data is being sent but its not showing in stm32.
now im trying to debug in cube ide that if data is recieving in stm32 buffer or not?

0 Kudos
Message 4 of 5
(42 Views)

Hi Anup,

 


@Anup13 wrote:

now im trying to debug in cube ide that if data is recieving in stm32 buffer or not?


Yes.

Does the STM32 code expect/require any TerminationChars in your string message?

(As has been said before: watch the video linked in the previous message!)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(33 Views)