02-02-2021 02:23 PM
Hi Hamzo,
@Hamzo wrote:
I'm not using NI hardware ,i'm using an FPGA DE10-Nano from Altera.
Then why do you ask in a LabVIEW board for LabVIEW solutions when you use hardware not supported by LabVIEW?
02-24-2021 05:45 AM
hello @GerW sorry for the late reply,
My supervisor told me that it's possible so if it was not i think he won't tell me that.
I have also seen some videos related to that
Thanks
02-24-2021 07:30 AM
It sounds like you need to talk to your supervisor then for help since he says he is the expert.
LabVIEW can only program National Instruments FPGAs. I'm sure LabVIEW programs can talk to other brands of FPGAs through serial connections. But how you program those FPGAs to do that, you'll have to ask on forums and using software designed to for those FPGAs.
02-24-2021 07:43 AM
@RavensFan haha i will
Thanks for the reply
Exactly i want to use serial connections for that.
Do you have any tips or recommandations by the way ?
Thanks
02-24-2021 08:09 AM
Sorry, but I don't really because I've never used other FPGA's beside NI R series cards and cRIO's.
The only thing I could add is just to make sure you come up with a protocol for your messages that will work well between LabVIEW and the code you put on this FPGA.
Determine if it is ASCII based (i.e. human readable) or binary-based. If ASCII, use a termination character so your LabVIEW program know when to stop at it will have read a full message packet. If binary, have it send a fixed number of bytes on every call, or prefix the message with 2 or 4 bytes of that will tell how many bytes of data follow. That way you do a read of 2 (or 4), convert that to a number for the VISA read to know how many bytes to read in its second call.
Look at Crossrulz's VIweek presentation. Although I don't think he talks about FPGA's in there, you'll find a lot of useful tips for building applications that have robust serial communication schemes.
02-24-2021 08:38 AM
Thanks it will help a lot.
I will make you updated