02-06-2013 11:18 AM
code?
02-07-2013 02:37 AM
Sorry for the late reply, I have attached the code.
Just to clarify things again, I wanted to make the Host vi to control the signal acquired through the FPGA vi. When I mean control, I mean, just a switch to start the signal/stop the signal.
Also, since in the FPGA vi, the DMA FIFO is configured to write, where would I need to actually connect the DIO line/port? I think my connection could be wrong in the FPGA.
Thanks as always, Anoop
02-07-2013 06:41 AM
I thought you were trying to read from a digital line and send it to the PC. Your code shows you writing out of the digital line. Which are you trying to do?
02-07-2013 07:21 AM
Sorry for the confusion, I am trying to read data from the digital line in the PXI to the FPGA. As I understand it, there are 39 digital lines available in the PXI and I thought it was possible to feed in data to these digital lines through the PXI backplane? I have connected one of the connectors to an SCB 68 for reading in the signal. Does that make sense?
Again, sorry about the confussion but I am new to all this.
02-07-2013 07:34 AM
...and from the Host vi, I want to control the FPGA vi, to start/stop or condition the signals acquired.
02-07-2013 08:45 AM - edited 02-07-2013 08:45 AM
@The_Sugarman wrote:
Sorry for the confusion, I am trying to read data from the digital line in the PXI to the FPGA. As I understand it, there are 39 digital lines available in the PXI and I thought it was possible to feed in data to these digital lines through the PXI backplane? I have connected one of the connectors to an SCB 68 for reading in the signal. Does that make sense?
Again, sorry about the confussion but I am new to all this.
The FPGA needs to read this digital line and send the data through the DMA to the host PC. I would change the DMA to be a Boolean to make it a little easier. Your VIs should look something like this:


02-07-2013 09:32 AM
Thanks a lot!!! But I have another problem now (I know I know), How do I change the DMA to boolean type? I tried right-clicking, but there are no options for it.
02-07-2013 09:48 AM
From the project window, right-click on the DMA and select "Properties". Theres a "tab" for data type.
02-07-2013 10:15 AM
Just did this, but to change the data type from the properties, I have to change the ' type ' category to 'Target Scooped', which does not allow me to change the DMA in the Host vi redundant or unusable for some reason. It doesn't give me an option to change the DMA to a READ either.
02-07-2013 10:21 AM
That seems strange to me. But you are using a version before I started using LV FPGA. Maybe something changed. Oh well. Just convert the boolean to a U32 and feed that into the DMA on the FPGA side.