LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB VISA WRITE 4 bytes to FPGA

hi, 

i am new to lab view. 

my requirement is:

i have to sent some(5)  bytes of data to FPGA. 
using VISA WRITE function.
 
i have tried using some VI's available as example. 
but showing some errors.
 
please review my code(attached) and suggest to overcome the issue.
 
 
0 Kudos
Message 1 of 16
(2,633 Views)

attachmets

Download All
0 Kudos
Message 2 of 16
(2,626 Views)

Hi Rajesh,

 

to send data to your FPGA you should use either access FPGA control directly or use a FIFO.

Both ways are explained in the example projects coming with LabVIEW RT and FPGA module!

 

(I guess you talk about a LabVIEW project involving a NI FPGA target, don't you?)

Best regards,
GerdW


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

no its NOT NI FPGA.

 

its xilinx FPGA . it has USB port. so i am using VISA.

I am accessing using NI VISA. 

 

 

 

0 Kudos
Message 4 of 16
(2,599 Views)

Hi Rajesh,

 

sending 5 bytes is quite easy:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 16
(2,590 Views)

i am not able to find the < array of U8> pallets.

 

i got all except < array of U8> 

0 Kudos
Message 6 of 16
(2,583 Views)

Hi Rajesh,

 

this is just a numeric array control labelled "array of U8" to make the datatype of that array clearly visible…

 

(Ofcourse that array needs to contains atleast 5 elements to be able to send 5 bytes. Btw. why did you change the subject line of your messages from "5" to "4"?)

Best regards,
GerdW


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

Is it the same pallet which you mentioned ?

please confirm ?

 

1233.PNG

0 Kudos
Message 8 of 16
(2,574 Views)

typing mistake : 4 to 5

0 Kudos
Message 9 of 16
(2,572 Views)

Hi Rajesh,

 

I labelled that array as "array of U8", but you created an "array of I32" instead.

I wonder why you did that…

Best regards,
GerdW


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