Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

File I/O Problem on Host Computer

Hi everybody,

 

I have a cRio 9022 with a good chassis. I also have NI-9215 analog input module. I wanted to sample a vibration data with 1kHz frequency. In addition, to check if cRio is collecting data at a constant sampling rate I used a tick counter.

I wanted to acquire the five data I collected using compactrio(4 analog input and tick counter data)  and write it to a file in my computer (not cRio memory).

 

I posted my project files so you can review. When I deploy all the vis to compactrio and run the host vi on my computer, sometimes labview09 is crashing. Also it doesn't write the acquired sensor data to the file. Just to mention; I am using scan mode.

 

I will really appreciate if someone can help me to solve that issue.

 

Ali

 

PS: My initial plan was writing the data into compactrio memory. But I found out that I am getting significant data loss. The tick counter should give me 1ms(or 1000us) for each iteration. Sometimes tick counter gives me 35ms which is not an acceptable delay.

 

0 Kudos
Message 1 of 3
(3,293 Views)

Aliirmak,

 

I have a few follow up questions for you.

 

1. Are you using LabVIEW 2009 or LabVIEW 2009 SP1? If you don't know you can go to Help»About LabVIEW to find out.

2. What version of NI-RIO are you using? You can find this in MAX under My System»Software

3. When does your program appear to be crashing? Have you run the host.vi with highlight execution on to see if you can see where it gets stuck? When LabVIEW crashes does it give you an error code or dialog box?

4. I noticed in your project that you are using a VI that is no longer supported in LabVIEW. Can you replace the outdate Open_Create_Replace.vi with the Open/Create/Replace.vi? You'll notice that all of the File I/O Vis will have the same yellow background which is good for consistency.

5. You mention that you deploy all the VIs. Do you also manually deploy your shared variable library?

 

If you could get me that information, I may be able to better troubleshoot the issue.

Stephanie A.
Americas Marketing Manager
National Instruments
0 Kudos
Message 2 of 3
(3,265 Views)

In previous week I was able to figure out why that was happening. I noticed the crash is happening when I don't use a network shared variable. So I have a working sets of vi. But still the data i am getting from compactrio does not reflect the realtime data. Not really sure why...

 

1. I am using Labview 2009 SP1

2. NI-RIO 3.4

3. See above. And no. it is simply crashing with a box. But when i restart the program it is asking me which files i want to recover.

4. Sure. I hope that will also affect the performance.

5. I am deploying every neccessary vis and variable for target.

 

Thanks for the help.

0 Kudos
Message 3 of 3
(3,225 Views)