Jump to content

2D Waveform to 2D array coercion problem


gonzo

Recommended Posts

Hi guys,

I have just started using this forum and labview and am I am sorry if I am asking a stupid question.

Reading up about red coercion dots I know they are bad news and should be avoided for all sorts of reasons. Most dots in my VIs have been able to be removed through proper data conversion.

There are two conversions that I cannot get to work:

1. 2D waveform to 2D array

2. 1D waveform to double display (with scales)

Some pictures circling the location of the dots are attached. I have tried various conversion VIs, but I have not found the right conversion VI / sequence yet.

Hope you can help.

Gonzo

Link to comment

QUOTE (Neville D @ Apr 15 2008, 11:38 PM)

A waveform is just a cluster of t0, dt, and the array of pts. Unbundle the waveform node and extract out the waveform array.

An array of waveforms means use a for loop to access each waveform and then unbundle out the arrays as required.

Neville.

Hi Neville,

Thanks for the quick response, I have been away from work and have not been able to reply to the post. I think I have managed to find the right blocks for the unbundle function and the coercion dot has disapeared. I will test the system later today and let you know.

Have you got any suggestions for the other coercion dot (the other diagram I uploaded), where dynamic data goes straight into a double display. I presume it is a similar issue that dynamic data is clustered. I have tried using the same approach with the unbundle function, but always get an array instead of a single double value.

Any suggestions?

Thanks again for you help.

gonzo

Link to comment

QUOTE (gonzo @ Apr 23 2008, 05:54 AM)

Have you got any suggestions for the other coercion dot (the other diagram I uploaded), where dynamic data goes straight into a double display

I believe that placing a "To Double" numeric conversion on the dynamic data would do the trick?

Link to comment

QUOTE (gonzo @ Apr 23 2008, 05:54 AM)

Have you got any suggestions for the other coercion dot (the other diagram I uploaded), where dynamic data goes straight into a double display. I presume it is a similar issue that dynamic data is clustered. I have tried using the same approach with the unbundle function, but always get an array instead of a single double value.

gonzo

Dynamic data types introduced with the Express VI's are a bit murky and not clearly documented. But if you are getting an array when you unbundle, just extract out the first element with the index array function?

Neville.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.