FlexLogger

cancel
Showing results for 
Search instead for 
Did you mean: 

Set number of channels used by plugin

Solved!
Go to solution

Hi.

 

I made a plugin for integrating my acceleration signal, but I have trouble making it so I can choose the number of channels I what it to create with the plugin.

 

So in my initialize.vi(see below) I set it up so I can choose the number of channels during configuration. That is the "Ch. to Intergrate" which in my first code was used in the configuration were the loop for the create channel was, but I get the error that it is not a unique name so I have hard coded it here for 3 channels which work but sometimes I need 12 channels or more so I thought of just hard code that but then I found that the number of channels I create have to match the number of channels I need to integrate over.

 

So how can I make the code so I can create channels based on my choice in the configuration window in Flexlogger so I don't have to hard code it?

 

initialize.vi

 

Gjelstrup_0-1620309217129.png

Configure.vi

Gjelstrup_1-1620309480707.png

Process.vi

Gjelstrup_2-1620309503722.png

 

0 Kudos
Message 1 of 6
(2,245 Views)
Solution
Accepted by topic author Gjelstrup

I think what you want is described in depth on page 25 of the PDK Manual "Alternative Configuration—Dynamic Channel Number with Individual Settings". I attached the latest PDK manual in case you have an older manual that doesn't have this updated example in the documentation.

Hope this helps,

Brad

0 Kudos
Message 2 of 6
(2,214 Views)

Hi

 

Thanks,

 

Yes I am using 1.2 so didn't have that info:(

 

But I more or less came up with it my self during the day and was going back here to write I kinda fixed it, but I'll try 1.3 and see if theis is more stable.

 

 

0 Kudos
Message 3 of 6
(2,209 Views)

HI

 

Just an update. I only have labview 2019 and it seems that the Flexlogger dev kit 1.3 is for labview 2020 so no luck for me there but then as I wrote before I made it work in 1.2 but it has some limitations.

0 Kudos
Message 4 of 6
(2,195 Views)

Even if you have an earlier version of PDK, the images in the manual I attached should still apply for your version and I think all the VIs mentioned in the manual are available in the older PDK.

0 Kudos
Message 5 of 6
(2,166 Views)

Hi 

 

I try creating that code but ran in to some missing vi's. 

 

I think it was the get chan. but I I think I found a workaround for that but the other thing is the instances for" write parameter". Here I don't have the option for multiple channels

Gjelstrup_2-1620393931964.png

 

 

 

Gjelstrup_0-1620393723941.png

Gjelstrup_1-1620393809416.png

 

 

0 Kudos
Message 6 of 6
(2,158 Views)