LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

indicator control

Dear all,

Let's confine to another query regarding indicators and write to text file.

I have 4 indicators (2 arrays and 2 integers) and i need to write these values to a text file till the program stops. I used "build array" to convert all these 4 values to a 1D array and gave as input to the writetospreadsheetfile.vi

But the output in the file was in decimal values and actually my indicators will show hexadecimal values.

How to achieve hexadecimal values to be written in the text file as such the indicator is displaying?

Thanks,

Mathan

0 Kudos
Message 41 of 52
(1,423 Views)

Hi mathan,

try this.
Hope it helps.

Mike

Message 42 of 52
(1,417 Views)


@sth wrote:
[...]
But like any powerful tool, it can be misused. [...]


I concur that variables are indeed a powerfull tool. But since LabVIEW variables behave different from variables known through textual ADEs, they are the most misused tool ever in LV i asume....
And that is, why they are evil......
I have to confess that i use variables myself from time to time, but i always double check for possible race conditions and even then have some kind of bad feeling in using them. And that is, what i try to achieve: That everyone programming in LV gets the same "sensibility" as i have regarding variables!

Norbert
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 43 of 52
(1,420 Views)

Dear mike,

I studied the use of arraytospreadsheetstring function from your example.

I need the output in the text file like this format. How it was possible?

 

Date,Time                 name1(constant)                   indicator value1 (in hex)
Date,Time                 name2(Constant)                  indicator value2 (in hex)

Example:

   -   Doctor        3B,6D,14,23.....(Like this) some 17 values

   -   Patient       12,43,ac,f7.....(Like this) some 17 values


   -   Doctor        3B,6D,14,23.....(Like this) some 17 values

   -   Patient       12,43,ac,f7.....(Like this) some 17 values


   -   Doctor        3B,6D,14,23.....(Like this) some 17 values

   -   Patient       12,43,ac,f7.....(Like this) some 17 values

Thanks,

Mathan

0 Kudos
Message 44 of 52
(1,400 Views)

Hi mathan,

here is another example for you.

Hope it helps.

Mike

Message 45 of 52
(1,394 Views)

Dear mike,

That quick example shows ur in depth knowledge. Thanks.

But still i had two problems.

1) I need to insert the current system date and time in the first column of each line as i mentioned in my previous post.

Date,Time                 Doctor(constant)                   indicator value1 (in hex)
Date,Time                 Patient(Constant)                  indicator value2 (in hex)

2) Everytime the values are getting overwritten in the text file rather than get appending. (Am using a while loop outside and i stops the vi after some particular iterations).

Please update me asap. Look at my attachment.

Thanks,

Mathan

0 Kudos
Message 46 of 52
(1,379 Views)

Hi mathan,

try this. Smiley Happy

Mike

Message 47 of 52
(1,371 Views)


Norbert B wrote:

I concur that variables are indeed a powerfull tool. But since LabVIEW variables behave different from variables known through textual ADEs, they are the most misused tool ever in LV i asume....
And that is, why they are evil......


I wish they would include your statement in Labview courses and within the on-line tutorials.  But then again, how many people actually take the time to study the language 😞
Message 48 of 52
(1,363 Views)

Dear mike,

I worked it out fine. So much thanks and stars for you.

P.S. I used this for date/time

Thanks,

Mathan



Message Edited by mathan on 05-14-2008 07:12 AM
0 Kudos
Message 49 of 52
(1,349 Views)

Mike,

You can directly wire the HEX array to the Number to Hexadecimal String converter, no need for FOR loop. Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 50 of 52
(1,319 Views)