Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Some problem about AI, AO and comparison function

Hi, I'm a new user for FPGA with CompactRIO. I have two questions.
 
The first is. when I use the example as the attached file. The data I read from the AI (which is connected to a AO) is not I want. The number alway pulsate.
Even if I connect the AI with groud, the number in the front panel is 32768 (2^15) instead of 0.
 
The second question is as the attached file. When I use comparison function in the program (as the bigger function in the third while loop), the compile server will always in the "idle" status even for hours! Can't I use any comparison function in FPGA? I don't think so because the attached file is a NI example.
 
Can anyone please tell me how to solve these problems? Thanks you very much!
 

由 Real-Time Measurement and Control 在 09-01-2006 07:52 PM 上編輯的訊息

0 Kudos
Message 1 of 5
(3,779 Views)
Hello,
 
 
1. For your seemingly strange data readings, double check your physical connection between AIx and AOx, and make sure you're reading the AOx you're connected your AIx to.
2. For compiling your attached VI, I was able to compile it without a problem.  Are you able to compile other FPGA VIs?  If you definitely feel it is linked to the "greater than" comparison function, try creating an even simpler VI and comiling it - does it also fail?  Have you modified the code in any way since posting it - ie. is the posted version definitely the version that fails to compile on your end?
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 5
(3,744 Views)

The problem with the comparison function may be related to the problems found in this discussion forum.

http://forums.ni.com/ni/board/message?board.id=170&message.id=185556&query.id=212969#M185556

Regards,

Joseph D.

0 Kudos
Message 3 of 5
(3,725 Views)
Hello,
 
That link is potentially it - check your rights to that folder.  Also, can you post a screenshot showing the idle state - I'd like to see what's been logged up to that point.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 4 of 5
(3,722 Views)
PS - if not the screenshot, what is the status?... if it's Successful Compile, then it has compiled!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 5 of 5
(3,720 Views)