01-06-2011 11:19 PM
I spent whole day to solve this issue so someone please help me!
I have two types of data to record, displacement, and time. I looked up NI EXAMPLE FINDER and copied the format to create text file. but the file dialog doesn't pop up. So i thought i did something wrong with the dialog function but when i just copy the first part of my code, the dialog pops up. Can anyone check my host vi and tell me what's wrong? i uploaded the target vi as well.
I use crio 9074 and the vi's are done in fpga mode.
Solved! Go to Solution.
01-07-2011 05:38 AM
Hi Ultrafrog,
Are the vis RT vi or FPGA vi?
In FPGA you cannot have file I/O. But you should be able to do this in RT. From your vi it seems you are trying to implement it on FPGA.
01-07-2011 07:22 AM
"done in fpga mode"?
01-07-2011 10:56 AM
I'm trying to control my crio 9074. I thought it's both RT and fpga mode. I read the description on web that i can use either fpga mode and scan mode interfaces. The project is created by fpga wizard.
So i can not create text file? But i want to record my data. What other options do I have?
01-07-2011 11:01 AM
I have both RT and fpga module installed. the project is created by fpga wizard on "Getting Started" window.
01-07-2011 11:04 AM
Sorry I clicked found solution button by mistake
01-08-2011 01:04 AM
Regarding your project can you tell me what exactly are you trying to implement and how? What part are you trying to implement on RT and what on FPGA? Where do you want to implement file I/O?
Well I think you need to go through FPGA and RT tutorial.
I would also recommend you to check with your local NI office about next RT & FPGA training. That will definitely help you a lot.
01-08-2011 04:33 AM
I am trying to get position data from my quadrature counter and time from tick counter. In host VI, i want to output text file which lists time and corresponding positions. I didn't really understand the rest of your questions. I don't know the difference between RT and FPGA. Does FPGA means my compactrio? and RT means my host pc? If that's the case, I want to count the quadratures from my optical encoder and calculate position in compactrio and sample the position data and time data by my host pc.
I guess i should start reading the tutorial. But could you tell me how I have to fix the code to output text file? There is nothing much in the project file. the project is created by FPGA wizard and just those two vi's are added.
01-10-2011 11:54 AM
Ultrafrog,
A CompactRIO is composed of two subsystems: a Real-time Operating System and the FPGA. So within every CompactRIO you can program for both. I would recommend implementing the quadrature encoder calculations on the FPGA and handling the File I/O and networking in Real-time. It does not cover the File I/O or networking but this example will send you the right direction. Hope this helps!
Regards,