LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Beginner with Labview FPGA input problem

Solved!
Go to solution

Hi guys,

 

I'm trying to begin with a little project acquiring the frequencies distribution of a signal. And a simple VI is shown below. The problem is that the input is void. The crio controller and module is connected correctly(i can see it on NNI Max) and I connected the device successfully(project explorer). What can be the problem?

I'm using Labview2018 32-bit.

VI and Error List.PNG

0 Kudos
Message 1 of 7
(3,493 Views)

Hi ZeSuli,

 

your VI is set to run on your host computer: do you see that "My Computer" in the lower left corner of the block diagram?

And your host computer CANNOT access the FPGA IO node…

 

I strongly recommend to take the tutorials for cRIO and FPGA programming.

Also examine the example projects coming with LabVIEW.

For each cRIO module you will also find example VIs and projects!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(3,480 Views)

 

 

Agree with response, What you should see in the Project is the RT hardware 'Tree' and under it the Chassis, FPGA and modules, From the modules, you'll see the I/O.

If it is shown there, then it is a valid I/O to place in your code.sbRIO Project View.png

Regards

Jack Hamilton 

 

0 Kudos
Message 3 of 7
(3,468 Views)

Hi,

Thank you for your answer. I don't know if this is what you mean but I actually have the Input port showed in the explorer. Did I do anything wrong? I appreciate the answer saying that I'd better go through the tutorial, which is absolutely right. But I need the results for the time being.

Capture1.31.2019.PNG

0 Kudos
Message 4 of 7
(3,453 Views)

Hi ZeSuli,

 

now the VI is in the right subtree of the project, but in your previous image it is clearly executed in the "My computer" context.

 

How do you run that VI?

Have you even compiled the VI for your FPGA? (There is no BuildSpec apparently!)

Best regards,
GerdW


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

Hi GerdW,

 

Thank you for your reply. I don't quiet understand what you mean. The VI is currently not runnable. And I didn't do anything to the project. I'm currently using crio 9056 and can't find any examples(maybe it's too new). I went through the "getting-started" section of fpga on ni.com but there's no such problem that the input is void(when he drag&drop the input there is a sin-wave symbol in the left corner of the box while I have nothing as you can see). Do you have any recommedations?

 

Best Regards

 
0 Kudos
Message 6 of 7
(3,440 Views)
Solution
Accepted by topic author ZeSuli

Hi ZeSuli,

 

there is an example specifically for your NI9244 module. Have you tried that?

(I just searched for "9244" in the example finder!)

 

there is a sin-wave symbol in the left corner of the box while I have nothing as you can see

Because that VI is called in the wrong context: you need to open it from its FPGA context…

 

When you open the VI it has to tell you this:

check.png

I underlined that "FPGA Target": this is the context the VI is set to run in! To have access to FPGA IO you need to run the VI in the FPGA! From "My Computer" it will have no access to FPGA IO…

Best regards,
GerdW


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