NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
萨科
Posts: 9
0 Kudos

Re: LabVIEW USB to a system on chip device

Hello,

Now I am writing G code to control a CCD camera. I finished writing code based on SDK provided by the camera manufacturer. However, when i run my code, the error code (5075) appears from the sub vi ( for example the SDK vi for temperature control or image acquisition or exposure time). The error code (5075) appears when the code value reached the SDK vi.

I have not connected by computer to the camera. Is the error because labview did not detect any hardware.?

Thanks for the information..

 

Sagar

Member
REDS
Posts: 197

Re: LabVIEW USB to a system on chip device

Hi Sagar,

 

As you can see from the screenshot, the error is undefined and there is very little we can do without more information. I can see how an error would appear if the camera is not detected, but again, we don’t know what the SDK expects without documentation. It can very well through an error if it doesn’t detect the camera.

 

Error 5075.PNG

Regards,
Daniel REDS
Applications Engineer

Help us grow. If a post solves your question, mark it as The Solution.
>>>> Will work for Kudos >>>>
Member
萨科
Posts: 9
0 Kudos

Re: LabVIEW USB to a system on chip device

Hello,

I am still running through the problem where the error code appears when I run the program. However, there are several examples provided by the SDK and if I run those examples there is no error code even for the same function. I tried to copy and paste the code of SDK example in next blank page of Labview and tried to run the code. The error code appeared. That means, there is no error in running the code provided by the SDK example but the error code appears for the same code if I copy and paste in next blank page. Will be glad to be informed the ways to solve this program. 

 

Thank you!

 

Regards

Sagar

Member
REDS
Posts: 197

Re: LabVIEW USB to a system on chip device

Hi Sagar,

 

If you don't receive an error when you run the SDK example (but you do when you copy-paste the code into a new VI) why don't you try to develop your code by using the same SDK and modifying it to your needs?

Regards,
Daniel REDS
Applications Engineer

Help us grow. If a post solves your question, mark it as The Solution.
>>>> Will work for Kudos >>>>
Member
萨科
Posts: 9
0 Kudos

Re: LabVIEW USB to a system on chip device

Hello,

I used SDK provided by Andor CCD to control the camera and acquire data in labview. However, with the acquried data when I plot in graph, the unit of x-axis is represented in Pixel. I want my x-axis to represent raman shift (cm-1). 

The software of the CCD (solis) was calibrated to represent raman shift in x-axis. Is there any possible way, in labview, where the pixel value be changed to its corrosponding raman shift.

Thank you for the information.

 

Regards

Sagar

Member
REDS
Posts: 197

Re: LabVIEW USB to a system on chip device

Hello Sagar,

 

You just need to know what the conversion to pass from pixel to Raman shift cm-1 is so that you can input that into the graph properties. If you right click on the graph and select properties, and then go to the scales tab, you can input the offset and multiplier parameters and LabVIEW will scale the units.

 

Regards,
Daniel REDS
Applications Engineer

Help us grow. If a post solves your question, mark it as The Solution.
>>>> Will work for Kudos >>>>
Member
萨科
Posts: 9
0 Kudos

Re: LabVIEW USB to a system on chip device

HI,

As my earlier post, I tried to use Labview code to control Stepper motor through PSoC. I spend almost 6 months for that along with some other side works and still the program cant even simple rotate the stepper. Attachment is the LabView code if someone can be of help to let me know how can I modify to make it work.

Besides, I am now thinking to program my PSoC by C, but control the signal by LabView. In other word, the stepper motor is controlled by PSoC programmed by C but user should be able to control the rotation, stop and stepping angle of motor through GUI developed in LabView. I want to know if it is possible to send signal from Labview to PSoC to operate ( note the PSoC is already programmed by C). Detailed explanation will be very helpful to me.

 

Thanks. 

 

Sagar

Member
Todd_Lesher
Posts: 176
0 Kudos

Re: LabVIEW USB to a system on chip device

PSoC has a good text-based serial API. Right-click on the UART and Find Example Project, or so. Combine the useful parts of the Rx and Tx projects. Then you can just use the VISA read and write primitives in LabVIEW.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page