06-19-2025 06:53 AM - edited 06-19-2025 06:56 AM
@ZYOng wrote:
FPGA is not the only approach. In fact, it is not a flexible way.
In Scan Mode, NI-9871 can be accessed by NI-VISA driver, as shown in Solved: NI 9871 best way to create customization to veristand
If you want to avoid creating a custom device, you can still use the VeriStand Instrument Addon custom device
Based on your frame format [0xAA, Var1_LSB, Var1_MSB, Var2_LSB, Var2_MSB, Var3_LSB, Var3_MSB, 0xAA], here is the result.
You can import the attached configuration when adding the CD. Remember to change it to VISA.
Update
I found the Issue and fix it, Scan mode is running at Veritsand
these are the correct value, but after some time the values get shuffled (currently i am sending stream of same constants)
Thanks
06-19-2025 06:55 AM
Try the steps in Error -1073807246: The Resource Is Valid, but VISA Cannot Currently Access It
06-19-2025 08:14 AM
@ZYOng wrote:
Try the steps in Error -1073807246: The Resource Is Valid, but VISA Cannot Currently Access It
Thank you
i solved this issue earlier as i noted in my second reply, and encountered another the VARs seems ok at beginning then get shuffled after some time, i am just sending same array of constants repeatedly and even decreased the baud rate to 9600
06-20-2025 07:05 AM
RS-485 is typically used in a two-way master-slave model and is less common in one-way streaming.
Looks like the NI-VISA might have been confused with the 0xAA header and footer. If you have control over the sender, I would recommend trying to remove the header character and replace the footer termination character with something unlikely to appear in the variable.