03-23-2018 08:14 AM
@dotis10 wrote:
The outer loop is a For loop, so the "i" I use is from a For loop.
I am stuck in getting the two different data types (header+signal) into the Dynamic Attributes. I though putting them into an array first would let me send it into Dynamic Attributes.
I managed to input headers but they all end up in one column..
03-23-2018 10:11 AM - edited 03-23-2018 10:12 AM
See the attached modification. It incorporates exactly what I was talking about.
I never said anything about building a cluster of arrays so I don't know why you did that.
Be sure to put 4 elements in your header array.
Please be sure to take the LabVIEW tutorials. And definitely read the help file on functions you aren't familiar with. It feels like you know what functions are there in LabVIEW, but don't really understand them and are just throwing something on the block diagram hoping they'll stick.
03-23-2018 03:41 PM
@RavensFan wrote:
See the attached modification. It incorporates exactly what I was talking about.
I never said anything about building a cluster of arrays so I don't know why you did that.
Be sure to put 4 elements in your header array.
Please be sure to take the LabVIEW tutorials. And definitely read the help file on functions you aren't familiar with. It feels like you know what functions are there in LabVIEW, but don't really understand them and are just throwing something on the block diagram hoping they'll stick.
Thank you!
Do you mind uploading an older version of the VI. I have v2016 and cant open the file.
03-23-2018 04:58 PM
Sure. I hadn't noticed it was an older version. Here you go.
03-25-2018 09:32 AM
Thanks a lot!
For the Time stamp - is there a way to get around the non-existing time data and get a relative time stamp? Like using the sampling rate/timer value, 1000ms? Or subtracting the default time stamp (1904-01-01 00:00:00) and the time added to it?
04-02-2018 10:11 AM
I am adding a Write-function in a case structure. Some of the registers are split up into two or three, like this:
Where reg. 36 sets the unit by writing a certain number (2-14). How do I handle the divided write register?
04-02-2018 09:04 PM
That table doesn't make any sense. It has 3 rows, talks about 2 bytes, and all say "36".
IF this is a single register, look at the Numeric >> Data Manipulation palette. All the functions are there and you've already used some of them.
04-02-2018 11:07 PM - edited 04-02-2018 11:07 PM
@RavensFan wrote:
That table doesn't make any sense. It has 3 rows, talks about 2 bytes, and all say "36".
IF this is a single register, look at the Numeric >> Data Manipulation palette. All the functions are there and you've already used some of them.
Yeah, that makes me confused.. The manual says it is "Write Holding Registers".
04-04-2018 02:06 PM
Right now I have a case structure that writes to a register when a button is pressed.
I want to be able to write to all slaves that I read to (to be able to digitally calibrate the sensors and set the same unit on them). So the Write function will not be used that often..
Is it Ok to have a Write and Read function in the same VI? Or should I have the write function in a separate VI or use a "read/write" case if using them in the same VI?
As for the confusing Write register (Holding reg. = multiple reg??) - I guess it is just the high and low byte I will write to, where high = 0x01 and low=the specific number for the corresponding unit?
04-05-2018 11:06 PM
Yes. You can do reads and writes in the same VI.