10-15-2019 03:11 AM
Now, I am using CRio 9068 and some C series modules.
I want to make the pulse output from the digital modules and get the encoder data from the digital modules and other data from the analog module.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019PCsSAM&l=en-US
I confirmed this website to use hybrid mode and make the VI file to make pulse and get encoder data.
But, there are some errors "The function is not currently supported on the target."
How can I solve this errors? Help...Plz.....
10-15-2019 03:38 AM
10-15-2019 05:53 AM
As Emboar already said, the File I/O functions are not available directly on the FPGA. Neither is the String datatype.
However, it looks like you're only trying to save a single number (per iteration).
This can be easily transferred to the RT host using a DMA FIFO (see Creating FIFOs in FPGA VIs (FPGA Module)) and then on the RT system, you can use the conversion node to a string and write the value into a file.
Usually, you'd also keep the file open between iterations (open at the start, close at the end, write many times in between) and just write the next value each iteration (without closing and reopening).