Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write Modbus data in a file or array??

Solved!
Go to solution

Hi:

 

I can monitor my required data via RS-485 port using "MB serial Master query", and I can successfully show the signals using waveform chart.

But I can not save data during the test in an array or write them in a file!!!(see attached file and picture)

How can i write them in a file or spreadsheet correctly??

when i try to read data from "measurement file" and graph it, I can not get any graph, it just have a node!!!

is the "input registers" data type needs a special procedure?

 

 

what's the problem??

 

Thanks.

 

Download All
0 Kudos
Message 1 of 7
(4,779 Views)
Solution
Accepted by jftak01
One basic mistake I see is that you have the Write to Measurement File configured to rename and overwrite any existing file when you call the function.
0 Kudos
Message 2 of 7
(4,773 Views)

Thanks dennis:

 

You mean I have to select "append to existing file" in measurement file configuration??

 

what about the writing in array format problem?? I mean when the program is running and reading "input registers", I expect to see them in an array format in front panel (see Pic attached). but only the first component of array is changing alaways, and other components are always 0?

I expect to see each number in each component of array?

 

how can i do that?

 

 

thanks.

0 Kudos
Message 3 of 7
(4,768 Views)
No. The other elements are NOT zero. The other elements in the array are empty. Are there other registers to be read? Your other read with a different starting address is empty.
0 Kudos
Message 4 of 7
(4,757 Views)

yes. there are , but the thing is. I want to have different values of just one register during the time in an array format( I man a specific numer in each of the array elements).. is it posiible?? I think i can not see this form in front panel.. I must write data in a measrement file.  am i right?

 

I think now it's rewriting just the first element of array.

 

 

thanks

0 Kudos
Message 5 of 7
(4,749 Views)
To keep an array of the single element with a value, use the Index Array to get element 0 and then a shift register with a Build Array function where you pass it the current element.
0 Kudos
Message 6 of 7
(4,743 Views)

I used MODBUS.

Now, it works well.

 

Thank you all.

 

Jafar

0 Kudos
Message 7 of 7
(4,703 Views)