LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to read pressure readings

Solved!
Go to solution

Did you actually run the Snippet?  Did it do what you "hoped" it would do?  If not, what did it do?  Draw a picture (pencil and paper) showing the three arrays (use a rectangle with dimensions approximating Channels and Samples, and one showing what you want to achieve.  Now add another rectangle showing what the code actually does.  Can you understand what happened?

 

Do you have any experience with arrays, in either a Math class or a Programming class?  Do you understand the concept of Rows and Columns?  Think about what you want to do with these three Arrays (referring to the three "shapes" I asked you to draw), worry less about how you will do this.  Once you understand the what, you can consider the how.

 

I've attached the Demo in LabVIEW 2018.  Run it.  Look at the three Arrays.  Think about what the combination should look like.  Think about what you want to do, and then figure out how you can accomplish this.  Write the (fairly simple) LabVIEW code that will accomplish this (I can think of two ways to do this).  Once you understand the principle, apply it to your code (and, for goodness sake, clean it up according to the principles we've been trying to get you to understand and follow -- your practice of "ignoring" our suggestions and not showing us that you are trying to learn and improve your skills discourages us from continuing to try to teach you.

 

It would also be a courtesy to spell my name correctly.

 

Bob Schor

0 Kudos
Message 21 of 23
(659 Views)

Hello Bob _ Schor

Hope you are doing well. I have sorted all the issues in my code and is exactly giving results the way I want .

Just one doubt , in the previous snippet u have shared , there is "user desktop " icon which is going into the 'build path function" for saving the file. Which is that user desktop icon ? Does it help you to save the file in the desktop of ur Pc ? I am using cRio 9045 and will I be able to save the data in the desktop or in the PC ? I had been saving the files all this while , on USB which was connected on to the cRio daq.

 

0 Kudos
Message 22 of 23
(640 Views)

If you look in the File I/O sub-Palette "File Constants" (on my system, it is right after "Strip Path"), you'll see a function called "Get System Directory".  It takes an enum, one of which is "User Desktop".

 

When I write "demo" code and want to place a file someplace where it is easily found (and afterwards can be easily deleted), I often put it on the Desktop.  To open it, I need the file path, but I'm too lazy to type "C:\Users\John Smith\Desktop" to get the path to my Desktop, so I use this function.  If you used this exact code, it would (of course) point to your Desktop, not the one belonging to "John Smith" (who probably does not have a profile on your PC).

 

Consider this a "free" lesson.

 

Bob Schor

0 Kudos
Message 23 of 23
(625 Views)