07-21-2016 07:22 AM - edited 07-21-2016 07:24 AM
Here is code with the logic I defined earlier added which gave the X1, X2, X4. However, it doesn't have code to make the X pulses go back to low. It might need some other architecture changes and I don't have time to do that for you. I've got my own projects to work on.
But the picture you show has only shows X1, while the earlier picture showed X2 and X4. But this also describes how to have a counter go up and down based on direction. If that is what you really want, (and you still haven't said what you are trying to do), then you can figure that out. I've shown you how to implement the various logic structures.
07-21-2016 07:16 PM
@RavensFan wrote:Here is code with the logic I defined earlier added which gave the X1, X2, X4. However, it doesn't have code to make the X pulses go back to low. It might need some other architecture changes and I don't have time to do that for you. I've got my own projects to work on.
But the picture you show has only shows X1, while the earlier picture showed X2 and X4. But this also describes how to have a counter go up and down based on direction. If that is what you really want, (and you still haven't said what you are trying to do), then you can figure that out. I've shown you how to implement the various logic structures.
Thank you for spend out the time doing the logic structure for me. Then how i going to display out the signal A and B and the counter value on my host PC?
07-21-2016 08:23 PM
You read the values of the indicators that are on the FPGA through FPGA nodes and display them on your host PC's indicators.
Here is image of code running on my host PC reading the value of an indicator called "Wait" on my FPGA VI.
07-21-2016 08:36 PM
@RavensFan wrote:You read the values of the indicators that are on the FPGA through FPGA nodes and display them on your host PC's indicators.
Here is image of code running on my host PC reading the value of an indicator called "Wait" on my FPGA VI.
Am I able to display the channel A and B at digital waveform chart on host PC? "wait" on my FPGA VI means what?
07-21-2016 08:39 PM
"Wait" is the name of my indicator on my FPGA VI. On your FPGA VI, you'll have that node point to "Channel A" and "Channel B".
Yes, you can connect those wires to waveform charts.
07-21-2016 08:55 PM
@RavensFan wrote:"Wait" is the name of my indicator on my FPGA VI. On your FPGA VI, you'll have that node point to "Channel A" and "Channel B".
Yes, you can connect those wires to waveform charts.
how i connect those wires to my waveform charts? Always came in broken wire.
07-21-2016 09:34 PM
I can't help you because without your FPGA definition and your project, (and perhaps even the actual hardware), I get no wires in your VI, let alone broken wires. This is a case where you'll have to post a screenshot of what you have.
Do you have green boolean wires coming out of the FPGA node? You said you wanted a digital waveform chart, but you have an analog waveform chart. You'll have to read the help files and examples for how to connect boolean wires to the digital waveform chart.
07-21-2016 09:43 PM
@RavensFan wrote:I can't help you because without your FPGA definition and your project, (and perhaps even the actual hardware), I get no wires in your VI, let alone broken wires. This is a case where you'll have to post a screenshot of what you have.
Do you have green boolean wires coming out of the FPGA node? You said you wanted a digital waveform chart, but you have an analog waveform chart. You'll have to read the help files and examples for how to connect boolean wires to the digital waveform chart.
I already get the green boolean wire coming out of the FPGA node. can i show the channel A and B together into digital waveform chart? Attached file is my project. Thank you very much.
07-21-2016 10:22 PM - edited 07-21-2016 10:29 PM
You still have a regular waveform graph in there. You need a "digital" waveform graph.
There are numerous functions on the Waveform >>Digital Wfm palette. You'll likely need to use several of those.
Search the examples for "digital waveform graph". They are more complicated data structures. You are just going to have to read and learn. Search the forums for that same phrase and read other message threads where people had specifically asked about them.
EDIT: I found the secret sauce is Boolean Array to Digital. See attached.
07-21-2016 11:06 PM
@RavensFan wrote:You still have a regular waveform graph in there. You need a "digital" waveform graph.
There are numerous functions on the Waveform >>Digital Wfm palette. You'll likely need to use several of those.
Search the examples for "digital waveform graph". They are more complicated data structures. You are just going to have to read and learn. Search the forums for that same phrase and read other message threads where people had specifically asked about them.
EDIT: I found the secret sauce is Boolean Array to Digital. See attached.
This is what i plot out the digital waveform chart. I not sure whether is correct or not.