06-11-2021 10:24 AM
Hi all,
I'm working on a project where I need to run an encoder using LabVIEW and using a cDAQ 9185 with the NI 9361 module. I took the example counter code that NI provides and combined it with the Function generator they also provide. I'm trying to get the data to read to the waveform in real time. I didn't receive any errors with pin connections so the pins are connected correctly. Is there any way to tell if the encoder is actually being read? Also, how would I go about making it read to the waveform? I tried using the write function but the data types would not match properly. I've attach snips of the code below for you to look at. Any help is appreciated. Thank you!
06-11-2021 11:14 PM
Difficult to see what's really happening from these cropped images (by the way, when talking about LabVIEW code, snippet has a different and specific meaning - a snippet can be generated from the Edit menu and contains drag and droppable code).
Please upload the VI you're trying to run and perhaps also expand on how you verified no "errors with pin connections".
06-15-2021 08:00 AM
Thanks for the reply. I've attached the LabVIEW VI to this. For verifying the pin connections, I looked up the pinout for the specific NI module and encoder. I had also ran the VI prior to connecting the encoder and received and error stating that there was no device connected. After connecting the encoder, I no longer received that error message.
06-15-2021
11:45 AM
- last edited on
05-14-2025
10:10 PM
by
Content Cleaner
Thanks for uploading the VI. I can see a little better what you've done now, and maybe make some comments - I'll number them for ease of reference but they aren't necessarily in any useful order or implied importance/priority...
Let me know if any of these sound useful but you can't make them work from what I've written and I'll try expand. Alternatively, maybe you'll change a few bits and it'll work better quite quickly 🙂 Good luck!