LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CRIO DAQ to spreadsheet using IRQ

Hi
 
I am desperately trying to get some timer values from a CRIO to a spreadsheet file using an IRQ. I have a square wave input (frequency varying from 1 - 200 Hz) and wish to write the times of rising edges to a spreadsheet. I have a VI running on the CRIO that detects a rising edge and causes an interrupt to the host, see below
 
The host VI waits for this interrupt and writes it to a spreadsheet
 
 
However when i run this no file is created and the stop button within the while loop is unresponsive. If i remove the file path for the spreadsheet i would expect to get a request for a file path but nothing happens.
 
I have only just started using this CRIO. I would be very greatful if someone could point out my mistake(s).
 
Thanks
 
 
using
cRIO-9002, 9101 and NI9401
0 Kudos
Message 1 of 8
(3,963 Views)
First of all set the time out of the wait for interrupt to something like 10 ms. This will allow the while loop to become responsive again.

If still have problems afterwards post them again.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 8
(3,958 Views)
Hi
 
Thanks for reply, it looks a bit more promising, stop button works. There is still no file created though and an error code now appears. code 61061 "Invoke Method: Wait for Interrupt in Acceleration DAQ (HOST).vi"
 
0 Kudos
Message 3 of 8
(3,956 Views)
Where does the error first appear (after which function)?
Regards,
André (CLA, CLED)
0 Kudos
Message 4 of 8
(3,951 Views)
the stop function
0 Kudos
Message 5 of 8
(3,947 Views)
Could you put a probe on the line that first produces the error and post a screenshot of the code showing the probe?
Regards,
André (CLA, CLED)
0 Kudos
Message 6 of 8
(3,942 Views)
I think i have found the problem although i dont appreciate it. Accel DAQ (HOST) is the host VI. I doesnt seem to be able to create a file for storing the data, i have tried every option (open,create,replace). In other non CRIO VI's i have, i a am always requested for a file name if i do not specify one with a constant, this is not true with this VI. Why cant i open a file?
 
 If i rename this VI as test.vi and place it under my computer it has a different set of problems regarding connection to the FPGA. Where should the host VI be placed and what is the difference?
 
Many Thanks
 
0 Kudos
Message 7 of 8
(3,933 Views)
It isn't that strang. cRio is designed to run without GUI. So there is no point is asking a user to input data. Either create a user interface on your pc to interact with the cRIO app or provide a filename. The FP of the cRIO that you have in the dev environment is for debugging purposes.
Regards,
André (CLA, CLED)
0 Kudos
Message 8 of 8
(3,922 Views)