06-02-2011 08:34 PM
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?
06-02-2011 09:03 PM
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.
06-02-2011 10:13 PM
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?
06-02-2011 10:19 PM
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.
06-02-2011 10:23 PM
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.
06-02-2011 10:44 PM
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.
06-06-2011 12:15 AM
Hi Gerrald,
Are you closing down this thread?
06-06-2011 12:25 AM
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.
06-06-2011 02:28 AM
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?