LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting input signal from encoder

Hi Gerrald,

 

"These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.The type of the source is FPGA I/O (FPGA I/O,FPGA IO).The type of the sink is double [64-bit real (~15 digit precision)]."....This is the error message that i have got.

 

What must i do to make it error free?

0 Kudos
Message 21 of 29
(1,014 Views)

Hi afai,

 

Thanks for the info. It turns out that the output of your FPGA IO is either true or false because the encoder is outputting pulses right.

Since we want to graph this numerically, you can simply convert the boolean values into 1s or 0s. For this, there is a function node called Boolean to (0,1) which is shown in the attached picture here. Then you may attach the wavefrom chart to the output after conversion. This should give you a pulse train representation of the encoder signal. You may update me if this fixes the problem or not. Thanks.

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
Message 22 of 29
(1,005 Views)

Hi Gerrald,

 

Thanks to you I hav got a signal on my waveform chart. Do you think its possible for me to change it to a sine wave graph?

0 Kudos
Message 23 of 29
(998 Views)

Hi afai,

 

That's good news. However, since the signals coming out of your encoder is a digital signal, it won't be possible to display it as a sine wave which is an analog signal. Are you required to display a sine wave for this one? If so, may I know the purpose of displaying this as a sine wave? Thank you.

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 24 of 29
(996 Views)

Hi YQ_sg,

 

I haven't heard from you in a while. Would it be possible for you to update me on your current status? It seems afai was able to achieve the desired result so feel free to read through our conversation in this thread as well. Hopefully this will also help you get the same results. I will be closing this service request but we can open another one if another issue with a different nature arises so post them here in the forums or better yet, email asean.support@ni.com for any technical inquiries. Thank you very much.

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
0 Kudos
Message 25 of 29
(995 Views)

Hi Gerrald,

 

Ouh, my teacher had told me to produce a sine wave so that the signal could be read/write to NI 9870 and then later, will be able to transfer the signal from NI 9870 to my maxon motor. Because later, i will need to add in velocity and acceleration to my application.

0 Kudos
Message 26 of 29
(992 Views)

Hi Gerrald,

 

Are you closing down this thread? 

0 Kudos
Message 27 of 29
(966 Views)

Hi afai,

 

No I'm not closing this thread. But since it seems that the main subject of this thread has been resolved, you may create a new one or better yet, email asean.support@ni.com for your other inquiries. Thanks.

Best Regards,
Gerrald Mateo
Applications Engineer
National Instruments
Message 28 of 29
(963 Views)

Hi Gerrald,

 

It seems like the signal that i get from my encoder seems funny. Is there a way to make it look like a real nice digital graph? 

0 Kudos
Message 29 of 29
(957 Views)