03-06-2009 09:37 AM - edited 03-06-2009 09:45 AM
After my LV crash problem, which was successfully solved. I’m encountering another problem. I want to load data from a Yokogawa (DX112) datalogger into Labview. With this data I would like to perform some calculations.
I’ve downloaded the Yokogawa DX112 library (with some VI’s) for Labview, in order to get measurement data from the datalogger. When I try to set up a direct communication in between the computer with Labview and the datalogger over the Ethernet, I can get the measurement data without any problem.
When I’m programming the communication in the FPGA LV interface (I copy and paste the code from the downloaded Yokogawa DX112 VI’s into my FPGA VI), I’m getting a bunch of errors. The communication cannot be established.
I’m programming an FPGA code in order to be compiled to a cRIO-9073, which will execute the FPGA program independently.
Here you can see the FPGA VI with the copied code from the downloaded Yokogawa VI:
The copied code from the downloaded Yokogawa VI:
As you can see, this code consists of several subVI’s. For example, this copied VI named ‘Getting Started’ uses the subVI named ‘Initialize’, the subVI ‘Get Measurement Data’ (which is projected in detail, not in the shape of a functionblock like the subVI ‘Initialize’..) and the subVI ‘Close’. Behind these subVI’s, there is a code, which also can consist of several subVI’s, each with his code or his subVI’s. This is an example of the error code I get, when I drag and drop the copied code into my FPGA VI:
When I execute the VI out of the FPGA interface, there are no problems at all.
But in the FPGA VI, the code seems to be totally wrong (wrong wires, wrong connections, no recognition of the integrated subVI’s and so on).
What could be the problem ? Do I have to import the Yokogawa DX112 library into the Project Explorer of my FPGA program (for the cRIO-9073) ? And if so, where do I have to drop it in ?
Regards, Kenneth
03-06-2009 10:40 AM
03-06-2009 05:47 PM
Hi Kenneth,
Strings are not supported in LV FPGA. I think what you want is to run all the network related code in RT (or Windows) and then have that code communicate with the FPGA. I don't have time right now to find the links, but there are some tutorials about getting started with CompactRIO.
Good luck.
03-08-2009 11:45 AM
Ok, thanks for the quick replies. I'm going to try to solve the problem with the scan interface which does support most of the functions.
Regards, Kenneth
03-26-2009 01:07 PM
Is it possible to use a shared variable (absolute variable), which reads data in a scan interface VI, in a FPGA VI ?
Cause I'm getting the message that the type of shared variable I've created is not allowed on the computing device.
What am I doing wrong ?
Regards, Kenneth
04-21-2009 03:56 AM