Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 50400 after adding Accelerometer measurement

I have continued to develop my program and tried to add accelerometer measurements. As a basis I used Getting started example for NI9233 module.

As a result i have got Error 50400 when I try to run VI.

I have found somebody have got the same error in this forum but It does not look like he solved it ot posted that it has been solved.

I attached screenshots of my code can attach vi as well.

0 Kudos
Message 1 of 7
(4,173 Views)

Hi Sergey,

 

The explanation for that error code is:

 

The transfer did not complete within the timeout period or within the specified number of retries.

 

Have you managed to find out where in the code the error occurs?

 

Would you be able to attach the VI to a post?

 

Regards

 

Steve

0 Kudos
Message 2 of 7
(4,160 Views)

This error happened after have added code for the accelerometer.

I do not know how to check in which part of the code it is related.

I'll post VI tomorrow, as I do not have a monitor on that PC today.

Thanks. Sergey.

 

0 Kudos
Message 3 of 7
(4,153 Views)
Here are the VIs.
Download All
0 Kudos
Message 4 of 7
(4,144 Views)

Hi Sergey,

There seem to be a few problems with the architecture in the code.

For example the IRQ function in the FPGA VI should come in a sequence after the data has been written to the FIFO.

Also within the Host VI the Acknowledge IRQ node should come after the DATA.Read node in order to acknowledge the data has been read and it is ok for the FPGA VI to complete the next iteration of the loop.

Have a look at the examples I have illustrated in the .jpg file attached for an architecture to start from.

Hope this helps

Steve

Message 5 of 7
(4,109 Views)

Thanks Steven,

I ahve tried another way and looks that it works:

I tooka an example for accelerometer unit (used previously)and used it without temperature measurement and sine generation. Ijust have added while loop to the example because without it it does not operate continiously.

Now I have another issue how to measure amplitude and frequency of the signal from accelerometer. Is it difficult or there is an instrument in a palette to use?

Do I need to convert signal I am getting from acccelerometers or I can use it straight(ust multiply by sensitivity of accelerometer) ?

0 Kudos
Message 6 of 7
(4,105 Views)

Hi Steven,

I have tried to make  FPGAvi for accelerometer and Host vi as well it worked well(even without changes to position of IRQ function and node). I copied their position from the example supplied by NI.

Then I took that part of FPGA vi for accelerometers and added thermocouple and signal generator FPGA codes to it.

After that it stopped to work. When I start host vi nothing happens on the screen it runs but without any action on the screen.

Changing position of  IRQ function and node does not help as well.

 

Download All
0 Kudos
Message 7 of 7
(4,082 Views)