04-06-2022 04:36 PM
So I am able to generate PWM, but can't generate the square wave signal on the waveform chart.
All I get is 0 signal across. I have attached my code.
04-06-2022 08:04 PM - edited 04-06-2022 08:08 PM
Don't you want to connect the DI input?
Why do you think that the pulse width output should give you a square wave? Isn't the pulse width relatively constant unless you change the duty cycle?
(Sorry, I have no experience with this hardware. Just guessing!)
ALSO:
04-06-2022 08:46 PM - edited 04-06-2022 08:49 PM
On top of what altenbach said, an Arduino is a simple micro-controller who's CPU is neither multi-threading nor nulti-tasking.
So you Cannot just split the Error cluster expect it to run two sub-vi's in parallel like you can running LabVIEW on a computer.
The (Linx or whatever) code on the Arduino has to be linear and sequential as an Arduino can only do one thing at a time.
On a side note this is why I do not recommend using an Arduino and Linx to learn LabVIEW.
04-06-2022 09:09 PM
I have to admit. This answer deserves to be a solution even though it's not directly the solution to the question. hahah..... That's why I always enjoy when you answer my question, I always learn something. To me, It's more about learning valuable things than directly getting direct answers to my problem. Your answer, Mr. Altenbach, will definitely help me with my code. I'm putting what you said on my note.
04-06-2022 09:15 PM
Good to know! I didn't know that. Thanks RTSLV!!!!