11-09-2022 02:28 PM
I want to take readings from a device that gives me nibbles of data which I have to convert to decimal to work with that data. But my problem is to collect the 4 nibbles (binary) of data, I tried using Collector but it's just giving me the last value, also I tried using event structure but I got the same result.
This device runs 11 tests in succession, the result of each test this data is written to the data port (D0, D1, D2, D3) as a sequence of four, 4-bit nibbles of BCD coded data.
Additional info:
Trigger statically logic low, goes high for 20uS at start of each test (once per sequence of 11 test)
Strobe Statically logic high, goes low for 2uS when each nibble of BCD is written
D0:D3 BCD data to be captured
Any suggestion of how to store the data of each test in a variable to convert it later?
11-09-2022 02:36 PM
Hi Alberto,
do you really need so many ExpressVIs?
What's the point (and expected result) of those one-input-one-output MergeSignal nodes?
What is the expected result when you display a boolean array in a double indicator after all those conversions?
Why do you display nibbles in double floats?
What is the expected result when "collecting" those nibbles?
Is it so hard to implement basic math like 2**12*D3+2**8*D2+2**4*D0+2**0*D0 ???
11-09-2022 03:51 PM - edited 11-09-2022 03:53 PM
Hey,
Is this what you want to accomplish? See attached VI
~Your homework is my homework ~ Hahah
11-09-2022 04:05 PM - edited 11-09-2022 04:10 PM
Hello GerdW,
Basically all redundant functions are just to have a visual reference of what I am doing (my first time working with it), I will bother to simplify after get done that "data storing" part, so no it's not really needed so many ExpressVIs but since I wanted to be 100% sure of what I was getting it's only the value that I wanted,and those merge signals where the only way that I found to show the results, nothing special there, same for the booleans.
Once getting data nibbles I will convert it to decimal to save it in a datasheet.
Right now it's not a math problem, it's the way to get some data to work with.
Thanks.
11-09-2022 04:09 PM - edited 11-09-2022 04:12 PM
Hi GRCK5000,
Sorry I can't open it, I have an older version. Is there a way to save as previous version to check it out?
Thanks
11-09-2022 04:22 PM
I saved it for previous version (19.0). Let me know if this is what you want to accomplish.
I am here to help.
~Your homework is my homework~ Hahah
11-10-2022 08:57 AM
Sorry GRCK5000 but it's not what I expected, your VI it's giving me an array of data even when it's not changing.
For example:
D0 = 0 1 0 1
D1 = 1 1 1 0
D2 = 0 0 1 1
D3 = 1 1 1 0
...
..Repeat 10 more times..
...
*I forgot to mention that my device has a physical button to start taking those readings